How to fix the problem: cannot find or install theme in Dashboard in WordPress

Reason : permission not allowed


Step 1:  chown -R www:www your-wordpress-dir  because default user group of nignx is www  ( /usr/local/php/etc/php-fpm.conf point to default user and user group)

Step 2: (key) : remove scandir function indisable_functions of /usr/local/php/etc/php.ini

Step 3: restart server, if you use lnmp, like this ./lnmp restart


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.