1.部署到服务器上之后,访问域名500,没有报错信息
在php.ini里找到
display_errors = Off
将Off改为On就会正常显示报错信息
2.如果出现类似以下报错
Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/lexianghui/bootstrap/autoload.php) is not within the allowed path(s):
(/home/wwwroot/lexianghui/public/:/tmp/:/proc/) in /home/wwwroot/lexianghui/public/index.php on line 22
Warning: require(/home/wwwroot/lexianghui/bootstrap/autoload.php): failed to open stream: Operation not permitted in
/home/wwwroot/lexianghui/public/index.php on line 22
Fatal error: require(): Failed opening required '/home/wwwroot/lexianghui/public/../bootstrap/autoload.php'
(include_path='.:/usr/local/php/lib/php') in /home/wwwroot/lexianghui/public/index.php on line 22
则在php.ini里添加对应代码
[HOST=lxh.woann.cn]
open_basedir=/home/wwwroot/lexianghui/:/tmp/
[PATH=/home/wwwroot/lecxianghui/public]
open_basedir=/home/wwwroot/lexianghui/:/tmp/
对应的域名和目录自行更换
或参考

如果有不懂得地方可以联系咨询下
qq: 304550409
微博: 吴同学吖
网友评论