BT面板环境下destoon手机版m站提示Warning: require(): open_basedir restriction in effect的解决方法

毒药      96阅读

在BT面板环境下安装的destoon网站管理系统,手机站是新建站点然后目录指向子目录,但是打开m站是提示如下:

Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/www.zgmpjd.com/common.inc.php) is not within the allowed path(s): (/www/wwwroot/www.zgmpjd.com/mobile/:/tmp/:/proc/) in /www/wwwroot/www.zgmpjd.com/mobile/index.php on line 6

Warning: require(/www/wwwroot/www.zgmpjd.com/common.inc.php): failed to open stream: Operation not permitted in /www/wwwroot/www.zgmpjd.com/mobile/index.php on line 6

Fatal error: require(): Failed opening required \\\\\\\\\\\\\\\'../common.inc.php\\\\\\\\\\\\\\\' (include_path=\\\\\\\\\\\\\\\'.:/www/server/php/54/lib/php\\\\\\\\\\\\\\\') in /www/wwwroot/www.zgmpjd.com/mobile/index.php on line 6

解决方法:
1、打开对应项目根目录mobile的 user.ini 文件把
open_basedir=/www/wwwroot/www.zgmpjd.com/mobile/:/tmp/:/proc/

改成:
open_basedir=/www/wwwroot/www.zgmpjd.com/:/tmp/:/proc/

2、重启此m站web服务

   96阅读
目前尚无回复
登录 后发表评论