Problem with wordpress/file permissions

BenZona

New member
Joined
Sep 24, 2013
Messages
2
Hi all,

I'm relatively new to all this, so forgive me if I ask somepthing obvious, but I have a problem.

I recently moved my wordpress site from shared host to a VPS with DirectAdmin. I created a user, attached the domain to it, created a database, imported the tables into the database and ftp'd all the files over. Site works like a charm, but for some reason wordpress cannot write to the server. For instance, I cannot upload images on chmod 755, it only works when the upload folder is set to 777. I cannot install plugins or wp updates unless I put all filepermisions to 777. Surely, that is not the way go.

I googled extensively and the ony solution I found was the problem where files were assigned to apache, and not the user. As far as I can tell, the file owner for all files is the user I created and not apache. Doe anybody have a clue as to how I can fix this? I'm getting a bit desperate here. Thanks in advance!
 
You need to change to php-fpm, fastcgi, mod_ruid so everything is executed as the user. There are guides all over the forum on how to change it.
 
I actually just did that. Went to mod_ruid and now everything works, despite the support guy from my hosting comapny telling me that this was already configured. Works like a charm now. Case closed!
 
Back
Top