thinkphp5服务器部署遇到的问题  打开网址,显示404

candir() has been disabled for security reasons

解决办法:

  • 进入到php的配置目录,
    编辑php.ini 
    cd /usr/local/php/etc
    vi php.ini
  • 搜索scandir (/scandir )后删掉,保存退出。
    thinkphp5服务器部署遇到的问题
 打开网址,显示404
  • 重启nginx和php-fpm。再刷新查看,OK啦!
    service nginx restart 
    service php-fpm restart

file_put_contents ......... permission denied

解决方法:

  • chmod 777 runtime -R (-R很重要)

将网站根目录设置到public目录下,网站白屏500错误

解决方法:

解决方法: