Skip to main content


Unable install plugins localhost

Unable to install plugins on localhost

I create a WordPress website on locally but Unable install plugins localhost. Creating WordPress websites on local host server is a common practice. We can try more WordPress themes and plugins, test their features, and learn about new functionality in the WordPress. I had only one problem that I could not install the plugin from the admin panel.

Reason unable install plugins localhost

The plugin search functionality is working properly but installation is gives error that “Enter FTP credentials to proceed”. You can see ‘Connection Information’ screen. I did not have FTP credentials to install on the localhost.

Important: WordPress does not have the essential permissions to directly modify the file, then you will be asked for FTP credentials to install plugins or updates its files.

How to install WordPress plugins

Of course you can download the plugins from online and then copy and paste the files to your localhost plugin directory. But I added the following code to our wp-config.php file.

define(‘FS_METHOD’, ‘direct’);

I return to Plugin page and install it again. Now it is showing another error:

“Installation fail: Could not create directory”.

I changed the privileges for the wp-content folder to 777.

unable to install plugin on localhost

Now plugins are fully installed.

One thought on “Unable to install plugins on localhost

Leave a Reply

Your email address will not be published. Required fields are marked *