vps交流

那个在线工具源码搭建一直500错误是怎么回事


本帖最后由 xshell 于 2022-3-4 13:15 编辑

页面找不到了,什么情况?

回到首页

一直500错误
安装说明:
php必须7.4

/route/route.php 设置前台跟后台地址

/config/admin.php 设置后台登录QQ号

运行目录设置 /public

如果访问不了,请在public目录中文件.user.ini 删除

已经解决了那个在线工具源码搭建一直500错误是怎么回事

没用过,不能帮你,抱歉那个在线工具源码搭建一直500错误是怎么回事那个在线工具源码搭建一直500错误是怎么回事
我成功了。嘿嘿嘿
你没设置前台网址
前台地址,php版本,运行目录,这三个检查一下
要在fastcgi设置跨目录权限,thinkphp开发的东西小毛病太多
nginx配置,可以参考一下。

  1. server {
  2.         listen 9443 ;
  3.         root /tool/public;
  4.         gzip  on;                                                                                                                                                                              
  5.         server_tokens       off;
  6.         gzip_min_length 1k;                                                                                                                                                                     
  7.         gzip_buffers 4 16k;                                                                                                                                                                     
  8.         gzip_comp_level 5;                                                                                                                                                                     
  9.         gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php application/javascript font/woff2;                                       
  10.         gzip_vary on;                                                                                                                                                                           
  11.         # Everything is a 404                                                                                                                                                                  
  12.         access_log  /var/log/nginx/access.log  main;                                                                                                                                    
  13.         error_log  /var/log/nginx/error.log  error;                                                                          
  14.         index index.php;
  15.     #配置PHP的重写规则
  16.     location / {
  17.       
  18.         if ( !-e $request_filename) {
  19.             rewrite ^/(.*)$ /index.php/$1 last;
  20.             break;
  21.         }
  22.     }
  23. location ~ [^/].php(/|$) {
  24.   set $path_info "";
  25.   #定义变量 $real_script_name,用于存放真实地址
  26.   set $real_script_name $fastcgi_script_name;
  27.   #如果地址与引号内的正则表达式匹配
  28.   if ($fastcgi_script_name ~ "^(.+?.php)(/.+)$") {
  29.   #将文件地址赋值给变量 $real_script_name
  30.   set $real_script_name $1;
  31.   #将文件地址后的参数赋值给变量 $path_info
  32.   set $path_info $2;
  33.   }
  34.   #配置fastcgi的一些参数
  35.   fastcgi_pass 后端ip;
  36.   fastcgi_index index.php;
  37.   fastcgi_param SCRIPT_FILENAME /var/www/html/public/$real_script_name;
  38.   fastcgi_param SCRIPT_NAME $real_script_name;
  39.   fastcgi_param PATH_INFO $path_info;
  40.   include  fastcgi_params;
  41. }
  42.         # You may need this to prevent return 404 recursion.                                                                                                                                    
  43.         location = /404.html {                                                                                                                                                                  
  44.                 internal;                                                                                                                                                                       
  45.         }
  46. }

复制代码

mjj人手一个工具箱网站
也没见你们分享个下载地址
赞(0)
版权声明:本贴采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
帖子名称:《那个在线工具源码搭建一直500错误是怎么回事》
帖子链接:https://bbs.toot.su/84485.html