From charlesreid1

Line 43: Line 43:
==Vsftpd for Wordpress==
==Vsftpd for Wordpress==


Here's a link to my [[Vsftpd]] page, where I discuss setting up vsftpd as an FTP server for Wordpress.
<s>Here's a link to my [[Vsftpd]] page, where I discuss setting up vsftpd as an FTP server for Wordpress.</s>
 
See [[Metasploitable/VSFTP]]
 
 
 




[[Category:Wordpress]]
[[Category:Wordpress]]
[[Category:PHP]]
[[Category:PHP]]

Revision as of 04:41, 7 May 2017

FTP issues

Getting tired of fixing these problems over and over.

Set up FTP on your WP server

install/run vsftpd on Unix

change /etc/vsftpd.conf to include the following line at the end:

listen_port=21

You could also change the port number that Wordpress uses.

Once that's done, and you go to update something in Wordpress, you can give it your usual login credentials (your Unix username/password) and everything should work.

If not, you may have a permissions problem with your server - wherever Wordpress is trying to install its extensions or updates. In that case, use chmod/chown to change ownership of your Wordpress content folder:

sudo chown -R charles:charles /www/wordpress/wp-content

FTP permissions

For a while there, I was having problems updating plugins from the WP admin panel. The problem was a permissions problem, and these are the notes on it.

To be able to use FTP through the Wordpress admin panel, you'll need to give your web user write access to plugins. Here's what that means:

Your web user is probably www-data. It depends on the web server you're using.

Your plugins directory is in /path/to/wordpress/wp-content/plugins. If you install the foobar plugin in WP, it will create a folder in /path/to/wordpress/wp-content/plugins/foobar with the plugin. So to create/update/delete plugins from the WP admin panel, the web user has to be able to do those things.

In practice, this means you can either make the web user the owner of the files, or you can add them to the web user's group and let anyone in the web user group edit them. I am doing the second case. I fixed this issue would be a sequence of commands like:

cd /path/to/wordpress/wp-content/
sudo chgrp -R www-data plugins/
sudo chmod -R g+w plugins/

Vsftpd for Wordpress

Here's a link to my Vsftpd page, where I discuss setting up vsftpd as an FTP server for Wordpress.

See Metasploitable/VSFTP