thinkphp5服务器部署遇到的问题

candir() has been disabled for security reasons

解决办法:

  • 进入到php的配置目录,
    编辑php.ini 
    cd /usr/local/php/etc
    vi php.ini
  • 搜索scandir (/scandir )后删掉,保存退出。
  • 重启nginx和php-fpm。再刷新查看,OK啦!
    service nginx restart 
    service php-fpm restart

 

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

解决方法:

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

 

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

解决方法:

 打开网址,显示404

解决方法:

 

posted @ 2017-12-28 16:48  zph前端  阅读(1688)  评论(0编辑  收藏  举报