Themes are not installing at WordPress using Localhost not web server

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


Submit an 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.

chown: changing ownership of ‘/opt/lampp/htdocs/wordpress’: Operation not permitted

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

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

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