files directory giving problems with copying

mediashock - February 14, 2008 - 22:34

I had this happen to me few times now with the current host i have. I am using plesk to set everything up. but anyways, I install drupal and create the files directory via my main ftp account.. then i have to set drupal NOT use use files/tmp otherwise it gives me error.. cannot copy from tmp to files.. same issue with the IMAGES module.. i tried creating the images/temp folder via ftp and same errors.. some sort of permission errors.. IF i store everything in files/ (and not use tmp and images) then it works .. i think drupal changes the ownership or something.. anyone had this problem. this is happening to every site i do with drupal.

thanks

Basic webserver permissions rules

yelvington - February 15, 2008 - 00:39

All (sanely configured) Unix-like systems will run the webserver process under a different user ID than your FTP account. This is a security measure. This allows you to upload PHP files, for example, and run them, but those files will NOT have the ability to modify themselves.

Since the webserver needs to write to the files directory, it must either own or be granted permission to write to the files directory.

 
 

Drupal is a registered trademark of Dries Buytaert.