1.500错误 —开启php.ini 的display_error

修改fastcgi的配置文件 /usr/local/nginx/conf/fastcgi.conf

fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";

改成

fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/../:/tmp/:/proc/";

 

2.修改php.ini的函数

3.404错误

修改/usr/local/nginx/conf/nignx.conf

if (!-e $request_filename) {
rewrite ^/index.php(.*)$ /index.php?s=$1 last;
rewrite ^/(.*)$ /index.php?s=$1 last;
break;
}
    

修改/usr/local/nginx/conf/enable-php.conf

fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
fastcgi_param  PATH_INFO  $fastcgi_path_info;

 

 http://192.168.174.145/admin/login/index.html

版权声明:本文为anhao1226原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/anhao1226/p/10707485.html