How to solve: Drupal 6 installation stuck at database configuration

People reported me this particular problem, and recently I experienced it myself: during the Drupal 6 installation process in the 'Database configuration' step, you might get stuck. Upon entering the right database credentials, the page reloads and shows the Database configuration form again, without any error.

After some searching around, I found what was causing this behaviour:
During the installation I renamed the file /sites/default/default.settings.php to /sites/default/settings.php.

However, Drupal expects you to make a copy if this file, not rename it!
So just make a copy of the default.settings.php file, and name it settings.php.
When these 2 files are available, your installation should run without any problems.

Comments

I ran into exactly the same problem and your solution did work. Thanks a lot!

thanks for this...i was tired to googling for this...but i found answer here....thanks

Thank you! this is noted in the drupal install as the correct process but isn't described as necessary - you saved my day!

Thanks! Have been searching for this one.

Thanks. I had some trouble setting Drupal 6.x on my localhost. Again, thank you.

Thanks for the reminder! This happened to me last time I installed Drupal too...

First thanks for the solution. almost everybody installs drupal in "default" directory. as you know you can run multiple domains by just a drupal instalation, using directories named to that domains in the directory "sites".
if you want to run "somesite.com" and you rename "default" directory instead of copying it, you will face the same problem as renaming "default.settings.php" instead of copying it.

in brief:
do NOT rename "default" directory and "default.settings.php" file.

Thank you very much, this fixed my issue. it seems to affect drupal 7 as well.

Thanks! Have been searching for this one.

You provided the solution i was looking for!

Thanks.

thx

This is gold. tHANKS

Thank you! Been looking at my server configuration as I thought that there was an error there, but it is a simple mistake which in my opinion should give users a warning such as "default.settings.php required to continue install" as well as keeping the information entered in the form.

Thanks again.

It got me through the installation since i'm new to this CMS I appreciate people that share experiences for everyone, teach a man to fish right :)

happy coding!!

Thank you thank you

nice..thank you :)

thank you !!!!!!!!!!!!!!!!!!!!!!

really thnx

...Solved all my problems!

saved my life man. I was about to pull my f'ing hair out!

Something so simple - would think the Drupal team would see the usability problem here... Anyway thanks to you and Google I think my issue is resolved.

Guy

Thanks!

I was stucked..Your site helped me..thanks

Thanks a lot! great help.

Thank you so much...this has solved my problem with in seconds...thank you!!

thanks a lot

Was wondering what the hell was going on and knew it had to be something small like this messing it up. Thanks a lot!

THANKS!

Thanks for this!

wena wacho

Thank You Very Much!

On one drupal installation I was trying to set two independent sites;
so after a standard drupal installation for the first site, I renamed the directory:

/sites/default
as
/sites/www.mysite.it

and added a directory for the other site:

/sites/www.mysite.it.other

which contains 'default.settings.php' and 'settings.php' files as well as a 'files' directory - with correct write permissions.

Then, I've created an independent database and user for the second site (other) and added an alias pointing http://www.mysite.it/other to http://www.mysite.it.

So, I went to http://www.mysite.it/other and start the installation wizard but can't pass the Database configuration; as stated at the beginning of this thread... then I found Sven Decabooter OPEN SOURCE WEB DEVELOPMENT and:

simply renamed

/sites/www.mysite.it
as
/sites/default

and got it!!!

Thanx again!

Thanks man!

you rescue my life

Had the same problem.

Works fine after copying...

Thanks

In my situation this solution was not enough. When the database configuration reappeared empty I had to refresh the browser (F5) in order to get the Drupal installation to continue.

THANKYOU VERYMUCH!

Thank you

thanks

I have been stuck on this for about 30 minutes - such an easy mistake to make!
Thank you for posting this.

Hi! thanks, you helped a lot!

I'm stuck for an hour. thank you very much for your help

Saved as a favorite, I love your site!