FTP request when trying to install a wordpress plugin

When trying to install a plugin (currently I only have cornerstone installed) I get a pop up with the following request:

“To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.”

When I input my SFTP (I couldn’t find any mention of FTP in my host account - are they the same?!) username and password another box pops up and says that the connection to the server failed.

I did note that in my host account the SFTP information says port 22 and when the error message comes back it says that wordpress was trying to connect to port 21.

I’ve spoken to my host and they were unable to provide a fix - is this something I’ve caused?

Apologies if this isn’t within your support remit - I’ve looked everywhere for a fix and haven’t been able to find anything.

Thanks in advance for your reply.

Hi there,

The error usually occurs when define(‘FS_METHOD’,’direct’); in wp-config.php is missing.

Please login through FTP and edit the wp-config.php file then add define('FS_METHOD','direct'); before the db_name line.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.