PDA

View Full Version : Files permissions issue


kb0kqa
04-25-2008, 12:07 PM
This is on web5 using Drupal:

When I post a new article to the site, Drupal returns an error such as this:

* The selected file /tmp/fileEN4URd could not be copied.
* Unable to load site map. Make sure that there is an xmlsitemap directory in your files directory and that it is writable by Drupal.

My xmlsitemap directory looks like this:

drwxrwxrwx 2 kb0kqa kb0kqa 4096 Apr 18 12:37 .
drwxrwxr-x 7 kb0kqa kb0kqa 4096 Apr 18 12:31 ..
-rw-rw-r-- 1 httpd httpd 4681 Apr 18 12:54 sitemap.xml.gz

Which I believe is more 'open' than is required (I did that for testing).

The file that is trying to be copied is this:

-rw------- 1 kb0kqa kb0kqa 4744 Apr 25 11:33 fileEN4URd

I'm guessing that I'm getting the error because httpd doesn't have read permissions on the file in the tmp directory?

I didn't have this problem while on web1, but consistently get it now on web5. I don't believe I changed anything on my end that would have caused it.

Is there a work-around for this that I could try?

ben
04-25-2008, 06:01 PM
Try it again now.

Apache is configured to run PHP as the user httpd and will have access to write to files owned by httpd. Lightspeed on web5 is configured to run as the owner of the domain and can not write to files still left owned by httpd.

The ownership of the files should now be correct.