Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Feb 15, 2011 4:19 am 
Offline
Senior Newbie

Joined: Sat Feb 12, 2011 11:07 am
Posts: 14
I have successfully installed LEMP and Wordpress. I'm now trying to get the upgrade function to work properly within the Wordpress (new versions of Wordpress and plugins).

How can I set this up without using ftp?


Top
   
 Post subject:
PostPosted: Tue Feb 15, 2011 3:28 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
chown the wordpress file to be owned by the web server then when you're done chown them back to the original user

i.e.

chown -R www-data /path/to/wordpress

...do update...

chown -R fred /path/to/wordpress

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Tue Feb 15, 2011 5:42 pm 
Offline
Senior Newbie

Joined: Wed Jun 16, 2010 4:55 pm
Posts: 10
Or run PHP as user (cgi,suphp,suexec.. )


Top
   
 Post subject:
PostPosted: Mon Feb 28, 2011 6:50 pm 
Offline
Senior Newbie

Joined: Sat Feb 26, 2011 10:51 pm
Posts: 15
Are you getting a error message asking for "your credentials"? If that's the case, don't even try, that's a legendary bug in wordpress that had no solution (believe me). As obs said, the problem is caused because the webserver isn't capable to write the wordpress directory.

To solve that you can try to give "ownership" to the nginx user (www-data in ubuntu/debian, http in arch linux...) or give group write permission, create a new group, change the group of the wordpress directory to the recent group and then make sure the nginx user is part of it.

Be advised that the web server have to be capable of write not only the "wordpress dir", also the "document root".

(In my example, the document root is folder websites)

Code:
cd /path/where/you/host/your/websites
cd ..
chmod -R g+rs websites
groupadd wordpress
chgrp -R wordpress websites


The "g+rs" is to make the folder "sticky", that means every file created will keep the current directory group, so, every new file will be in the wordpress group.

A bit longer solution, but I found more elegant =P


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