anhao1226

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

分类:

技术点:

相关文章:

  • 2021-05-17
  • 2021-11-03
  • 2021-11-03
  • 2021-05-25
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-01
  • 2021-10-06
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
相关资源
相似解决方案