Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jun 24, 2011 8:02 pm 
Offline
Junior Member

Joined: Fri Aug 27, 2010 4:42 am
Posts: 48
So I'm running 10.04 and for some reason when I try to upload a theme on wordpress I get the following error:

The uploaded file could not be moved to /home/user/public_html/wp-content/uploads/2011/06.

So I tried doing chmod 777 to the directory and I get an error of Operation not Permitted. So I tried doing chown -r user /home/user/

and that didnt resolve the issue so I tried chown user /home/user/public_html/wp-content/uploads/2011/06/

and still getting the permission error which is weird.... Any suggestions are greatly appreciated oh and I checked to see who owns the directory and:
drwxrwxrwx 2 www-data www-data 4096 2011-06-24 14:24 .
drwxrwxrwx 3 www-data www-data 4096 2011-06-24 14:24 ..

but yet chown from root is not allowing me to change owner to user =/

Two linode staff tried to help with a few suggestions but it didnt resolve the issue and they advised I reach out to the community for help.


Top
   
 Post subject:
PostPosted: Fri Jun 24, 2011 9:11 pm 
Offline
Senior Member

Joined: Mon Aug 31, 2009 2:33 pm
Posts: 78
Location: The OC
check that your web server has write permissions to /home/user/public_html/wp-content/uploads


Top
   
 Post subject:
PostPosted: Sat Jun 25, 2011 12:25 am 
Offline
Senior Member

Joined: Sat Jun 12, 2010 4:53 pm
Posts: 77
Running wordpress out of your home directory could be problematic for this sort of thing (in place updates/installs).

It will basically want the entire path (/home/user/public_html/) to be www-data.

If you are able to run wordpress from, say, /var/www/mywebsite.com/ that may be better. Then you can:


Code:
sudo chown -R www-data:www-data /var/www/


And all of the wordpress updates/installs should work ok.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group