WordPress无法编辑主题文件
LNMP(LNMP一键安装包http://www.lnmp.org/) 原因:PHP屏蔽函数scandir导致。 PHP禁止浏览目录造成,需要修改PHP的配置文件php.ini。 解决:PHP配置文件php.ini中找到scandir并删除(disable_functions=中的) 位置 /usr/local/php/etc/php.ini disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_restore,dl ,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server 改为: disable_functions = passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_restore,dl ,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server 重启LNMP,输入命令:/root/lnmp restart 即可,单独重启mysql:/etc/init.d/mysql restart