Page 1 of 1

White Screen When at http://localhost

PostPosted: 15. April 2011 01:11
by theorbital
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

Re: White Screen When at http://localhost

PostPosted: 15. April 2011 01:51
by Sharley
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.

Re: White Screen When at http://localhost

PostPosted: 15. April 2011 02:21
by theorbital
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

Re: White Screen When at http://localhost

PostPosted: 15. April 2011 02:26
by Sharley
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.

Re: White Screen When at http://localhost

PostPosted: 15. April 2011 02:35
by theorbital
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

Re: White Screen When at http://localhost

PostPosted: 15. April 2011 02:41
by Sharley
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.

Re: White Screen When at http://localhost

PostPosted: 15. April 2011 02:53
by theorbital
I rebooted my system and now everything works fine for now

thanks, its amazing what a reboot will do for a windows system

Re: White Screen When at http://localhost

PostPosted: 29. June 2012 18:14
by Phonetic
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.