安装淘宝扩展插件报错

安装报错 · golden · 于 3年前 发布 · 1095 次阅读

版本:2.7X PHP Warning 'yii\base\ErrorException' with message 'is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/www/fecmall:/tmp/:/proc/)'

in /home/www/fecmall/vendor/fancyecommerce/fecshop/services/helper/ZipFile.php:81

Stack trace: #0 [internal function]: yii\base\ErrorHandler->handleError(2, 'isdir(): open...', '/home/www/fecma...', 81, Array) #1 /home/www/fecmall/vendor/fancyecommerce/fecshop/services/helper/ZipFile.php(81): is_dir('/') #2 /home/www/fecmall/vendor/fancyecommerce/fecshop/services/helper/ZipFile.php(42): fecshop\services\helper\ZipFile->create_dirs('/home/www/fecma...') #3 /home/www/fecmall/vendor/fancyecommerce/fecshop/app/appadmin/modules/System/controllers/ExtensionmarketController.php(148): fecshop\services\helper\ZipFile->unzip('/home/www/fecma...', '/home/www/fecma...', true, true) #4 [internal function]: fecshop\app\appadmin\modules\System\controllers\ExtensionmarketController->actionInstall() #5 /home/www/fecmall/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #6 /home/www/fecmall/vendor/yiisoft/yii2/base/Controller.php(180): yii\base\InlineAction->runWithParams(Array) #7 /home/www/fecmall/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('install', Array) #8 /home/www/fecmall/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('system/extensio...', Array) #9 /home/www/fecmall/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(yii\web\Request)) #10 /home/www/fecmall/appadmin/web/index.php(50): yii\base\Application->run() #11 {main}

共收到 2 条回复
golden#13年前 0 个赞

修改 nginx 的 fastcgi.conf 的open_basedir 可以安装了

Fecmall#23年前 0 个赞

1.报错信息写到title里面,方便后面的人搜索

2.修改 nginx 的 fastcgi.conf 的open_basedir 可以安装了, 可以详细说明一下,方便后面遇到这个报错的解决问题。

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics