Question

Themes are not installing at WordPress using Localhost not web server

Posted March 10, 2020 150 views
WordPress

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

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.

×
4 answers

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

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

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

Submit an Answer