php require 500,thinkphp5出现500错误怎么办
生活随笔
收集整理的這篇文章主要介紹了
php require 500,thinkphp5出现500错误怎么办
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
thinkphp5出現(xiàn)500錯(cuò)誤,如下圖所示:
require(): open_basedir restriction in effect. File(/home/wwwroot/pic/thinkphp/start.php) is not within
the allowed
解決方法:
1、我是lnmp1.4 php5.6,php.ini里面的open_basedir 是注釋掉的。
2、查找到是fastcgi問題。
3、修改fastcgi的配置文件。/usr/local/nginx/conf/fastcgi.conffastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";
修改為fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/../:/tmp/:/proc/";
4、重啟 service nginx restart。
總結(jié)
以上是生活随笔為你收集整理的php require 500,thinkphp5出现500错误怎么办的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 000 SpringMVC介绍
- 下一篇: Windows绘图基础