phpinfo()导致503服务暂时不可用错误

时间:2017-09-15 22:00:20

标签: php apache nginx http-status-code-503

我遇到了最棘手的问题。我在过去几天一直在处理文件上传问题,并且一直在使用phpinfo()来跟踪对INI设置的更改。我最后一次碰到它是两天前......那一切都奏效了。

今天,phpinfo()导致503 Service Temporarily Unavailable错误。这是一个奇怪的部分:网站工作正常!我的PHP + MySQL驱动,我可以在其中移动很好(嗯......除了问题我和# 39;正在努力)。但是,只要我添加phpinfo()以显示<body>块中的第一个内容......我就会收到错误。

我甚至尝试创建一个单行文件:<?php phpinfo(); ?>这也因503错误而死亡。

错误日志包含:

  

[9月15日星期五14:22:31.192593 2017] [proxy_fcgi:错误] [pid 2695](104)通过对等方重置连接:[client 67.161.220.240:44230] AH01075:将请求分派错误:

我重启Apache和Nginx没有任何错误。有没有人知道我的机器上有什么服务或某些可能会导致这种情况?

NGINX配置文件

#user  nginx;
worker_processes  1;

#error_log  /var/log/nginx/error.log;
#error_log  /var/log/nginx/error.log  notice;
#error_log  /var/log/nginx/error.log  info;

#pid        /var/run/nginx.pid;

include /etc/nginx/modules.conf.d/*.conf;

events {
    worker_connections  1024;
}


http {
include       mime.types;
default_type  application/octet-stream;

#log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
#                  '$status $body_bytes_sent "$http_referer" '
#                  '"$http_user_agent" "$http_x_forwarded_for"';

#access_log  /var/log/nginx/access.log  main;

sendfile        on;
#tcp_nopush     on;

#keepalive_timeout  0;
keepalive_timeout  65;
#tcp_nodelay        on;

#gzip  on;
#gzip_disable "MSIE [1-6]\.(?!.*SV1)";

server_tokens off;

include /etc/nginx/conf.d/*.conf;
}

# override global parameters e.g. worker_rlimit_nofile
include /etc/nginx/*global_params;

2 个答案:

答案 0 :(得分:1)

这可能是问题所在: Apache, FastCGI - Error 503

(即快速CGI配置问题?)

答案 1 :(得分:-1)

我通过登录PLESK解决了这个问题。我去了工具&amp;设置 - &gt;服务管理。

然后我重新启动了PHP-FPM 5.6.33服务(这可能会因您运行的PHP版本而异)。

重新启动后,phpinfo()工作正常。我不确定问题是什么。根据您的经验,我的网站工作正常,但可能导致我不知道的其他问题。

相关问题