site goes down

#1
I have installed aapanel and OLS in it.
I have installed OLS, PHP 7.3, MariaDB 10.3 and running php script website, SMF Forum, and wordpress website.
My wordpress website is opening fine. But my php script website goes down for 30-40 minutes and again it is opening fine automatically. Again after 30-40 minutes website goes down. This cycle runs automatically.
If website goes down and then I restart OLS then website starts opening instantly. But after few minutes it again goes down. Again I restart OLS then website opens fine again. I don't know how to fix it. can you please suggest me?
 

Pong

Administrator
#2
"My wordpress website is opening fine but my php script website goes down for 30-40 minutes " What do you mean you domain is working ok but php script doesn't work? how to run your php script? from browser? or cli command?
 
#3
Hello,
I have hosted 5 websites on that server. Only 1 websites goes down frequently. Then I checked STDERR.log (in path /usr/local/lsws/logs) and found this error:

"Reached max children process limit: 10, extra: 3, current: 13, busy: 13, please increase LSAPI_CHILDREN."

And in /usr/local/lsws/logs/error.log , I found this error:

2020-08-10 12:29:06.925295 [INFO] [186.2.160.2:52961#domain.com] External processor is not available.
2020-08-10 12:29:06.926449 [INFO] [186.2.160.2:52389#domain.com] Connection idle time too long: 301 while in state: 6 watching for event: 0, close!
2020-08-10 12:29:06.926464 [INFO] [186.2.160.2:52389] Content len: 0, Request line:
GET /gsbnfys/nd-the-mgc-mkv HTTP/1.1
2020-08-10 12:29:06.926468 [INFO] [186.2.160.2:52389] Redirect: #1, URL: /file.php
2020-08-10 12:29:06.926473 [INFO] [186.2.160.2:52389#domain.com] HttpExtConnector state: 0, request body sent: 0, response body size: -2, response body sent:0, left in buffer: 0, attempts: 0.
2020-08-10 12:29:06.926477 [INFO] [186.2.160.2:52389#domain.com] External processor is not available.

Please tell me how to fix the problem.
Thank You
 

Pong

Administrator
#4
Reached max children process limit: 10, extra: 3, current: 13, busy: 13, please increase LSAPI_CHILDREN."
It means that site needs more concurrent php processes. You will need to increase "LSAPI_CHILDREN" from external app environment variables.
 
#5
Is there anyway to check which website is using more connections? So that I can increase for those websites only. I am using aapanel and it has inbuilt vhost through aapanel.
 
Top