WordPress Asking FTP Login details to install New PluginsRasu (Author) Published Date : May 22, 2019 16:17 IST
WordPress Asking FTP Login details to install New Plugins, and this happens when you try to install any new themes or update plugins or install new plugins in your WordPress. This is a very common FTP request when you try to install in WordPress without having root folder access permission. Many people who have no server-side knowledge could face these types of issues, but this is easily solvable by anyone. If you install WordPress in Shared Hostings like Godaddy or Hostgator and so, you may not face this issue.
WordPress Asking FTP Login details to install or update new themes or plugins. Server access request.
But when you move your website to Cloud servers like Digital Ocean, Amazon and so, we need to provide folder permission access to WordPress script to access your website folder to add and edit scripts inside wp-content Folders. Enabling command will allow a WordPress website to update / Install new themes and plugins.
How to Fix WordPress Asking FTP Login details
- Adding new line in wp-config.php file
- Enabling simple command in SSH Terminal
sudo chown -R www-data /var/www/HTML
Which allows WordPress script to install new themes and plugins now without asking for FTP login details. Once we update or install required plugins and themes, we need to lock the folder permission again to make server secure. Follow below command as like the previous command in SSH Terminal.
sudo chown -R root /var/www/HTML
Step 2: Goto FTP application or Launch your SSH terminal from Server or using putty, navigate to WordPress Script
Find wp-config.php in the WordPress root folder and open to edit. Add this below line anywhere in the wp-config.php file as shown in below image.
As like Step 2, we need to remove if we need to lock folder permission, Else leave the line for regular installations. these are all the 2 simple steps to make WordPress script to install or update themes and plugins without FTP login details.
WordPress Asking FTP Login details to install New Plugins