- Plesk for Linux
Apache service does not work properly or does not start at all. How to troubleshoot Apache Web Server on Linux?
Connect to the server using SSH or run Terminal.
Note: The name of Apache 2 binary on Debian is "apache2," not "httpd" as it is on Red Hat-based Linux distributions.
Make sure that "httpd" ("apache2" on Debian) processes are shown in "ps" output:
# ps aux | grep httpd | grep -v grep
If not, try starting Apache from Plesk(Tools & Settings > Services Management) or via command line(Terminal):
# service apache2 start (For Debian/Ubuntu)
# service httpd start (For RHEL/CentOS)
If an error is received, run Plesk automatic web repair(available since Plesk 12.5) and try starting Apache again:
# plesk repair web -y
In case of completely broken Plesk installation, execute the following command:
# plesk repair installation
/var/log/apache2/error_logon Debian) for a detailed error description and search the error message in Plesk Knowledge Base
If no errors appear and Apache silently does not start, make sure that the
/var/log/httpd/error_log(the path may differ for different operating systems) consumes less than 2GB.
Make sure that Apache is listening on the both HTTP and HTTPS ports (80/443 or 7080/7081) on all needed IP addresses:
# netstat -ntpl | grep httpd
tcp 0 0 0.0.0.0:7080 0.0.0.0:* LISTEN 528/httpd
tcp 0 0 0.0.0.0:7081 0.0.0.0:* LISTEN 528/httpd
Check that the Apache server is responsive, try to open a page from the server itself using "curl" or a console browser (e.g, Lynx, Links):
# curl example.com
Check that websites configuration is loaded in Apache by running:
# apachectl -S (For CentOS/RHEL)
# apache2ctl -S (For Debian/Ubuntu)
Note: The output should provide all the websites with links to their configuration, ports and webmails if enabled.