本帖最后由 痞子哥 于 2019-5-7 14:32 编辑
Apache模式的话,在你截图的安装扩展中可以开启和关闭PATH_INFO。
Nginx模式下的话,方式如下(注意你的PHP版本数字,下面的例子是php7.2):
- 站点设置 =》 配置文件中找到下面的内容
-
- #PHP-INFO-START PHP引用配置,可以注释或修改
- include enable-php-72.conf;
- #PHP-INFO-END
-
- 修改成为
-
- #PHP-INFO-START PHP引用配置,可以注释或修改
- location ~ [^/]\.php(/|$)
- {
- try_files $uri =404;
- fastcgi_pass unix:/tmp/php-cgi-72.sock;
- fastcgi_index index.php;
- include fastcgi.conf;
- #include pathinfo.conf;
- }
- #PHP-INFO-END
复制代码
|