<span id="pfnzv"></span>
      <form id="pfnzv"><span id="pfnzv"></span></form><address id="pfnzv"><span id="pfnzv"><nobr id="pfnzv"></nobr></span></address>
      <form id="pfnzv"><dfn id="pfnzv"><listing id="pfnzv"></listing></dfn></form>

        <sub id="pfnzv"><address id="pfnzv"></address></sub>
          <address id="pfnzv"><form id="pfnzv"><listing id="pfnzv"></listing></form></address>
          <address id="pfnzv"><address id="pfnzv"><nobr id="pfnzv"></nobr></address></address>

            <address id="pfnzv"></address>
            0712-2888027 189-8648-0214
            微信公眾號

            孝感風信網絡科技有限公司微信公眾號

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

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

            時間:2024-08-23來源:風信官網 點擊: 7312次
            新項目布置Laravel,所有源代碼數據上傳至服務器中,配置好運行環境,調試出現如下錯誤提示:
             
            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
             
            經檢查發現是寶塔中.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
            欄目列表
            推薦內容
            熱點內容
            展開
            国产精久久久久无码AV动漫|最新亚洲精品国偷自产在线|2021亚洲色中文字幕在线|最新无码av中文字专区 情欲美妇紧致敏感 国产免费AⅤ片在线播放 人妻爽爽免费在线视频 51精品国产人成在线观看 色偷偷av一区二区三区
            <span id="pfnzv"></span>
                <form id="pfnzv"><span id="pfnzv"></span></form><address id="pfnzv"><span id="pfnzv"><nobr id="pfnzv"></nobr></span></address>
                <form id="pfnzv"><dfn id="pfnzv"><listing id="pfnzv"></listing></dfn></form>

                  <sub id="pfnzv"><address id="pfnzv"></address></sub>
                    <address id="pfnzv"><form id="pfnzv"><listing id="pfnzv"></listing></form></address>
                    <address id="pfnzv"><address id="pfnzv"><nobr id="pfnzv"></nobr></address></address>

                      <address id="pfnzv"></address>