Report this

What is the reason for this report?

Themes are not installing at WordPress using Localhost not web server

Posted on March 10, 2020

Hi, how to install themes at wordpress using localhost pc not web server, when I try to install themes it shows me error message that " Installation failed: Could not create directory".

I am using Xampp at local pc , how to fix this problem Thank you



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

and when I tried to run this command then below message shown at all folder and directory

chmod: changing permissions of ‘/opt/lampp/htdocs/wordpress/wp-config.php’: Operation not permitted

Hi @malakwal,

The error “ Installation failed: Could not create directory”. Indicates that you have the wrong permissions or ownership configured for your website.

To fix the permission issue, you can run the following command :

find /path/to/website -type f -exec chmod 644 {} \;
find /path/to/website -type d -exec chmod 755 {} \;

Please remember to change the /path/to/website with your actual DocumentRoot.

To change the ownership of a folder or a file, you can execute the following command

chown -R user:user /path/to/website

You’ll need to change the user:user bit with the actual User you have your Xampp configured with.

Regards, KDSys

thank you for you reply, but I am sorry to say I am still unable to install themes even I tried commands which you instruct, I am using Xampp at local pc and xampp is install at opt/lampp/htdocs/wordpress, so you would you please tell me exact command to make correction for permission

Thank you

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.