Wordpress; can't get the rights working

jeffreydev2

New member
Joined
Dec 10, 2016
Messages
2
Hi,

I'm new to Directadmin since I just started to use my own VPS. I run CentOS with DirectAdmin and CustomBuild 2.0.
After I installed Wordpress, I found out that every folder had 777 rights. Since this is not what I want, I changed these to 755. From then, I'm not able to upload anything. I've found/checked this topic: http://forum.directadmin.com/showthread.php?t=49692 (and a lot more about rights an chmod's..)...
I changed to mod_php with mod_ruid2, didn't work. So back to suphp, didn't work either.

So I added my user (jeffrey21, that is the Wordpress GID/UID) to the apache and access group and checked if it was there:
Code:
[root@AHV-ID-5303 ~]# sudo usermod -a -G apache jeffrey21
[root@AHV-ID-5303 ~]# grep 'apache' /etc/group
apache:x:500:jeffrey21
access:x:503:apache,nobody,mail,majordomo,daemon,ftp
[root@AHV-ID-5303 ~]# sudo usermod -a -G access jeffrey21
[root@AHV-ID-5303 ~]# grep 'apache' /etc/group
apache:x:500:jeffrey21
access:x:503:apache,nobody,mail,majordomo,daemon,ftp,jeffrey21

But it still doesn't work; I've got to set the upload dir to 777 to be able to update or upload...

Can someone help me on where to start to figure out what I'm doing wrong? Thanks!
Jeff
 
Did you also issued the necessary commands after changing to mod_ruid2? Because that could fix your problem.

Try this.
Code:
./build set php1_mode mod_php
./build set mod_ruid2=yes
./build update
./build mod_ruid2
./build php n

After that see if it works, if not then issue the commands mentioned in here:
https://help.directadmin.com/item.php?id=173
 
Back
Top