I'm attempting to install Drupal 6 on my local XP Home machine running Apache, PHP and MySQL but I've come across this message on the install screen and can't work out a way round it:

The Drupal installer requires that you create ./sites/default/settings.php as part of the installation process, and then make it writable. If you are unsure how to grant file permissions, please consult the on-line handbook.

Because I'm running XP Home I'm not able to make the default folder writable. Does anyone know of a way round this? I've tried a few workarounds but everytime I change it it defaults back to read only.

I'm not averse to changing my current local server set up if need be. I didn't use XAMPP (didn't know it existed until I started digging around here) so I don't know if something may be set up wrong from that side of things.

Any ideas appreciated. Thanks.

Comments

lionheart8’s picture

Hi
If you are installing the latest version of Drupal i.e. 6.3, unless something was changed that very file sites/default/settings.php unlike in prior versions is missing. I don't know whether there's a reason for it or an oversight. It's a key file as the database settings are stored there.

I and a few other folks got the same error message (http://drupal.org/node/280920).
In that folder (sites/default) is another file "default.settings.php" which seems to have exactly the same content as settings.php. I think I read somewhere in case of a problem, one can get a copy of the original settings.php content from it.

To run a D6.3 I simply got default.settings.php & saved a copy of it AS settings.php, so you have both, like is the case in older versions of Drupal, including 6.2.

That should solve your problem as the installation runs as expected and there is nothing wrong with on your PC.
Regards

willsurvive’s picture

That seems to be the exact problem. I've added a setting.php file into the folder as you instructed and it's fixed it. Thanks!

Despite spending about a hour on the problem earlier I hadn't even noticed that the file I was having trouble with was called default.settings.php rather than settings.php. It's obviously been a long day...

Cheers.

lionheart8’s picture

I'm glad it helped.
Actually default.settings.php is innocent.
The problem is settings.php for some reason missing in the downloaded Drupal file.

sisyphus’s picture

i got the same problem.

i m running xp with apache. how to change the permission on this develpement platform?

thanks a lot.

lionheart8’s picture

I have not looked at the current or newer versions of Drupal 6.
I had the problem with Drupal 6.3, which did not have settings.php, which led to the above mentioned error.
We, i.e I & people who had the same problem at that time did not need to change any permissions, but to create the missing file, settings.php, by going to /sites/default/ and saving a copy of default.settings.php AS settings.php in that same folder, so you have both.
If you run the installation again, it will run smoothly.
I think that error comes because Drupal assumes since it can right in that file, it is because of wrong permission settings & does not know" the file is actually missing.

Regards

sisyphus’s picture

i tried to install dp6.5 on another pc with xp and xampp. it's ok to install. no permission warning appeared.

what's wrong with the first pc?