2015-10-27 43 views
6

Google'da barındırma bulutum var, dürüst olmak için berbatım ama bununla uğraşmaya çalışıyorum, bir VM'ye LAMP yığını yükledim ve web sitemi htdocs'a yerleştirdim. Siteme erişmeye çalıştığımda bana request timeout veriyor ama bazen 5 dakika çalışıyor. Ben apache hata günlüklerini gördüğündeApache'ye istek gönderilirken hata gönderiliyor

, bana PHP'de bu

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) 

Web sitem verir, ben dizin izni dışında başka bir şey değişmemiştir, Eksik bir şey var mı?

+0

Aynı sorunu yaşıyorum. Bir şey mi çözdün? –

cevap

0

PHP kodunuzun tamamlanması için yapılandırılmış zaman aşımından daha uzun sürüyor. Apache bir PHP sayfasını fcgi kullanarak yüklediğinde, işlenecek PHP-FPM servisine istek gönderir. PHP-FPM yanıt vermek için uzun sürerse, bu tür bir zaman aşımı görürsünüz. Olası nedenler, PHP kodunuzun bir döngüde sıkışmış olabileceği veya özellikle uzun süren bir veritabanından yanıt bekleyebilmenizdir.

Sorun gidermek için, komut dosyasının makul bir sürede tamamlanmasını ($ time php /path/to/file.php) öğrenmek için php'nin CLI sürümünü kullanırdım. PHP-FPM günlüğünde ek bilgiler bulunabilir (varsayılan: /var/log/php-fpm.log).

0

Bu problemi de yaşadım. Kodunuzda bir sabit kod parçası ve başka bir kullanılabilir sunucuyla bağlantı kurmak isteyebilirsiniz. (örneğin çevrimiçi erişilemeyen yerel bir IP).

Benim için, sunucumda php-fpm.log'u işaretledim ve uygulamamın eski bir sunucuya (yanlış IP) bağlanmaya çalıştığını ve zaman aşımına uğradığını gördüm.

İlgili konular