error message: Job for apache2.service failed. What should I do?
I just got this error when trying to run apache.
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
ubuntu apache2[6296]: * The apache2 configtest failed.
ubuntu apache2[6296]: Output of config test was:
ubuntu apache2[6296]: apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/a...e or directory
ubuntu apache2[6296]: Action 'configtest' failed.
ubuntu apache2[6296]: The Apache error log may have more information.
Can you provide any guidance?
1 Reply
This appears to be a configuration issue regarding your apache service, specificall php is unable to load a specific apache file. Please identify which file is unable to load. The following should be helpful:
For troubleshooting apache issues:
https://linode.com/docs/troubleshooting/troubleshooting-common-apache-issues/
For general rules:
https://linode.com/docs/web-servers/apache-tips-and-tricks/apache-configuration-basics/
https://linode.com/docs/web-servers/apache-tips-and-tricks/apache-configuration-structure
For optional apache configuration:
https://linode.com/docs/web-servers/apache-tips-and-tricks/tuning-your-apache-server/