- Plesk for Linux
How to verify that the Apache web server is running and working properly 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 to start 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, check
/var/log/apache2/error_logon Debian) for a detailed error description and search 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)