Project

General

Profile

Wordpress博客无法编辑主题

技术文档
03/06/2013

Warning: scandir() has been disabled for security reasons in /home/wwwroot/blog/wp-includes/class-wp-theme.php on line 978
Warning: Invalid argument supplied for foreach() in /home/wwwroot/ blog /wp-includes/class-wp-theme.php on line 981
Warning: scandir() has been disabled for security reasons in /home/wwwroot/ blog /wp-includes/class-wp-theme.php on line 978
Warning: Invalid argument supplied for foreach() in /home/wwwroot/ blog /wp-includes/class-wp-theme.php on line 981
LNMP一键安装包
1、找到php.ini,编辑,找到 “disable_functions” 这个函数 后面的这些函数是为了服务器安全默认禁止的,找到我们要使用的scandir函数,删掉,然后保存!
2、执行/etc/init.d/php-fpm restart命令

Files