ERROR: There was an error connecting to the server, Please verify the settings

While updating the WordPress plugin using FTP client I was getting the error as -
'ERROR: There was an error connecting to the server, Please verify the settings are correct'.

Solution -

1. Enable the debug mode for your WordPress site -
    You can enable it from wp-config.php file. You can update the below value -
    define( 'WP_DEBUG', true );

2. Check the permission for plugin directory -
    Please make sure you have read and write permission (777) for plugin directory.

3. FTP Setup -
    Make sure the you've below setup in your wp-config.php file for FTP -

   define( 'FS_METHOD', 'ftpext' );
   define( 'FTP_BASE', '/path/to/wordpress/' );
   define( 'FTP_CONTENT_DIR', '/path/to/wordpress/wp-content/' );
   define( 'FTP_PLUGIN_DIR ', '/path/to/wordpress/wp-content/plugins/' );
   define( 'FTP_PUBKEY', '/home/cPanel_username/.ssh/id_rsa.pub' );
   define( 'FTP_PRIKEY', '/home/cPanel_username/.ssh/id_rsa' );
   define( 'FTP_USER', 'username' );
   define( 'FTP_PASS', 'password' );
   define( 'FTP_HOST', 'ftp.your_site_name' OR 'your hostname');
   define( 'FTP_SSL', false );
   Make sure you are able to connect to your account using the FTP details in wp-config.php file.

4. SSH SFTP Updater Plugin
-
  You'll need to make sure, if you've 'SSH2 SFTP Updater Plugin' enabled then in connection information,                connection type should be SSH2.

It resolved my issue!
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but...

How to setup the root login alert notification email?

Its very important to keep a check on your servers and who logs into the server, From security...

How to enable Open SSL on WHM?

Before enabling open SSL, you can check whether it is already enabled on your server. Please fire...

How to install mod_pagespeed on WHM?

'mod_pagespeed' is module of Apache which is nothing but plugin which is used for compressing the...

How to enable Hot Link Protection in cPanel?

To avoid other sites to use your website's bandwidth, you can enable the hot link protection....

Powered by WHMCompleteSolution