Fehler versandfertig Anfrage an apache
Habe ich cloud-hosting bei Google, es ist Scheiße für die, um ehrlich zu sein, aber ich werde versuchen, es mit, ich installierte LAMP-stack auf einer VM und legte meine website in htdocs. Wenn ich versuche, auf meiner Website es gibt mir request timeout
aber manchmal funktioniert es für 5 Minuten oder so.
Wenn ich sehe, apache-error-logs , es gibt mir diese
075: Error dispatching request to : (polling)
[Tue Oct 27 18:12:55.185819 2015] [proxy_fcgi:error] [pid 4995:tid 140183521683200] (70007)The timeout specified has expired: [client 162.158.255.169:34198] AH01075: Error dispatching request to : (polling)
[Tue Oct 27 18:12:55.487458 2015] [core:notice] [pid 2953:tid 140183785137920] AH00052: child pid 4995 exit signal Segmentation fault (11)
[Tue Oct 27 18:12:55.787973 2015] [proxy_fcgi:error] [pid 5063:tid 140183530075904] (70007)The timeout specified has expired: [client 199.27.133.137:13151] AH01075: Error dispatching request to : (polling), referer: http://whichtube.com/watch/g9-4dCeFQng/allama-nasir-abbas-jawab-ali-as-nae-talwar-kayou-na-uthai.html
[Tue Oct 27 18:12:57.542883 2015] [proxy_fcgi:error] [pid 5329:tid 140183521683200] (70007)The timeout specified has expired: [client 173.245.56.198:51348] AH01075: Error dispatching request to : (polling)
[Tue Oct 27 18:12:57.976752 2015] [proxy_fcgi:error] [pid 5063:tid 140183479719680] (70007)The timeout specified has expired: [client 173.245.56.198:63779] AH01075: Error dispatching request to : (polling)
[Tue Oct 27 18:12:58.993666 2015] [proxy_fcgi:error] [pid 5194:tid 140183496505088] (70007)The timeout specified has expired: [client 162.158.255.141:16226] AH01075: Error dispatching request to : (polling)
[Tue Oct 27 18:12:59.196701 2015] [proxy_fcgi:error] [pid 5329:tid 140183513290496] (70007)The timeout specified has expired: [client 173.245.56.198:32819] AH01075: Error dispatching request to : (polling)
[Tue Oct 27 18:13:01.462039 2015] [proxy_fcgi:error] [pid 5329:tid 140183504897792] (70007)The timeout specified has expired: [client 199.27.128.166:48057] AH01075: Error dispatching request to : (polling)
[Tue Oct 27 18:13:07.518999 2015] [proxy_fcgi:error] [pid 5063:tid 140183471326976] (70007)The timeout specified has expired: [client 173.245.56.198:13694] AH01075: Error dispatching request to : (polling)
[Tue Oct 27 18:13:16.804990 2015] [proxy_fcgi:error] [pid 5261:tid 140183513290496] (70007)The timeout specified has expired: [client 199.27.128.134:28694] AH01075: Error dispatching request to : (polling)
[Tue Oct 27 18:13:33.055860 2015] [proxy_fcgi:error] [pid 5328:tid 140183236331264] (70007)The timeout specified has expired: [client 39.41.139.220:52154] AH01075: Error dispatching request to : (polling)
[Tue Oct 27 18:13:57.391361 2015] [proxy_fcgi:error] [pid 5063:tid 140183521683200] (70007)The timeout specified has expired: [client 39.41.139.220:52029] AH01075: Error dispatching request to : (polling)
[Tue Oct 27 18:13:57.552542 2015] [core:notice] [pid 2953:tid 140183785137920] AH00052: child pid 5063 exit signal Segmentation fault (11)
Meiner Webseite ist in PHP, ich habe nicht verändert nichts anderes als Verzeichnis-Berechtigung, Ist es etwas, was ich bin fehlt ?
Ich habe das gleiche problem. Haben Sie etwas gelöst?
InformationsquelleAutor require_once | 2015-10-27
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ich hatte dieses problem auch. Möchten Sie vielleicht auf der Suche für ein hard-code-Teil und eine Verbindung zu einem anderen server nicht verfügbar ist, in Ihrem code. (zum Beispiel eine lokale IP, die ist nicht online zugänglich).
Zur mine, ich habe php-fpm.log auf meinem server und ich fand meine Anwendung versucht, eine Verbindung zu einem alten server (falsche IP) und es Gesichter mit Zeitüberschreitung.
InformationsquelleAutor Saeed Sepehr
Für mich ein Neustart von php-fpm hat den job. Nach einem Blick in die log, da @varlogtim emfehlen. Das Protokoll zeigte, dass es keine Aktivität in den letzten 12 Stunden...
InformationsquelleAutor David
Scheint es, dass Ihre PHP-code ist länger als der eingestellte timeout, um abzuschließen. Wenn der apache lädt eine PHP-Seite mit fcgi es sendet die Anfrage an PHP-FPM-Dienst verarbeitet werden. Wenn PHP-FPM dauert zu lange, um zu reagieren, dann werden Sie sehen, diese Art von timeout. Mögliche Ursachen sind, dass Ihre PHP-code sein könnte, stecken in einer Endlosschleife oder wartet auf eine Antwort aus einer Datenbank, die eine besonders lange Zeit.
Beheben, würde ich die CLI-version von php zu sehen, wenn das Skript abgeschlossen ist, in einer angemessenen Höhe der Zeit ($ time php - /path/to/file.php). Es können zusätzliche Informationen in der PHP-FPM log (default: /var/log/php-fpm.log).
InformationsquelleAutor varlogtim