Can't access "localhost" or 127.0.0.1 [SOLVED]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can't access "localhost" or 127.0.0.1 [SOLVED]

Postby mystreetcar » 22. March 2012 19:05

I searched the forum briefly and suprisingly I didn't find a post with this issue.

I've just installed XAMPP and I got my Apache, MySQL and Filezilla running. I tried to connect to localhost but I get an page not found error.

Any ideas?



(i apologise if this topic has been covered in the past, if so, please direct me to the topic)
mystreetcar
 
Posts: 5
Joined: 22. March 2012 19:00
Operating System: Win 7

Re: Can't access "localhost" or 127.0.0.1

Postby mystreetcar » 22. March 2012 19:22

Forgot to mention that I run XAMPP 1.7.7 on Win 7 64-bit and I get the error on chrome and firefox, i don't have ie to check it there too....
mystreetcar
 
Posts: 5
Joined: 22. March 2012 19:00
Operating System: Win 7

Re: Can't access "localhost" or 127.0.0.1

Postby Sharley » 22. March 2012 19:28

Read the \xampp\apache\logs\error.log file for info about the page not found error.

What exactly are you typing in the address bar of your browsers?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Can't access "localhost" or 127.0.0.1

Postby mystreetcar » 22. March 2012 19:33

i get this:


[Thu Mar 22 19:48:32 2012] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 22 19:48:32 2012] [notice] Digest: done
[Thu Mar 22 19:48:33 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Thu Mar 22 19:48:33 2012] [notice] Server built: Sep 10 2011 11:34:11
[Thu Mar 22 19:48:33 2012] [notice] Parent: Created child process 4896
[Thu Mar 22 19:48:34 2012] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 22 19:48:34 2012] [notice] Digest: done
[Thu Mar 22 19:48:35 2012] [notice] Child 4896: Child process is running
[Thu Mar 22 19:48:35 2012] [notice] Child 4896: Acquired the start mutex.
[Thu Mar 22 19:48:35 2012] [notice] Child 4896: Starting 150 worker threads.
[Thu Mar 22 19:48:35 2012] [notice] Child 4896: Starting thread to listen on port 443.
[Thu Mar 22 19:48:35 2012] [notice] Child 4896: Starting thread to listen on port 443.
[Thu Mar 22 19:48:35 2012] [notice] Child 4896: Starting thread to listen on port 80.
[Thu Mar 22 19:48:35 2012] [notice] Child 4896: Starting thread to listen on port 80.



...now what?
mystreetcar
 
Posts: 5
Joined: 22. March 2012 19:00
Operating System: Win 7

Re: Can't access "localhost" or 127.0.0.1

Postby mystreetcar » 22. March 2012 19:35

I'm typing "localhost" or "http://localhost" or 127.0.0.1 or click the admin button of Apache at the control panel.
mystreetcar
 
Posts: 5
Joined: 22. March 2012 19:00
Operating System: Win 7

Re: Can't access "localhost" or 127.0.0.1

Postby Sharley » 22. March 2012 19:42

Drag C:\windows\system32\drivers\etc\hosts file into an opened text editor like notepad and check that you have this line at the end of all the comments so it is the first line not commented
Code: Select all
127.0.0.1 localhost
If it is not there then add it and save the file.

Then try http://localhost again.

Your log file is not recording a page not found error and so we have to look beyond Apache to your Windows System.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Can't access "localhost" or 127.0.0.1

Postby mystreetcar » 22. March 2012 20:01

It worked! You really saved my day Sharley, I can't thank you enough.

Thank you!Thank you!Thank you!

how do I tag this as "solved"?
mystreetcar
 
Posts: 5
Joined: 22. March 2012 19:00
Operating System: Win 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests