Daily Business Resources for Entrepreneurs, Web Designers, & Creatives by Andy Sowards

WordPress FTP Needed to Upgrade Plugin Work-Around Fix

Hey Everyone thanks for visiting!

So The other day a client brought up an issue about their wordpress blog, which pretty much everyone uses these days, Anyway, They had an issue with wordpress asking them for FTP information everytime they want to upgrade a plugin automatically through the new auto upgrade feature in the admin. Apparently this is a new security feature because I had not found it before.

But good news! A Quick google search yields results!! I found a quick workaround here. Which I will explain below.

First you need to locate your wp-config.php file located in your root blog directory (example: www.domain.com/blog/wp-config.php) open up that file, and below where it sets up all the ftp information such as this:

// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

Now just give it a few line returns and then paste the following:

define('FTP_HOST', 'ftp://example.com/');
define('FTP_USER', 'example_user');
define('FTP_PASS', 'example_pass');
//Set to true if your host uses SSL connections
define('FTP_SSL', false);

Of course now if you have access to your ftp info, which you should, simply replace the placeholder text inside the single quotes(you need to keep the single quotes) such as replacing ‘ftp://example.com/’ with ‘ftp.yourdomainname.com’ and do the same for the username and password(define(‘FTP_SSL’, false); can stay untouched) and voila! you are upgrading plugins left and right without skipping a beat!

If you continue to have trouble with this (or other wordpress related features) then you probably need to switch to a different hosting or dedicated web hosting provider that supports wordpress better. Some hosts just do not work well with wordpress, or aren’t up to date with the latest version of PHP.

Hope you guys found this helpful, I know I did. Let me know if anyone has any trouble with the solution.

Speak Soon,

Andy Sowards

Exit mobile version