I am having trouble with drupal and file permissions. Any file it moves, say an image on upload.. when written to the server, it makes it so that the file is attached to the servers root username, in my case "apache", not my ftp username as all the other files I uploaded show they are. Then, once they are written, the next time drupal tries to move them or delete them it throws an error. Same then if I even try and delete them via my ftp client.. I am denied permission. Of course, this is pretty annoying. I know the behavior is more associated with the settings at the hosting level than drupals fault. Is there any way I can try and
Is there any way to modify drupal to run properly on my host, or do I need to look for a more drupal friendly one?
Comments
=-=
There is nothing drupal can do about this if your host isn't set up properly to avoid the problem you state. It seems odd to me and a dangerous that the host would allow anything to be set up as a root user especially by a script. Though I freely admit I am not versed in sysadmin stuff.
Well, I understand he is
Well, I understand he is talking about the httpd user (apache), not the root user (at least apache is not the root user).
If I'm right, the issue seems to be that the ftp user and httpd users are not the same and/or in the same group. You could try and fiddle a little with group permissions, or change permissions every time you upload anything via ftp, but as VM suggests, I'd rather call your hosting service and ask for a proper solution. They might have a better option for you.
I think you are right about
I think you are right about the httpd user (apache). I am not all that familiar with apache server yet. I have been trying to figure out how to better request the help from them because its been difficult for me to explain the issue to them.
I have been requesting that they change permissions every time drupal creates files/folders. Im not having a problem when I ftp the stuff to the server. Its only when drupal auto-creates stuff, which is cool.. but its been assigning the apache ownership, then I cannot delete that file, change attributes or modify it later using drupal... which is standard to see happen ( say it wants to rebuild derivative images ).
So its been presenting quite a challenge for me to get these sites up and running. Thanks for the feedback, i am going to request they look into group permissions.
=-=
seems to me you may be able to change those permissions with your hosts panels file manager?
You would think.. it throws a
You would think.. it throws a permission denied error. We are using plesk... I do mod those settings, but only after I email support to change the ownership.