candir() has been disabled for security reasons 解决办法: 进入到php的配置目录,编辑php.ini cd /usr/local/php/etcvi php.ini 搜索scandir (/scandir )后删掉,保存退出. 重启nginx和php-fpm.再刷新查看,OK啦!service nginx restart service php-fpm restart file_put_contents ......... permission…