So I upgraded Ubuntu and I went to in Chrome and got "Oops! Google Chrome could not connect to" so I restarted Apache but was met with this error:

apache2: Syntax error on line 215 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory

Action 'configtest' failed. The Apache error log may have more information. ...fail!

This is the contents of my /etc/apache2 folder:


What's going on? How can I resolve this?

  • It appears within your /etc/apache2/apache2.conf file, the file /etc/apache2/httpd.conf is being included or referenced. Try searching for this within your /etc/apache2/apache2.conf file to see where and provide that if you require further assistance. – Andrew Ty. Apr 19 '13 at 4:33
  • I had the same problem after upgrading do Debian Wheezy, the accepted solution worked. – Petr Pudlák Dec 10 '14 at 20:16

For some reason you are missing the http.conf which usually has no content.

Please try to create it and restart your web server

touch /etc/apache2/httpd.conf

  • I have no idea what this means but it worked. Thanks! – noidea Apr 19 '13 at 7:38
  • 1
    This means: You are creating an empty file called httpd.conf in /etc/apache2/ directory to overcome the error that prevented the apache to start because of the missing file. – Hex Apr 19 '13 at 18:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.