问题原因: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