Searching through the plugin repository works fine but when you try to install a plugin you’re asked to enter FTP credentials to proceed (the ‘Connection Information’ screen). And because we’re working locally, it’s most likely that we don’t have FTP access to our local server.
unable-to-install-plugins-on-localhost-1

Connection Information Screen

Of course you can download the plugin from the wordpress.org online repository and then copy the files to your local plugin directory, but you don’t have to! We can simply add the following code to our wp-config.php to let WordPress use a different filesystem method than FTP.

define('FS_METHOD', 'direct');

Setting the ‘FS_METHOD’ to ‘direct’ will also allow you to update WordPress Core and install themes from the theme repository locally. I’d love to know if this helped you or if you have a question, so please leave a comment below.

Categories: WordPress

0 Comments

Leave a Reply

Avatar placeholder

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