Whenever you want to make some changes in functionality or design of your blog, it’s always recommended that you have a test site, where you could first test the changes.
If changes work as intended, you then make same changes on your live blog, to make sure that things remain smooth on the live blog.
For test site you can either use a new domain and hosting space or you could choose to install a replica of your blog on your computer or laptop, which does not involve any additional cost.
In case you choose to have a replica of your blog locally on your computer, you might not be able to install plugins directly from WordPress dashboard as it will ask you to enter FTP credentials. In this quick and short article I will show you how to install plugins on localhost in WordPress without FTP.
You can always install plugin by downloading and placing the plugin folder inside plugins directory, but installing a plugin directly from Dashboard is more convenient.
How to install plugins on localhost in WordPress without FTP
When you will try to install a plugin in local WordPress installation using Dashboard you will be asked to provide FTP credentials.
Now to get the plugin installed without asking for your FTP credentials, you need to edit wp-config.php file in the WordPress installation directory.
Add the following line of code in wp-config.php file :
Now when you will try to install plugin from Dashboard, you won’t be asked to enter FTP credentials.
Did you know this workaround ? Do you know any other interesting workarounds for the problem ?