Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 13/06/2014, à 14:57

abecidofugy

End of script output before headers: index.php

Hello,

J'ai complètement réinstallé mon serveur dédié en suivant ce tuto scrupuleusement howto for The Perfect Server - Ubuntu 14.04 (Apache2, PHP, MySQL, PureFTPD, BIND, Dovecot, ISPConfig 3.
Je pense qu'il n'y avait pas d'erreur lorsque j'ai tapé les lignes de commandes.

J'ai créé mon nom de domaine sous ISPconfig et j'ai copié mon site en local sur la machine dédiée, via SFTP. J'ai changé les droits du répertoire pour coller à la configuration d'IPSconfig, à savoir web1:client1

Mais j'ai une erreur dans les logs du site :

[Fri Jun 13 13:13:45.913855 2014] [fcgid:warn] [pid 28126] (104)Connection reset by peer: [client 79.82.67.245:65469] mod_fcgid: error reading data from FastCGI server
[Fri Jun 13 13:13:45.913951 2014] [core:error] [pid 28126] [client 79.82.67.245:65469] End of script output before headers: index.php
[Fri Jun 13 13:13:50.113698 2014] [fcgid:warn] [pid 28127] (104)Connection reset by peer: [client 79.82.67.245:65470] mod_fcgid: error reading data from FastCGI server
[Fri Jun 13 13:13:50.113790 2014] [core:error] [pid 28127] [client 79.82.67.245:65470] End of script output before headers: index.php
[Fri Jun 13 13:13:52.266710 2014] [fcgid:warn] [pid 28128] (104)Connection reset by peer: [client 79.82.67.245:65471] mod_fcgid: error reading data from FastCGI server
[Fri Jun 13 13:13:52.266813 2014] [core:error] [pid 28128] [client 79.82.67.245:65471] End of script output before headers: index.php

Mon /var/log/apache2/error.log

[Fri Jun 13 13:13:37.708681 2014] [mpm_prefork:notice] [pid 19871] AH00171: Graceful restart requested, doing restart
[Fri Jun 13 13:13:37.873086 2014] [auth_digest:notice] [pid 19871] AH01757: generating secret for digest authentication ...
[Fri Jun 13 13:13:37.875028 2014] [:notice] [pid 28123] FastCGI: process manager initialized (pid 28123)
[Fri Jun 13 13:13:37.951663 2014] [:notice] [pid 19871] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Fri Jun 13 13:13:37.951705 2014] [:notice] [pid 19871] mod_python: using mutex_directory /tmp
[Fri Jun 13 13:13:37.974495 2014] [ssl:warn] [pid 19871] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jun 13 13:13:37.974533 2014] [ssl:warn] [pid 19871] AH01909: RSA certificate configured for sd-63122.dedibox.fr:8080 does NOT include an ID which matches the server name
[Fri Jun 13 13:13:37.974988 2014] [mpm_prefork:notice] [pid 19871] AH00163: Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 PHP/5.5.9-1ubuntu4 mod_python/3.3.1 Python/2.7.6 OpenSSL/1.0.1f configured -- resuming normal operations
[Fri Jun 13 13:13:37.975019 2014] [core:notice] [pid 19871] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jun 13 13:13:37.975095 2014] [mpm_prefork:warn] [pid 19871] AH00167: long lost child came home! (pid 19874)
[Fri Jun 13 13:13:48.874494 2014] [fcgid:error] [pid 28124] mod_fcgid: process /var/www/php-fcgi-scripts/web1/.php-fcgi-starter(28131) exit(communication error), get unexpected signal 11
[Fri Jun 13 13:13:54.032037 2014] [fcgid:error] [pid 28124] mod_fcgid: process /var/www/php-fcgi-scripts/web1/.php-fcgi-starter(28136) exit(communication error), get unexpected signal 11
[Fri Jun 13 13:13:54.032176 2014] [fcgid:error] [pid 28124] mod_fcgid: process /var/www/php-fcgi-scripts/web1/.php-fcgi-starter(28134) exit(communication error), get unexpected signal 11

Comment corriger ce bug svp ? Il doit me manquer quelque chose dans la config je suppose.

Merci de votre aide !

Dernière modification par abecidofugy (Le 13/06/2014, à 14:58)

Hors ligne

#2 Le 16/06/2014, à 10:10

YayaK

Re : End of script output before headers: index.php

Yop, Je viens voir comme tu m'a demandé, mais si tu a désinstallé ispconfig on risque pas d'avancer.

J'avais u un probleme avec fcgi et ne sachant pas le résoudre j'avais réinstallé ispconfig. Je pense que l'installation de gamepanelx avait foutu le bazard. Donc je l'ai complètement remove pour mettre open game panel qui fonctionne très bien avec ispconfig et que je trouve bien mieux.

Une autre piste est le fichier de configuration d'apache, en effet j'ai suivit le même tutoriel que toi et je n'avais pas commenté les 3 lignes comme indiqué. Bref si tu te re-penches dessus je veux bien essayer d'aider, mais d'autre le ferait certainement mieux.

Hors ligne

#3 Le 16/06/2014, à 13:01

abecidofugy

Re : End of script output before headers: index.php

Salut,

Quelles lignes tu avais oublié de commenter dans Apache ?

Hors ligne

#4 Le 16/06/2014, à 14:50

YayaK

Re : End of script output before headers: index.php

D'après le tuto il faut ajouter la ligne :

       

AddType application/x-httpd-suphp .php .php3 .php4 .php5 .phtml

     
Et commenter :


    <FilesMatch "\.ph(p3?|tml)$">
        SetHandler application/x-httpd-suphp
    </FilesMatch>

Ce qui donne ça au final :

<IfModule mod_suphp.c>
    #<FilesMatch "\.ph(p3?|tml)$">
    #    SetHandler application/x-httpd-suphp
    #</FilesMatch>
        AddType application/x-httpd-suphp .php .php3 .php4 .php5 .phtml
        suPHP_AddHandler application/x-httpd-suphp

J'avais ajouter la ligne mais pas commenté, en fait j'avais pas compris ce qu'il voulait dire par "commentez" ^^.

Hors ligne

#5 Le 16/06/2014, à 15:05

abecidofugy

Re : End of script output before headers: index.php

Ah oui, de souvenir c'est bien ce que j'avais fait. Merci de ton aide, on clot le sujet, iRedmail marche très bien et j'ai réglé mon problème de mise en spam. Je n'ai que les vhosts à faire à la main. Tout le reste est pris en charge. Je ne serais que le seul utilisateur avec accès ssh, voilà tout.

Bonne journée.

Hors ligne