解决Warning: scandir() has been disabled for security reasons in…的问题

最近在一台vps上新安装了lnmp,之后在登陆wordpress后台的时候会提示Warning: scandir() has been disabled for security reasons in /home/wwwroot/yourdomain.com/wp-includes/class-wp-theme.php on line 978Warning: Invalid argument supplied for foreach() in /home/wwwroot/yourdo