WordPress wants your FTP information to update Plugins and Themes

how-to-create-ftp

Do you get these errors when trying to have WordPress automatically update your plugins or themes?

To perform the requested action, connection information is required

or

Failed to connect to FTP Server

If you are using a VPS

You can fix that by logging on the root terminal and type:

sudo chown -R www-data:www-data *

Note: You must switch directories to the correct path where your WordPress installation is. And don’t forget to reload the web server for changes to take effect.

If you are using a Shared hosting

Open up wp-config.php (found in your WordPress folder) and add/edit:

define(“FTP_HOST”, “ftp.mysite.com”);
define(“FTP_USER”, “your-username”);
define(“FTP_PASS”, “your-password”);

Hope it helps!

Leave a Reply

Your email address will not be published. Required fields are marked *