Solved WordPress Hostname Problem While Installing Plugins On Localhost

Last Updated: November 12, 2014 /
If you are a WordPress developer then you know that working on localhost is better than server. Local work Is faster and load files quickly and also benefit from localhost work, you can access all files of the entire project. If you are installing a plugin on localhost then you see Connection Information Message and unable to Install plugin on localhost. Many developers facing this problem. I am sharing solution of this issue.



Install/Update Wordpress Plugin Without FTP


Add the below code into your WordPress wp-config.php file and change your file system method.



define('FS_METHOD', 'direct');

This method allows a WordPress site to update theme or plugin on localhost server. I hope this method helps you solve your hostname problem. If you find any problem with this method then please let us know.