Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.!

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


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

share|improve this question
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
up vote 12 down vote accepted

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

share|improve this answer
I have no idea what this means but it worked. Thanks! – noidea Apr 19 '13 at 7:38
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

Usually, http.conf should not have any content. But, it is filled with data in the http.conf. Once I removed the contents, it started working.

share|improve this answer
Are you really suggesting someone delete the contents of http.conf? – Robbie Mckennie Jul 24 '13 at 7:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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