Search code examples
wordpresswordpress-theminglampp

Wordpress theme installation failed


While Installing the WordPress theme, I get the error below

" Unpacking the package…

Installing the theme…

Could not create directory. /opt/lampp/htdocs/wordpress/wp-content/themes/universal-lite/

Theme installation failed.

"

Anyone please help me. I am stuck


Solution

  • It seems like the user does not have sufficient permissions to create folders in this directory.

    Try if you can create a folder in this directory yourself

    $mkdir /opt/lampp/htdocs/wordpress/wp-content/themes/test
    

    If you want to grant all permissions for testing purposes to this directory and all sub-folders try

    $sudo chmod -R 777 /opt/lampp/htdocs/