The php program reported that it could not load the module: install.php
过去多啦不再A梦
过去多啦不再A梦 2017-05-24 11:32:25
0
1
970

I found a PHP program on the Internet, which looked like it was developed based on thinkPHP 3.1, and then installed my Alibaba Cloud service into the PHP environment. Because nginx was installed before, the environment is php7.0 nginx. But after configuration, the prompt is as follows:

Unable to load module: install.php
Error location

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

But a simple phpinfo page can be displayed. What is the problem? Attached is my nginx configuration

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;

        }
}

Excuse me, what is this question.

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

reply all(1)
PHPzhong

There is no installation program or nginx requires special configuration of the installation program. You need to read the official documentation or installation documentation of your PHP program

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!