White Screen When at http://localhost

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

White Screen When at http://localhost

Postby theorbital » 15. April 2011 01:11

Hello

I am getting a white screen when loading http://localhost

My configuration is as follows:
windows vista sp2 64bit
xampp version 1.7.4
apache - running
mysql - running

I cannot access the configuration menu or anything for that fact.

Thank you
theorbital
 
Posts: 4
Joined: 15. April 2011 01:01

Re: White Screen When at http://localhost

Postby Sharley » 15. April 2011 01:51

Can you access by typing http://127.0.0.1 in your browser?

Have you tested in any other browser you may have installed on your PC?

Check your firewall is allowing port 80, 443 and 3306.

Drag C:\Windows\system32\drivers\etc\HOSTS file into your notepad text editor and make sure that the first line after all the commented lines looks like this:
Code: Select all
127.0.0.1   localhost
If not then add it as the first line after all the # commented lines and then save the file - try again to access localhost in your browser.

In Vista if you have problems saving the file:
Run Notepad as Administrator.
Find the shortcut for Notepad in your Programs list.
Right-click on it and choose "run as Administrator".

Now in Notepad do File>Open to get to the HOSTS file.

Make your changes and you should now be able to save it.

Good luck.
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: White Screen When at http://localhost

Postby theorbital » 15. April 2011 02:21

Thank you for the reply

My hosts file is as you requested

When I use Firefox4 I get a white screen. In Internet Explorer 8 I get a 404 error

I have explicitly opened up the ports your mentioned and the apache http server is also allowed

I get the same result if I put in http://localhost or http://127.0.0.1

Any other suggestions are greatly appreciated

thank you
theorbital
 
Posts: 4
Joined: 15. April 2011 01:01

Re: White Screen When at http://localhost

Postby Sharley » 15. April 2011 02:26

When you open the XAMPP Control Panel does Apache and MySQL show a green running?
XAMPP Control Panel = \xampp\xampp-control.exe

Read the \xampp\apache\logs\error.log file in your notepad and see why you are getting a 404 file not found error.
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: White Screen When at http://localhost

Postby theorbital » 15. April 2011 02:35

Thanks for the reply:

Here is the most recent error from my /apache/logs/error
[Thu Apr 14 17:55:45 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Apr 14 17:55:45 2011] [notice] Digest: done
[Thu Apr 14 17:55:46 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Thu Apr 14 17:55:46 2011] [notice] Server built: Oct 18 2010 01:58:12
[Thu Apr 14 17:55:46 2011] [notice] Parent: Created child process 5772
[Thu Apr 14 17:55:47 2011] [notice] Digest: generating secret for digest authentication ...
[Thu Apr 14 17:55:47 2011] [notice] Digest: done
[Thu Apr 14 17:55:48 2011] [notice] Child 5772: Child process is running
[Thu Apr 14 17:55:48 2011] [notice] Child 5772: Acquired the start mutex.
[Thu Apr 14 17:55:48 2011] [notice] Child 5772: Starting 150 worker threads.
[Thu Apr 14 17:55:48 2011] [notice] Child 5772: Starting thread to listen on port 80.
[Thu Apr 14 17:55:48 2011] [notice] Child 5772: Starting thread to listen on port 443.


Here is the screenshot of my control panel.

http://screencast.com/t/Ik7u8eoB

My apache and mysql are both running green.

Thank you
theorbital
 
Posts: 4
Joined: 15. April 2011 01:01

Re: White Screen When at http://localhost

Postby Sharley » 15. April 2011 02:41

The log file is not showing the 404 error that your IE browser tells you it has received from Apache or at least from localhost - that is very strange.

Try a reboot and see if you get the same result.
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: White Screen When at http://localhost

Postby theorbital » 15. April 2011 02:53

I rebooted my system and now everything works fine for now

thanks, its amazing what a reboot will do for a windows system
theorbital
 
Posts: 4
Joined: 15. April 2011 01:01

Re: White Screen When at http://localhost

Postby Phonetic » 29. June 2012 18:14

Just had this problem myself. I found the culprit to be Skype. That may have not been the problem in your case but maybe this will help others.

I opened Skype, and about an hour later started WAMP. I was only getting a blank white page at http://localhost - which was really confusing to me as it was working fine just the other day.

The event viewer located in Control Panel -> Administrative Tools showed me the errors Apache was having. One of which was this:
The Apache service named reported the following error:
>>> (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 .


I then ran "netstat -ab" in cmd, and saw that Skype was on port 80. I closed Skype, restarted WAMP and I was back in action.
Phonetic
 
Posts: 1
Joined: 29. June 2012 18:02
Operating System: Windows 7 Ultimate


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 70 guests