Premature end of script headers

WRInaute discret
Bonjour à tous,

Depuis très longtemps j'ai des problèmes sur un serveur dédié qui plante régulièrement.

J'ai regardé le fichier error_log de mon serveur apache et je remarque qu'une minute avant chaque plantage, j'ai des messages d'erreur de ce type :
[Fri Jun 01 15:08:23 2007] [error] [client 86.219.165.49] Premature end of script headers: annonces.php, referer: https://www.google.fr/search?q=annonces+ ... ision&cd=3
[Fri Jun 01 15:09:28 2007] [error] [client 194.206.185.81] Premature end of script headers: user.php, referer: https://www.google.fr/search?hl=fr&safe= ... reux&meta=
[Fri Jun 01 15:10:29 2007] [error] [client 83.192.20.48] Premature end of script headers: infos.php, referer: https://www.google.fr/search?hl=fr&sa=X& ... ie&spell=1
[Fri Jun 01 15:11:05 2007] [error] [client 83.192.20.48] Premature end of script headers: infos.php, referer: https://www.google.fr/search?hl=fr&sa=X& ... ie&spell=1
[Fri Jun 01 15:11:26 2007] [error] [client 194.206.185.81] Premature end of script headers: user.php, referer: https://www.google.fr/search?hl=fr&safe= ... reux&meta=
[Fri Jun 01 15:11:34 2007] [error] [client 194.206.185.81] Premature end of script headers: user.php, referer: https://www.google.fr/search?hl=fr&safe= ... reux&meta=
[Fri Jun 01 15:11:40 2007] [error] [client 194.206.185.81] Premature end of script headers: user.php, referer: https://www.google.fr/search?hl=fr&safe= ... reux&meta=
[Fri Jun 01 15:12:14 2007] [error] [client 81.255.95.131] Premature end of script headers: user.php, referer: https://www.google.com/search?sourceid=n ... l+d%27oise
[Fri Jun 01 15:12:50 2007] [error] [client 194.206.185.81] Premature end of script headers: user.php, referer: https://www.google.fr/search?hl=fr&safe= ... reux&meta=
[Fri Jun 01 15:13:16 2007] [error] [client 83.192.20.48] Premature end of script headers: infos.php, referer: https://www.google.fr/search?hl=fr&sa=X& ... ie&spell=1
[Fri Jun 01 15:15:15 2007] [error] [client 194.206.185.81] Premature end of script headers: user.php, referer: https://www.google.fr/search?hl=fr&safe= ... reux&meta=


[Sun Jun 03 13:12:30 2007] [error] [client 90.27.162.228] Premature end of script headers: annonces.php, referer: https://www.google.fr/search?q=netoyage+ ... art=0&sa=N

