thinkphp 宝塔部署问题

Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/zhuyuyun/thinkphp/start.php) is not within the allowed path(s): (/www/wwwroot/zhuyuyun/public/:/tmp/:/proc/) in /www/wwwroot/zhuyuyun/public/index.php on line 20
Warning: require(/www/wwwroot/zhuyuyun/thinkphp/start.php): failed to open stream: Operation not permitted in /www/wwwroot/zhuyuyun/public/index.php on line 20

解决办法:

把public下的user.ini 改成----open_basedir=/www/wwwroot/chinafpkf.cn/:/tmp/:/var/tmp/:/proc

默认是open_basedir=/www/wwwroot/chinafpkf.cn/public:/tmp/---------总出问题

你可能感兴趣的:(php)