Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Feb 11, 2014 1:21 pm 
Offline
Senior Newbie

Joined: Thu Feb 06, 2014 12:58 pm
Posts: 14
Wordpress requires an SFTP account for uploading and installing plugins to itself. I understand how to create a SFTP account by creating a server user account, but what sort of steps do I need to go to secure the wordpress account so it can only modify the correct directories (plugins, themes, etc) in the wordpress directory and so the system user can't possibly do anything but upload and manage files in those folders?


Top
   
PostPosted: Tue Feb 11, 2014 3:37 pm 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
No, Wordpress requires the PHP user to have write access to the folder Wordpress is in. If it doesn't have that, you can use the SFTP (or FTP) credentials of the user that owns the Wordpress files. SFTP is through SSH, so look into SFTP jails:https://library.linode.com/security/sftp-jails


Top
   
PostPosted: Wed Feb 12, 2014 10:11 am 
Offline
Senior Newbie

Joined: Thu Feb 06, 2014 12:58 pm
Posts: 14
Thank you! I was wondering why my installation needed FTP.

I'm a bit of a newb to server management, so is there anything I need to know about giving PHP write access or should I just do something like this?

Code:
chmod www-data 755 /srv/www/DOMAIN/public_html/


Top
   
PostPosted: Wed Feb 12, 2014 10:58 am 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
If PHP runs as www-data 755 should be good,though you should probably use chmod -R to do it recursively. I personally use chmod 710, but this may not work with your set up.

You're gonna want to run chown to change owners by the way, and chmod for the permissions (755)


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