<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # **升級PHP 7.4教程** 因VSHOP 2.0提升性能要求,需使用PHP 7.4及以上版本支持。本篇教程將詳細講解如何在寶塔面板安裝并配置PHP 7.4。 1.**寶塔面板升級到最新版本** (1)登錄寶塔面板 (2)點擊面板首頁右上角“檢查更新”或“更新”,檢測到新版本后直接更新即可 (3)若寶塔面板更新提示在面板后臺無法完成更新,需聯系EWEISHOP客服人員提供寶塔面板地址、賬戶、密碼及服務器IP和密碼,由我司技術人員為您處理。 2.**安裝PHP 7.4** (1)進入“軟件商店”搜索PHP ,找到PHP 7.4安裝(極速安裝) ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/6d892bc04b94842e75b43ad3b97a4756.png) ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/f832b31c77ea50dbf73b418fc9bd4026.png) **注意**:若安裝PHP7.4提示安裝完成,但PHP7.4仍舊是未安裝狀態,可檢查是否與下圖錯誤一致: ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/5d51fb61c7ec6629f2540be77cfa31b9.png) ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/27baf4ef167e88673bb7762748f61fd9.png) 原因:服務器的libjpeg沒有安裝。 需要在服務器執行命令:yum ?install -y ?libjpeg ?libjpeg-devel 安裝完成jpeg后再在寶塔面板執行PHP7.4的安裝 (2)安裝完成后需要為PHP 7.4安裝必要擴展 點擊PHP 7.4 ——》設置——》安裝擴展 安裝ioncube、mongodb、redis、opcache擴展 ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/0e080c98aaa5290ec2614fdacb092d0f.png) ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/c3f644f82fb12f43cff192bd2044bce4.png) (3)檢查PHP7.4安裝是否生成nginx配置文件 進入nginx配置文件目錄:/www/server/nginx/conf ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/3cf982827c67a31c48518ec1ae277147.png) 檢查是否有enable-php-74.conf文件,若有改文件,則跳到下一步。若沒有該文件,需要手動創建。 ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/7f8704c6878df2381ed7c56a3cbb4408.png) ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/8f8b9f5e51a6cf13617385204c757d47.png) 編輯enable-php-74.conf文件,將以下代碼內容復制到該文件中并保存。 location ~ [^/]\.php(/|$){try_files $uri =404;fastcgi_pass &nbsp;unix:/tmp/php-cgi-74.sock;fastcgi_index index.php;include fastcgi.conf;include pathinfo.conf;} 注意:若未創建enable-php-74.conf文件后更新VSHOP2.0,更新完成管理端、業務端會提示報錯如下: **Fatal error**: The file /www/wwwroot/vshop/common/boot.php encoded as type \[1/72\] cannot be decoded by this version of the ionCube Loader. in?**Unknown**?on line?**0** (4)安裝完成后重啟php 7.4 ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/7be0e9930de2b634ae90df6ab9443ab7.png) 3.**修改EWEISHOP站點使用的PHP版本** ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/f8def6fe23101946c49393b126e68f38.png) **![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/ccfe1fe7ccf4a6a66a33185c9e69f194.png)** 4.**修改EWEISHOP配置文件中默認PHP版本** (1)修改eweishop/common/config/main-local.php中php版本 **注意**:可能有用戶該文件中沒有php相關配置,若沒有可直接進入一下第(2)步。 ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/ea9e5fe614ff1f75fe5ca26b18b8812f.png) ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/b5630bfc74316f94ff47438c7b5f1c71.png) (2)修改eweishop/common/config/main-local.yaml中PHP版本 ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/eaf692e0b64e6abb8de1e3f2eaeca225.png) ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/76ee8a79aaa2eca49fb6933d03a0843d.png) 5.**修改服務器默認PHP版本** ![](http://eweishop-yun-new.oss-cn-beijing.aliyuncs.com/global/image/2020/10/7c0b6cfc1f5f7d749bca6fd008e16e70.png) 6.**修改成功保存后,vshop監聽服務會自動重啟,會有10秒左右的閃斷。**
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看