Could not open configuration file /etc/apache2/apache2.conf: No such file or directory

Rajeev Kumar picture Rajeev Kumar · Jul 3, 2012 · Viewed 18.4k times · Source

I have just installed Ubuntu & starting with LAMP.

I installed it & it was working just fine till I installed uTorrent. Then after localhost was not opening & I tried with stopping apache & again restarting with it.

I used - sudo service apache2 restart

Now this error is coming - Could not open configuration file /etc/apache2/apache2.conf: No such file or directory

I checked there, there is no such file with this name.

Installed uTorrent is running on 8080 port...can it be problem ?

I really don't know what to do.

Answer

William Greenly picture William Greenly · Jul 3, 2012

Is there an /etc/apache2/httpd.conf ?

If there is, have a look inside it and see what is being included i.e look for anything along the lines of:

Include /etc/apache2/apache2.conf

Basically there error is being thrown because of an incorrect pathname in a Include directive in a conf file