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.
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