• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Websites stop working until I restart apache and nginx

Is there a high cpu load when the website goes down? What processes are causing it? Is there a high RAM usage at that time? You can watch the load "live":
Code:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` watch "uptime && echo "\ " && ps aux | sort -nrk 3,3 | head -n 20 && echo "\ " && mysqladmin proc status -u admin"
 
There is no high CPU or memory usage. In fact, when the site goes down, we have to restart the Apache server every time. Until then, the website keeps going up and down intermittently.
 
When the outage occurs, have you tried to restart the PHP-FPM service instead of restarting Apache? If CPU and RAM are good, there is a chance that there is actually no issue with Apache. How do Apache processes behave when an outage occurs? E.g. what is "strace" showing on the processes? Are they actively doing anything? Or are they really dead?
 
No, we have not tried restarting the PHP-FPM service, but it is currently running on the server. How can we determine the actual root cause of this issue? Is it related to PHP-FPM or Apache?
 
What state are Apache (httpd, apache) processes in when Apache seems to be down? Did you try to "strace" any of them? Are they just orphans or are they doing anything? Are they consuming RAM and CPU power? If they are consuming CPU power, what are they doing? Does strace give any clues (mostly it reveals the name of some website(s) that a process is currently handling, e.g. by mentioning file names)?
 
Back
Top