I am using Ubuntu 10.10 on my laptop.

I was develping websites without any problem so far.

Then suddenly I am not able to access any website in localhost.

Even http://localhost/phpinfo.php does not show.

I reinstalled apache but it is the same result.

I am able to access localhost/phpmyadmin.

Could anyone tell me how to fix this problem?

Thanks in advance.

link|improve this question

71% accept rate
What happens when you substitute 127.0.0.1 for localhost ? – Iain Dec 30 '10 at 21:47
feedback

migrated from serverfault.com Dec 30 '10 at 22:05

This question came from our site for system administrators and desktop support professionals.

1 Answer

I added the following to /etc/apache2/conf.d/fqdn

 ServerName localhost

And it works now.

:-)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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