[英]phpinfo() causing 503 service temporarily unavailable error
我遇到了最奇怪的問題。 最近幾天,我一直在處理文件上傳問題,並一直在使用phpinfo()
來跟蹤對INI設置的更改。 我最后一次觸摸是在兩天前...那時一切正常。
今天, phpinfo()
導致503服務暫時不可用錯誤。 這是很奇怪的部分: 網站運行良好! 我是PHP + MySQL驅動的,我可以在其中移動(嗯...除了我正在研究的問題以外)。 但是,一旦我添加phpinfo()
來顯示為<body>
塊中的第一件事……我得到了錯誤。
我什至嘗試創建一個單行文件: <?php phpinfo(); ?>
<?php phpinfo(); ?>
這也死於503錯誤。
錯誤日志包含以下內容:
[2017年9月15日星期五14:22:31.192593] [proxy_fcgi:錯誤] [pid 2695](104)對等方重置連接:[客戶端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;
這是否可能是問題所在: Apache,FastCGI-錯誤503
(即快速CGI配置問題?)
我通過登錄PLESK解決了這個問題。 我去了工具和設置->服務管理。
然后,我重新啟動了PHP-FPM 5.6.33服務(這可能取決於您所運行的PHP版本)。
重新啟動后, phpinfo()
工作正常。 我不確定是什么問題。 如您所見,我的網站運行正常,但是可能導致了其他我不知道的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.