Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Jan 23, 2010 3:04 pm 
Offline
Newbie

Joined: Sat Jan 23, 2010 2:41 pm
Posts: 2
Hi All,

I am having some problems with Wordpress automatic upgrade function. If I try to upgrade the wordpress version or the plugins, it asks for the FTP details. When I enter these details it doesnt accept them.

On the net, I found a solution: change the permissions of the wp-content to 777, but this is very unsafe.

I've also found a more complete and safer solution in here http://www.nerdgrind.com/wordpress-auto ... t-working/ but it requires setsebool, that is, selinux, which is not accepted by linode kernel, i've been told.

Have you ever found this problem before? Do you know how to resolve it in a neat and safe way for linode?

Thanks a lot for your help.
Alex


Top
   
 Post subject:
PostPosted: Sat Jan 23, 2010 3:35 pm 
Offline
Senior Member

Joined: Fri Sep 21, 2007 4:12 pm
Posts: 78
You need to give the user that your webserver runs as write permission to wp-content. This is inherently unsafe, yes.

If the webserver can't write files, it can't update itself after all.

Note that the setsebool only applies if selinux is actually enabled and enforcing, neither of which apply on a stock linode kernel.

The "safest" way is to set up an FTP server, username and password, and ACL to enable just the FTP user to write to that directory... but that still means you're leaving the directory wide open for writes, just not through your webserver.

edit: I should note that the most secure way is to update wordpress is to... not use the automatic method.


Top
   
 Post subject:
PostPosted: Sat Jan 23, 2010 9:09 pm 
Offline
Senior Member

Joined: Tue Apr 29, 2008 6:26 pm
Posts: 58
Website: http://blog.shadypixel.com/
I don't use auto upgrade for exactly that reason. Honestly, once you get the hang of it (what needs ot be kept, etc.), manual upgrades aren't that bad. Usually takes me <10 minutes including testing.

Edit: also for point releases (x.x.2 -> x.x.3) you can usually get away with making a patch from the old release to the new one and just applying the patch because not much changes.


Top
   
 Post subject:
PostPosted: Sun Jan 24, 2010 2:01 pm 
Offline
Newbie

Joined: Thu Dec 24, 2009 1:13 am
Posts: 4
I had this issue as well, I installed this plugin and all works fine now!

http://yoast.com/fix-automatic-plugin-update/


Top
   
 Post subject:
PostPosted: Sun Jan 24, 2010 11:51 pm 
Offline
Newbie

Joined: Sun Jan 24, 2010 11:48 pm
Posts: 2
I found that changing the owner/group of all the wordpress folders allows for automatic updates and automatic plugin installs. Basically:

chown -R www-data:www-data *

Inside the wordpress folder

Please, I am pretty new to all of this so, you experts out there should chime in if there would be a problem with this.


Top
   
 Post subject:
PostPosted: Mon Jan 25, 2010 12:49 am 
Offline
Senior Member

Joined: Tue Apr 29, 2008 6:26 pm
Posts: 58
Website: http://blog.shadypixel.com/
casmang wrote:
Please, I am pretty new to all of this so, you experts out there should chime in if there would be a problem with this.


There's nothign necessarily wrong with that, but it makes you more vulnerable to security holes. Allowing the web server to write to the filesystem (except in very narrow circumstances) just makes exploits all the more damaging. also, this isn't purely theoretical. wordpress has an absolutely awful security record


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


Who is online

Users browsing this forum: No registered users and 3 guests


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