View previous topic :: View next topic |
Author |
Message |
loopx Advocate
Joined: 01 Apr 2005 Posts: 2787 Location: Belgium / Liège
|
Posted: Sun Oct 14, 2007 4:35 pm Post subject: [apache] ne démarre plus après update, problème bind(résolu) |
|
|
Bonsoir, bete erreur:
Code: |
serveur loopx # /etc/init.d/apache2 start
* Caching service dependencies ... [ ok ]
* Starting apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using 10.2.1.62 for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:443
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
|
Le truc c'est que mon fichier httpd.conf n'a pas changé depuis la mise à jour, aucune clause "Listen" n'existe... J'ai rajouté une clause Listen mais ca ne marche pas...
Donc en gros, il NE DOIT PAS écouter sur le 443 (ce port est déjà utilisé ...)... Mais, ou règle t'on cela ???
Je précise qu'avant la mise à jour, apache n'écoutait que sur le 80...
Ah oh ih... tout cela se trouve dans les vhosts.d ...
Code: |
serveur vhosts.d # ls
00_default_ssl_vhost.conf 00_default_vhost.conf default_vhost.include
serveur vhosts.d # mv 00_default_ssl_vhost.conf /root/
serveur vhosts.d # /etc/init.d/apache2 start
* Starting apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using 10.2.1.62 for ServerName
no listening sockets available, shutting down
Unable to open logs
|
Super, les logs vont plus, il crie sur le nom de domaine et pire du comble de tout, il écouterait meme pas sur le porc 80 _________________ Mon MediaWiki perso : http://pix-mania.dyndns.org
Last edited by loopx on Sun Oct 14, 2007 6:31 pm; edited 1 time in total |
|
Back to top |
|
|
sd44 Apprentice
Joined: 21 Jul 2007 Posts: 277 Location: Nantes 44
|
Posted: Sun Oct 14, 2007 4:47 pm Post subject: |
|
|
oui c'est un peu le bordel apres cette maj :
-> met bien a jour tes fichiers de conf
-> les clause listen sont dans les defaults vhosts
-> ajoute ton srv dans /etc/hosts
-> attention tu ne dois pas avoir la clause listen plusieur fois
-> dans les fichier de conf il indique des chemin pour les logs qui n'existe pas forcement donc verif
-> en bref fais la maj et edite chaque fichier pour affiner et verifier
fais ca et tiend nous au courrant _________________ Pourquoi faire simple quand on peut faire compliqué ? |
|
Back to top |
|
|
loopx Advocate
Joined: 01 Apr 2005 Posts: 2787 Location: Belgium / Liège
|
Posted: Sun Oct 14, 2007 6:24 pm Post subject: |
|
|
Waw, y trou lcul apache
Dans le rep vhosts.d, j'avais 3 fichiers (et avant, y en avait qu'un), j'ai ai laissé qu'un seul: 00_default_vhost.conf (si tu pouvais me dire si c'est suffisant)...
Voilà, j'ai rajouté le "Listen 80" dans l'unique fichier de vhosts, ca démarre... mais il fonctionne pas ...
Code: |
serveur vhosts.d # vi 00_default_vhost.conf
serveur vhosts.d # /etc/init.d/apache2 start
* Starting apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using 10.2.1.62 for ServerName [ ok ]
serveur vhosts.d #
serveur vhosts.d #
serveur vhosts.d # ps aux | grep apache
root 7062 1.1 4.1 23092 10468 ? Ss 20:19 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start
apache 7093 0.0 2.5 20596 6464 ? S 20:20 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start
apache 7094 0.5 3.8 245064 9820 ? Sl 20:20 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start
apache 7096 0.0 3.4 244428 8904 ? Sl 20:20 0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -d /usr/lib/apache2 -f /etc/apache2/httpd.conf -k start
root 7151 0.0 0.1 1668 500 pts/0 R+ 20:20 0:00 grep --colour=auto apache
serveur vhosts.d # /etc/init.d/apache2 restart
* Stopping apache2 ... [ ok ]
* Starting apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using 10.2.1.62 for ServerName
|
C'est quoi cette crasse de ServerName ? Il est accessible via plusieurs IP et plusieurs nom différent, jdois lui mettre quoi ???
EDIT: uh, visiblement, le premier démarrage était ultra lent, mais les sites fonctionne...
J'ai ceci dans les logs d'erreur:
Code: |
[Sun Oct 14 20:22:45 2007] [error] [client 10.2.1.6] File does not exist: /var/www/localhost/htdocs/favicon.ico
[Sun Oct 14 20:24:42 2007] [notice] caught SIGTERM, shutting down
[Sun Oct 14 20:24:55 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Oct 14 20:24:56 2007] [notice] Digest: generating secret for digest authentication ...
[Sun Oct 14 20:24:56 2007] [notice] Digest: done
[Sun Oct 14 20:24:58 2007] [notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8e PHP/5.2.4_p20070914-pl2-gentoo configured -- resuming normal operations
ERROR: parameter '#FF4105' does not represent a number in line AREA:#FF4105:Free
ERROR: parameter '#F5F800' does not represent a number in line AREA:#F5F800:
ERROR: invalid rpn expression in: a,1024,*
|
Les quelques erreurs présente (a par le fichier non trouvé) me sont inconnue; fin, ca fonctionne quand meme _________________ Mon MediaWiki perso : http://pix-mania.dyndns.org |
|
Back to top |
|
|
sd44 Apprentice
Joined: 21 Jul 2007 Posts: 277 Location: Nantes 44
|
Posted: Sun Oct 14, 2007 11:38 pm Post subject: |
|
|
le favicon.ico c'est normal : le navigateur le cherche toujours c'est l'icone qui apparait dans la barre d'adresse : rien de grave
dans le fichier /etc/env.d/apache tu peux virer ce qui concerne ssl vu que tu ne l'utilise pas.
et ça :
Code: | apache2: Could not reliably determine the server's fully qualified domain name, using 10.2.1.62 for ServerName |
il suffit que tu insert "servername truc.mondomaine.com" dans httpd.conf (vers la fin), ca pointe sur ton site par defaut
moi aussi j'ai pas trop compris l'interet vu que je suis en virtual host avec plusieur site mais bon meme si ça marche quand meme il met une erreur alors ... _________________ Pourquoi faire simple quand on peut faire compliqué ? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|