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

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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