php程式報無法載入模組:install.php
过去多啦不再A梦
过去多啦不再A梦 2017-05-24 11:32:25
0
1
931

從網路上找了個php程序,看著像是基於thinkPHP 3.1開發的,然後把自己的阿里雲服務安裝上了php環境,因為之前裝的是nginx所以環境是php7.0 nginx。但配置好後提示如下:

無法載入模組:install.php
錯誤位置

#FILE: /usr/local/nginx/php/thinkphp/Common/functions.php  LINE: 112

但是一個簡單的phpinfo頁面可以顯示,請問這是什麼問題,下面附上我的nginx設定

#
server {
        listen 80;
        server_name shop.luger.me;
        index index.php index.html;
        root /usr/local/nginx/php;

        location /{
                if (!-e $request_filename) {
                        rewrite ^/(.*)$ /index.php/ last;
                        break;
                }
        }

        #location ~ \.php$ {
        location ~ ^(.+\.php)(.*)$ {
                root /usr/local/nginx/php;

                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                fastcgi_param PATH_INFO $fastcgi_script_name;
                include fastcgi_params;

        }
}

請問這是什麼問題。

过去多啦不再A梦
过去多啦不再A梦

全部回覆(1)
PHPzhong

沒有安裝程式或nginx需要對安裝程式做特殊設定。需要看你的PHP程式官方文件或安裝文件

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!