Unable to create directory wp-content/uploads/sites/. Is its parent directory writable by the server?
What if you try temporarily changing the permissions on /wp-content to allow WordPress to create the uploads directory, and then change the permission back? Have you had a chance to give that a try yet?
Thread Starter
Famous
(@famous)
Hi James yes I have already tried that I needed to do that in order to upgrade word press and also to upgrade the plug-ins. So the upload files already exist but whenever I revert permission it stops working
I moved from Godaddys shared to their VPS solution and it has ceased to work since then.
Some reference material: Permission Scheme for WordPress
Thread Starter
Famous
(@famous)
I ran a find for file/directory permissions and set them all to 644/755, but no dice. Any other solutions?
It sounds like an ownership issue.
“Any file that needs write access from WordPress should be owned or group-owned by the user account used by the WordPress (which may be different than the server account)…
…Typically, all core WordPress files should be writable only by your user account (or the httpd account, if different)…. “
Maybe GoDaddy support can offer some advice on your owner:group settings and permissions.
Thread Starter
Famous
(@famous)
changing permissions didn’t seem to do anything. But setting chown to:
chown nobody:nobody (All files/directories)
Worked! But what are the implications of that? And how can I fix this? I also tried apache:userName
userName:userName
root:root
apache:root
and nothing worked, but
nobody:nobody
:/ puzzled here
chown nobody:nobody (All files/directories)
That sort of implies that your web server now owns everything, and not your user account.
I hesitate to ever openly give specific directions on file ownership and permissions for live sites for the simple fact that I have no knowledge of, or access to the actual server environment. Operating a VPS is a little different then operating in a shared, managed environment.
I will suggest, that root should not be owner or group of anything on your web space, and that your files should be owned by your user account. Anything that WordPress specifically needs to write to, might need to be group owned by the process doing the writing.
Beyond that, GoDaddy support may still be a helpful resource.
Thread Starter
Famous
(@famous)
Ok.
GoDaddy is useless – I’ve tried getting some guidance.
I’ll try setting up a generic install of WordPress and see what the server assigns as the group & user. Maybe that will give me a clue