J'ai ensuite regardé le fichier access_log d'apache et par exemple dans le cas de la dernière erreur Premature end of script headers, j'obtiens ces logs :
83.199.149.169 - - [03/Jun/2007:13:08:48 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/contact.php?geo=FR&p=2" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)"
89.83.106.133 - - [03/Jun/2007:13:08:49 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/adlist.php?geo=FR&rub=8080&vil=42" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
83.199.75.249 - - [03/Jun/2007:13:08:48 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 200 2380 "http://www.missive.info/contact.php?geo=FR&p=2" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4"
81.65.178.38 - - [03/Jun/2007:13:08:11 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/list/FR/8075/2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
83.199.75.249 - - [03/Jun/2007:13:08:05 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 200 2380 "http://www.missive.info/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4"
82.124.174.48 - - [03/Jun/2007:13:09:40 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/list/FR/8030/2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
86.72.249.170 - - [03/Jun/2007:13:09:40 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/add.php?quoi=region&pays=FR&rubrique=8250" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
82.65.64.127 - - [03/Jun/2007:13:09:40 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/XX0875/751527.shtml" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
90.31.189.245 - - [03/Jun/2007:13:09:47 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/contact.php?geo=FR&p=2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"
90.31.189.245 - - [03/Jun/2007:13:08:37 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"
84.252.140.138 - - [03/Jun/2007:13:09:47 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.0" 200 2380 "http://www.osapi.fr/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 4.6 (build 01425); Wanadoo 6.2)"
90.9.170.187 - - [03/Jun/2007:13:11:01 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/contact.php?geo=FR&p=2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
89.83.106.133 - - [03/Jun/2007:13:10:37 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/list/FR/8080/2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
90.8.169.205 - - [03/Jun/2007:13:10:31 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/adlist.php?geo=FR&rub=8080&vil=66" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; .NET CLR 1.1.4322)"
89.83.106.133 - - [03/Jun/2007:13:10:11 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/contact.php?geo=FR&p=2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
83.199.216.173 - - [03/Jun/2007:13:11:16 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.0" 304 - "http://www.missive.info/adlist.php?rub=8220&geo=FR&deb=40&p=2&vil=" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
89.83.106.133 - - [03/Jun/2007:13:11:38 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/contact.php?geo=FR&p=2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
82.65.64.127 - - [03/Jun/2007:13:12:27 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/list/FR/0870/2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
90.8.169.205 - - [03/Jun/2007:13:12:12 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/adlist.php?geo=FR&rub=8080&vil=69" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Wanadoo 6.2; .NET CLR 1.1.4322)"
90.9.170.187 - - [03/Jun/2007:13:12:16 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/list/FR/8220/2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
83.199.149.169 - - [03/Jun/2007:13:09:45 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/list/FR/8080/2" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)"
90.8.1.49 - - [03/Jun/2007:13:11:45 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 200 2380 "http://www.missive.info/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12"
89.83.106.133 - - [03/Jun/2007:13:12:12 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/list/FR/8077/2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
86.67.36.210 - - [03/Jun/2007:13:13:18 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 200 2380 "http://www.missive.info/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
84.100.22.218 - - [03/Jun/2007:13:13:31 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/contact.php?geo=FR&p=2" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FreeprodTB)"
90.9.170.187 - - [03/Jun/2007:13:10:57 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/?p=2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
86.67.36.210 - - [03/Jun/2007:13:16:52 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 200 2380 "http://www.missive.info/list/FR/8150/2" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
86.72.249.170 - - [03/Jun/2007:13:16:52 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/add.php?quoi=region&pays=FR&rubrique=8250" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
84.100.22.218 - - [03/Jun/2007:13:16:52 +0200] "GET /images/pub/OSAPI_ban88x31.gif HTTP/1.1" 304 - "http://www.missive.info/list/FR/8080/2" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FreeprodTB)"

En recherchant sur le net j'ai vu qu'on parlait souvent de scripts perl ou cgi qui tournaient en boucle et donc pourraient causer ces problèmes, mais je n'execute pas ce genre de trucs sur mon serveur :?

Je suis donc complétement bloqué et je n'arrive pas à faire corréler mon fichier d'erreurs avec celui de me stats afin d'essayer de comprendre quel type de comportement visiteur arrive à bloquer mon serveur.

J'spère que vous pourrez me venir en aide et me donner quelques pistes car là je commence à plus savoir quoi faire :cry:
 
WRInaute discret
Notre hébergeur est Ovh.

Nous pensions au départ qu'il s'agissait d'un problème matériel mais nous avons changé la machine il y a 1 semaine et les problèmes continuent...

Il est donc quasi certain maintenant que le problème vienne d'un script (peut être dans le rewriting ? ) :?
 
WRInaute impliqué
Ben faut que tu vérifie les scripts, on ne peut rien faire d'autre.
*A mon avis*, c'est une boucle infinie avant l'envoit de tous les headers (sinon ça serait un max execution time reached) ...
faut revoir les scripts!
*A priori aussi selon moi*, le probleme se situe dans un fichier inclue dans plusieurs autres, parce que le problème est sur plusieurs pages (annonces.php, user.php, infos.php, ...).
 
Discussions similaires
Haut