WordPress 后台提示”您目前只安装了一个主题,太少了吧!”的解决办法

问题原因:php.ini禁止了函数:scandir

解决方法:

1.用sed替换原disable_functions配置

sed -i ‘s/disable_functions =.*/disable_functions = passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,fsocket/g’ /usr/local/php/etc/php.ini

2.重启php-fpm

/etc/init.d/php-fpm restart

posted @ 2013-06-04 13:37  adodo1  Views(120)  Comments(0Edit  收藏  举报