ads

WordPress Asking For FTP Credentials To Install Plugins

Wordpress Asking For FTP Credentials.

Wordpress Asking For FTP Credentials.

WordPress Asking For FTP Credentials To Install Plugins?

When WordPress CMS software is installed in a restricted access method in any kind of servers, installing NEW plugins or Updating new plugins need permission to access your WordPress folder in your server. This is likely to be secured CMS system without allowing external sources to access your scripts.

Since WordPress is meant to be a free software which needs regular updates, we need to provide folder access permission to do regular updates and even updates to Plugins and themes. This kind of issue will not come in shared hosting but when we move into Cloud server or Ubuntu Servers, we need to provide access permission. Many people could feel it as Error, but it is not! We can solve this issue in two methods, adding a line to the config file or by providing access command in SSH Terminal.

How to Fix WordPress Asking FTP Login details

  • Add this like  " define(‘FS_METHOD’,’direct’); " in WordPress>wp-config.php file
  • Execute this command in SSH Terminal SUDO chown -R root /var/www/html
  • In the above-specifed method, There are 2 methods, follow anyone
Solve by Method 1:

With the help of FTP software like Filezilla or WinSCP, login into your WordPress folders and edit wp-config.php file and insert the following line anywhere in the script define('FS_METHOD','direct'); as explained in image.

WordPress Asking For FTP Credentials To Install Plugins

Solve by Method 2:

Launch your SSH terminal from our cloud server or using Putty and execute following line sudo chown -R www-data /var/www/html which enables root permission to WordPress or any other scripts inside HTML folder. Check the attached image for clear understanding.

WordPress Asking For FTP Credentials To Install Plugins

Note: Giving complete full access to HTML folder is not advisable, once all your updates are done, its better to reverse permission to restricted access by executing following command in SSH terminal sudo chown -R root /var/www/html this command will lock access to your web folders for security.

Also read: 4 SSDs into One - Gigabyte Imagine the Speed of PC

WordPress Asking For FTP Credentials To Install Plugins