error message: Job for apache2.service failed. What should I do?

Linode Staff

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:

For general rules:

For optional apache configuration:


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct