Windows 7, localhost, and Drupal

I recently bought a new Windows 7 laptop. Along with all the other basic programming tools, I immediately installed Apache, PHP, and MySQL. One of the first things I wanted to do was to try to install Drupal. I spent two days fighting the white screen of death on Drupal installation, though, and I finally figured out why -- and I can blame it on Windows.

Background: I manually edited settings.php and entered the MySQL connection string, and I navigated to http://localhost/drupal6/install.php. The page would attempt to load for about thirty seconds, and would then give up. No errors were reported, either on-screen or in the Apache error.log.

This post explains what the problem was:

By default, the Windows hosts file (\System32\drivers\etc\hosts) has the line commented out that maps localhost to What was strange was that I could navigate to a localhost address and Firefox would have no problem resolving it, but mysql_connect would fail to resolve and connect to localhost. All I had to do was un-comment this line in hosts and I was good to go.



I am currently developing a

I am currently developing a website using Drupal on a Windows XP Professional machine running WAMP (Windows/Apache/MySQL/PHP) software server. I got my own free domain from during a promotional period that they had. I wanted to try and run my website hosting in my computer to link to my domain (from godaddy). What's the procedure? My Internet connection is from Cox Cable running 15mbpsDL/2mbpsUL. It will not going to be a traffic website, it's more like I'm building a website for practice purpose but also wanted to practice on hosting it to the internet.. . I know that webhosting services from other companies will do it, but I just wanted to host my own server because this is just for practice purpose. But once I launch a more-commercial website then I will consider hosting it somewhere else..

search around

There are quite a few guides online that give you step-by-step instructions for doing this, much better than I could. Here's one for example:

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

This question is for testing whether you are a human visitor and to prevent automated spam submissions.