I am using ubuntu 6 server on VM and have tried to chmod +w settings.php and I still get this error.

I have apache2-mod-php5 working, apache2 and mysql. Mysql is started. and I point to the url and I get the permission error. The error tells me Drupal installer needs write permissions to ./sites/default/settings.php

I have not created a db in mysql having read the drupal does this. I have created a user and a password.

what is the fix please? thanks, the command to fix would be very much appreciated.

Comments

vm’s picture

Drupal does not create the DB, it only adds the tables, The DB needs to be created by you. Drupal gets fed this DB name, location, and user information, then during install, adds necessary tables. Drupal needs your settings.php file to be writable, CHMOD 777, so that it can add the necessary settings during installation, then Drupal set this file back to 644

randell’s picture

My settings.php is already set to 777 but I'm still getting this error. This is on version 6.4

Fiable.biz’s picture

I've exactly the same problem with the Drupal version included in Mandriva 2009 Spring.

http://Fiable.biz Web site creation.

vm’s picture

check permissions on the default folder and the settings.php file and upgrade your drupal installation 6.2 is 11 security and bug fix releases behind.