I'm having this problem in a couple of servers I recently migrated to suPHP and I can't find the answer anywhere.
When Wordpress uploads a file to the uploads/ folder it stores it with 0600 permissions. Since the owner of the file is a Directadmin user (let's say "john"), Apache can't read it.
Does anyone know how to prevent this? It's very uncomfortable for all my clients who use Wordpress, because currently they need to change the permissions of the files they upload manually to 644.
I'm guessing, since I'm not the first one using suPHP on a web hosting server, there must already be a fix for this.
Somewhere I read that on suPHP's config I should have:
That's the default that Custombuild set when I installed suPHP, so that's not the problem.
Any ideas?
Thanks!
When Wordpress uploads a file to the uploads/ folder it stores it with 0600 permissions. Since the owner of the file is a Directadmin user (let's say "john"), Apache can't read it.
Does anyone know how to prevent this? It's very uncomfortable for all my clients who use Wordpress, because currently they need to change the permissions of the files they upload manually to 644.
I'm guessing, since I'm not the first one using suPHP on a web hosting server, there must already be a fix for this.
Somewhere I read that on suPHP's config I should have:
Code:
umask=0022
That's the default that Custombuild set when I installed suPHP, so that's not the problem.
Any ideas?
Thanks!