1. i installed drupal 5.7 on ubuntu 8.04 (hardy heron) dekstop and i get this " The directory files is not writable" . i follow the server set up from http://www.lullabot.com/videocast/install-local-web-server-ubuntu and i did change the ownership to myself from root. but nothing changes..
2. before i try drupal 5.7 i work on drupal 6.2 and get this
* The Drupal installer requires write permissions to ./sites/default during the installation process. If you are unsure how to grant file permissions, please consult the on-line handbook.
* The directory sites/default/files does not exist. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the installation, either create the directory and modify its permissions manually, or ensure that the installer has the permissions to create it automatically. For more information, please see INSTALL.txt or the on-line handbook.
and i change the default.settings.php to settings.php and i change the permission and i get this
* Failed to connect to your MySQL database server. MySQL reports the following message: Access denied for user 'username'@'localhost' (using password: YES).
o Are you sure you have the correct username and password?
o Are you sure that you have typed the correct database hostname?
o Are you sure that the database server is running?
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
* The directory sites/default/files does not exist. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the installation, either create the directory and modify its permissions manually, or ensure that the installer has the permissions to create it automatically. For more information, please see INSTALL.txt or the on-line handbook.
Please help me out..
Comments
=-=
drupal require persmissions on the files folder to be 777
that said: the problem you are having with the settings.php file is you should have left it be default.settings.php with 777 permissions so the installer can write to the file during installation of Drupal. where it will add the necessary information to teh $db_url string
Thanks Verymisunderstood.. i
Thanks Verymisunderstood.. i try it by having both default.setting.php and setting.php...same thing still occur.. i not sure what the problem really is but i think folder permission because i cannot write on the folder..
* after installation drupal 5.7 i change back the permission to normal as what it wanted on the interface..
*installation of drupal 6.2 did not detect the default.setting.php i think..
Please lend a helping hand..
thanks..
i tried the 777.. chmod 777
i tried the 777..
chmod 777 "my directory"
thanks a lot veryMisunderstood..
777 is probably too much
If you chmod 777, obviously it always work, but actually you don't need to make that directory writable by everybody, making it (and everything under it) writable by the apache process is enough...
On my local servers I do like this:
$ chown -R root.apache ./drupal
$ chmod 775 files
So I get something like this:
This way your drupal code cannot be modified by apache (it shouldn't), but apache can create/delete/write files and directories under
files/
.Can someone explain to me
Can someone explain to me what is happening in this line?
$ find . -type d -print0 | xargs -0r chmod 755
It means...
It means: find, starting from the current directory (".") everything that is a directory, then send (with a pipeline ("|")) the list of everything found, NULL separated, to the xargs command that executes the command 'chmod 755 ' for every found...
It's in the man pages for find(1) and xargs(1)...
great idea. Thanks
@mauror great idea. Thanks
Thank you!
Thank you for your help :) I can use :)
Permission problem using fedora as the base OS
I found the same problem discribed above.
I fixed it by disableing selinux.
Don't disable SELINUX
run these commands:
chcon -R -t httpd_sys_content_rw_t /var/www/html/sites/default/files/
chcon -R -t httpd_sys_content_rw_t /var/www/www.example.com/private-files
enable send mail:
setsebool -P httpd_can_sendmail on