• <dl id="2u8ki"><small id="2u8ki"></small></dl>
    • <rt id="2u8ki"><em id="2u8ki"></em></rt>
    • <menu id="2u8ki"></menu>
      0712-2888027 189-8648-0214
      微信公眾號

      孝感風(fēng)信網(wǎng)絡(luò)科技有限公司微信公眾號

      當(dāng)前位置:主頁 > 技術(shù)支持 > PHP > 解決Laravel Warning: require(): open_basedir restriction in effect.錯誤

      解決Laravel Warning: require(): open_basedir restriction in effect.錯誤

      時間:2020-04-04來源:風(fēng)信官網(wǎng) 點擊: 7405次
      新項目布置Laravel,所有源代碼數(shù)據(jù)上傳至服務(wù)器中,配置好運行環(huán)境,調(diào)試出現(xiàn)如下錯誤提示:
       
      Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/new.xin-lian.cn/vendor/autoload.php) is not within the allowed path(s): (/www/wwwroot/new.xin-lian.cn/public/:/tmp/:/proc/) in /www/wwwroot/new.xin-lian.cn/public/index.php on line 24
       
      Warning: require(/www/wwwroot/new.xin-lian.cn/vendor/autoload.php): failed to open stream: Operation not permitted in /www/wwwroot/new.xin-lian.cn/public/index.php on line 24
       
      Fatal error: require(): Failed opening required '/www/wwwroot/new.xin-lian.cn/public/../vendor/autoload.php' (include_path='.:/www/server/php/73/lib/php') in /www/wwwroot/new.xin-lian.cn/public/index.php on line 24
       
      經(jīng)檢查發(fā)現(xiàn)是寶塔中.user.ini中open_basedir的配置有誤,解決方法如下:
       
      編輯user.ini
      chattr -i .user.ini
      vim .user.ini
      open_basedir=/home/wwwroot/ithov.net/:/tmp/:/proc/
      改為
      open_basedir=/home/wwwroot/ithov.net/public/ :/tmp/:/proc/
      然后
      chattr +i .user.ini
      最后重啟PHP或者Nginx
      重啟PHP
      /etc/init.d/php-fpm restart
      重啟Nginx
      service nginx restart
      熱門關(guān)鍵詞: Laravel require() open_basedir restriction
      欄目列表
      推薦內(nèi)容
      熱點內(nèi)容
      展開
      中文字幕无码AV黄片,亚洲天堂日本美女,国产亚洲色婷婷久久99精品91,午夜无码不卡视频 99久色图精品国产 精品熟女少妇A∨免费久久
    • <dl id="2u8ki"><small id="2u8ki"></small></dl>
      • <rt id="2u8ki"><em id="2u8ki"></em></rt>
      • <menu id="2u8ki"></menu>