HostOnNet Blog

How to fix Could not create directory error on local wordpress

Looking for Linux Server Admin or WordPress Expert? We can help.

WordPress is an interesting platform to build your website but when you get this kind of errors like Unable to install Themes, Plugins localhost, we need to do some settings change to fix it. Here I describes about how I resolved those errors.

I had only problem that I could not install the themes, plugins from the admin panel.

When I try to install a theme/plugin, getting a message like:

“Please enter your FTP credentials to proceed”. You can see ‘Connection Information’ screen. I did not have FTP credentials to install on the localhost.

I fixed that by adding below code in wp-config.php file

define('FS_METHOD', 'direct');

Then I returned to admin panel and tried to install it again. Now it was showing another error as:

“Installation fail: Could not create directory”

To fix that error, I set the permissions for the wp-content folder to 777

Now themes and plugins are fully installed.

About ramesh xavier

Hi I am Ramesh Xavier I have a passion for designing detailed, creative and modern websites, I have been working as web-designer for over 4 years, and have done lots of work over that time, I'm always keeping an eye on the latest trends over typography, shapes, colours, etc..
Posted in Wordpress

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.