File uploads permissions using suPHP
-
Hi,
I have a web server with Apache + suPHP. WordPress is working fine, except that when I upload a new file (i.e. an image), the uploaded file is created with 0600 permissions, instead of 0644 which is what I would need. This is a problem because since PHP is running via suPHP all files belong to the user who owns the blog, but Apache runs as apache… and if an image belongs to the blogger’s user and has 0600 permissions, Apache can’t read it.
I think this should be a common issue, but I haven’t been able to find the solution online. Could you give me a hand?
BTW, I read somewhere that the problem was with suPHP’s umask setting. I have set umask to 0022, so that shouldn’t be a problem.
- The topic ‘File uploads permissions using suPHP’ is closed to new replies.