Forums

File uploads permissions using suPHP (2 posts)

  1. el_barto
    Member
    Posted 1 year ago #

    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.

  2. poley
    Member
    Posted 10 months ago #

    @el_barto -- did you find a solution to this problem? I'm having the same issue.

Topic Closed

This topic has been closed to new replies.

About this Topic