HI All
My head hurts!!

I have the db setup and have moved the drupal dir into /var/www/apache2-default/drupal-5.1
on my dev box.
I have set permissions to chmod 777 on the Dir and still get this error:

'Drupal database setup
The following error must be resolved before you can continue the installation process:
The Drupal installer requires write permissions to ./sites/default/settings.php during the installation process.

I own the files!

What do I need to set here?

Thanks
Bob

Comments

Robardi56’s picture

Try 666 on both file and directory.

wavesound’s picture

HI
I now have this re setting the permissions:

**********************************************

Warning: Table 'rokpadata.access' doesn't exist query: SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM access WHERE type = 'host' AND LOWER('81.104.175.13') LIKE LOWER(mask) ORDER BY status DESC LIMIT 0, 1 in /home/4858/rokpacardiff/www.rokpacardiff.com/public_html/drupal-5/includes/database.mysql.inc on line 172

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/4858/rokpacardiff/www.rokpacardiff.com/public_html/drupal-5/includes/database.mysql.inc:172) in /home/4858/rokpacardiff/www.rokpacardiff.com/public_html/drupal-5/includes/bootstrap.inc on line 811

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/4858/rokpacardiff/www.rokpacardiff.com/public_html/drupal-5/includes/database.mysql.inc:172) in /home/4858/rokpacardiff/www.rokpacardiff.com/public_html/drupal-5/includes/bootstrap.inc on line 811

Warning: Table 'rokpadata.cache' doesn't exist query: SELECT data, created, headers, expire FROM cache WHERE cid = 'variables' in /home/4858/rokpacardiff/www.rokpacardiff.com/public_html/drupal-5/includes/database.mysql.inc on line 172
************************************************

I'm assuming the DB hasn't been setup by the install script,
is there a way to re-run the install script?

Cheers
Bob

Anonymous’s picture

if you want all files with rights 777 so do it for all files inside the folder as well:

chmod -R 777 /var/www/apache2-default/drupal-5.1

but you should give the rights during the instalation just to one single file:

chmod 777 /var/www/apache2-default/drupal-5.1//sites/default/settings.php

----
and of course you own this pages but not your apache-server!

digits’s picture

You'd (optionally) need to 666 the .htaccess file too, if you want Drupal to have clean url's (and to be able to modify them later on).

Short intro to Linux file rights, if anybody's interrested...

0 = No Access (whatsoever)
1 = Execute permissions
2 = Write Permissions
4 = Read permissions

By combining those you get what you need, like read and write:
2 + 4 = 6

And there's three of them, because first is the owner (you in this case), second is the group and third is the whole system.

wavesound’s picture

HI
Many thanks for the help.
This is making sense now.

We love permissions!!!

Thanks Bob