Fecshop-2.0.1版本,本关于开启open_basedir防跨站设置,报错解决。

经验分享 · Adia · 于 4年前 发布 · 1431 次阅读

安装了Fecshop-2.0.1版本,服务器配置了open_basedir防跨站。

appadmin后台报错:

file_exists(): open_basedir restriction in effect. File(/etc/config.php) is not within the allowed path(s): (/www/web/fecshop/:/usr/lib/php/:/tmp/)

解决方案:

修改文件第34行 /fecshop/vendor/fancyecommerce/fec/AdminModule.php

$config_file_dir = $this->_currentDir . '/etc/config.php';

/etc/config.php/前面加"."

$config_file_dir = $this->_currentDir . './etc/config.php';
共收到 0 条回复 技术分享
没有找到数据。
添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics