首页  >  问答  >  正文

php程序报无法加载模块:install.php

从网上找了个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梦2679 天前937

全部回复(1)我来回复

  • PHPz

    PHPz2017-05-24 11:34:25

    没有安装程序或者nginx需要对安装程序做特殊配置。需要看你的PHP程序官方文档或安装文档

    回复
    0
  • 取消回复