Drupal Installation Hangs at ‘Install Site’ Stage

I was trying to set up Drupal 6.16 on Apache 2.2.15 on Windows. I have done this before with other versions and don’t recall facing a problem in completing the installation. However, this time it completed the database setup steps and hung on the Install Site stage. After searching for this problem, I found various suggested solutions but none worked for me. That also seemed the case for many others who were posting on those forums.

Finally, the problem (and the solution) turned out to be quite simple. By default, the Windows installer (httpd-2.2.15-win32-x86-openssl-0.9.8m-r2.msi) for Apache for this version was leaving the rewrite_module disabled. See conf\httpd.conf for the following line:

#LoadModule rewrite_module modules/mod_rewrite.so

I uncommented this line, saved the file, restarted Apache, dropped Drupal tables, and then installed Drupal again. It worked like a charm.