您好,服务器内找到这个路径/www/server/nginx/conf
具体看下缺少enable-php哪个PHP版本的配置文件。
找到缺少的文件,新建一个enable-php-PHP的版本号.conf文件。
内容如下:
- location ~ [^/]\.php(/|$)
- {
- try_files $uri =404;
- fastcgi_pass unix:/tmp/php-cgi-PHP版本号.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
复制代码
|
|