2015-10-27 7 views
6

私はGoogleでクラウドホスティングをしていますが、正直言って駄目ですが、私はそれに乗ろうとしています.LAMPスタックをVMにインストールし、htdocsに自分のウェブサイトを配置しました。私のサイトにアクセスしようとすると、それは私にrequest timeoutを与えますが、時には5分ほどで動作します。私はApacheのエラーログを見るとApacheへのリクエストのディスパッチエラー。

が、それは私にPHPにあるこの

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) 

私のウェブサイトを与え、私はディレクトリのパーミッション以外の何かを変更していない、私が行方不明です何かはありますか?

+0

私は同じ問題があります。何か解決しましたか? –

答えて

0

PHPコードが完了するまでに設定されたタイムアウトよりも時間がかかるようです。 apacheがfcgiを使用してPHPページを読み込むと、処理されるPHP-FPMサービスへのリクエストが送信されます。 PHP-FPMの応答時間が長くなると、このタイプのタイムアウトが表示されます。考えられる原因は、PHPコードがループに詰まっているか、特に長い時間がかかっているデータベースからの応答を待っている可能性があるということです。

問題を解決するCLIのバージョンのphpを使用して、スクリプトが妥当な時間内に完了したかどうかを確認します($ time php /path/to/file.php)。 PHP-FPMログに追加情報があるかもしれません(デフォルト:/var/log/php-fpm.log)。

0

この問題もありました。ハードコード部分と、使用できない別のサーバーへの接続をコード内で探したい場合があります。 (例えば、オンラインでアクセスできないローカルIP)。

私の場合、私のサーバー上でphp-fpm.logをチェックしましたが、私のアプリケーションが古いサーバー(間違ったIP)に接続しようとしていて、時間切れになっていました。

関連する問題