I'm getting the following error message in my watchdog log.

Type	file system
Date	Wednesday, August 30, 2006 - 09:58
User	Anonymous
Location	http://www.latin-mass.org/spd/rss.xml
Referrer	http://www.latin-mass.org/
Message	The directory files/images/temp is not writable, because it does not have the correct permissions set.
Severity	error
Hostname	72.194.124.xx

I've checked the permissions on the directory (for files, images and temp) and it's set to 777. Are the permissions supposed to be set to 755 instead? Or do I have some other problem.

I'm using the image module and most of the images have been uploaded through TinyMCE. Or is this just an issue with the RSS feed? I'm really lost, if that's not already painfully obvious to any kind souls who may read my plea for help.

Roger

Comments

vm’s picture

755 is a safer setting

styro’s picture

then there is likely to be something extra like SELinux restricting that. You won't be able to fix it by changing filesystem permissions.

You should probably ask your host or sysadmin for more info.

--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
Example Knowledge Base built using Drupal

calebgilbert’s picture

you should definitely try 755 because if phpsuexec is installed - that WOULD be the problem/fix.

=====
Bloggyland.com
Hosting for pre-configured Drupal installations
Instantly activated, Drupal specific support
Also: HigherVisibilityWebsites.com

KSA213755’s picture

I've changed the settings on the files/images/temp directories to 755. I'll watch the logs and see if that clears up the problem.

Roger

KSA213755’s picture

I can write to the files directory using ftp, and when I check chmod through my ftp client, permissions are set to 755. However, if I check the permissions using the cpanel filemanager, the setting is 777. I can change it to 755, but then the change I make doesn't actually get saved.

So currently, I can upload files to the files directory using ftp and access them or link to them in my posts, but I can't upload any files using drupal's upload module. I searched the site here, but didn't find a node specifically addressing how to change the permissions settings when phpsuexec is running. How is that done?

Roger

styro’s picture

It is only the first digit for the user permissions that matter - what happens to group or world is irrelevant, and Drupal won't be using those at all. In fact you might even want to restrict the group and world permissions even more.

The only way I can see for the behaviour you describe to happen is if there is something else on the server that is changing or restricting things further - eg SELinux settings, mod_security, something in the CPanel config etc etc.

You should really ask your host to explain what is happening. It is mostly outside the realm of Drupal configuration to be able to fix I think.

--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
Example Knowledge Base built using Drupal

sonicthoughts’s picture

If you have a mult-site configuration, it looks like the error is coming from the drupal-root/files/images/temp but
in a multi-site configuration there are two areas for files directory:
1. Under the drupal-root/files
2. Under the sites/domain/files

In my case the error looked like it was coming from #1 which was set up correctly, but in fact was coming from #2.