I can't help you with what you already did and have not the knowledge to know if you made a mistake but to access local host I open my browser and write "<a href="http://localhost">http://localhost</a>" without the "" It works for me, let me know if it works<br>
Meg<br><br><div class="gmail_quote">On Wed, Mar 5, 2008 at 3:06 PM, Ben Schonle <<a href="mailto:ben@amigos24.net">ben@amigos24.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
*In Short:<br>
- After fresh installation of apache2 trying to access localhost or<br>
<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> is not working<br>
- OS: Ubuntu Gutsy<br>
*<br>
<br>
<br>
Hello,<br>
<br>
This is my first post on the mailing list and I try to write as<br>
precisely as possible.<br>
<br>
<br>
Actual result:<br>
-----------------------<br>
After installation of Apache when trying to access "localhost" via the<br>
browser, it loads for several minutes and then an error msg appears.<br>
Ultimately an time out error appears.<br>
<br>
<br>
What I did:<br>
------------------<br>
- Installed apache2 via synaptic<br>
- while installing apache 2 an error msg about a qualified domain name<br>
appeared:<br>
<br>
///<br>
Starting web server apache2<br>
apache2: Could not reliably determine the server's fully qualified<br>
domain name, using <a href="http://127.0.1.1" target="_blank">127.0.1.1</a> for ServerName<br>
///<br>
<br>
<br>
<br>
After some research I figured out that I had to add *ServerName<br>
"localhost"* to the apache2.conf - I restarted and restarting apache2<br>
made the error about qualified domain name vanish.<br>
<br>
///<br>
# Do NOT add a slash at the end of the directory path.<br>
#<br>
ServerRoot "/etc/apache2"<br>
ServerName "localhost"<br>
///<br>
<br>
<br>
When writing now: "localhost" or "<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>" as the URL, it didn't show<br>
the message "It works".<br>
<br>
I recognized, that the /var/www folder did not contain any index file,<br>
but the /var/www/apache2-default folder.<br>
<br>
Thus I tried the following changes on<br>
*/etc/apache2/sites-available/default:<br>
*<br>
1) Document Root /var/www/apache2-default<br>
2) Directory /var/www/apache2-default<br>
3) removing the   # from   #RedirectMatch ^/$ /apache2-default/<br>
<br>
However, I was not successful.<br>
<br>
////////////////////////////////////////////////////////<br>
Does anybody know how to make accessing localhost work? or point me to<br>
some tutorial that is addressing the issue?<br>
////////////////////////////////////////////////////////<br>
<br>
<br>
<br>
Further research:<br>
------------------------------<br>
<br>
Here also the data from the /etc/hosts:<br>
<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> localhost<br>
<a href="http://127.0.1.1" target="_blank">127.0.1.1</a> ben-desktop<br>
<br>
# The following lines are desirable for IPv6 capable hosts<br>
::1 ip6-localhost ip6-loopback<br>
fe00::0 ip6-localnet<br>
ff00::0 ip6-mcastprefix<br>
ff02::1 ip6-allnodes<br>
ff02::2 ip6-allrouters<br>
ff02::3 ip6-allhosts<br>
<br>
///////////////////////////////////////<br>
<br>
the /etc/host.conf contains:<br>
# The "order" line is only used by old versions of the C library.<br>
order hosts,bind<br>
multi on<br>
<br>
///////////////////////////////////////<br>
<br>
sudo netstat -anp | grep '^tcp.*LISTEN' (I am a newbie to Linux and I<br>
found this command, because just entering netstat produced too much<br>
information).<br>
<br>
produces the following<br>
<br>
////////<br>
ben@ben-desktop:~$ sudo netstat -anp | grep '^tcp.*LISTEN'<br>
[sudo] password for ben:<br>
tcp        0      0 <a href="http://0.0.0.0:80" target="_blank">0.0.0.0:80</a>              0.0.0.0:*<br>
LISTEN     5114/apache2       tcp6       0      0<br>
:::22                   :::*                    LISTEN     4693/sshd<br>
///////<br>
<br>
If I understand it correctly apache is listening on port 80. Btw what<br>
does the number 5114 in front of apache2 mean?<br>
<br>
<br>
Looking forward to a hint how to access localhost!<br>
<br>
Ben<br>
<font color="#888888"><br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</font></blockquote></div><br>