Bonjour à tous, voici mon problème :
Version : Debian 4.0 (Etch)
# uname -a
Linux id113752 2.6.18-028stab066.10 #1 SMP Fri Dec 4 15:49:04 MSK 2009 x86_64 GNU/Linux
J’ai un serveur apache qui tourne parfaitement sur le port 80
# netstat -nap | grep LISTEN | grep 80
tcp6 0 0 :::80 :::* LISTEN 5624/apache2
# ps aux | grep apache2
www-data 5624 0.0 1.3 89532 6940 ? S 08:58 0:00 /usr/sbin/apache2 -k start
root 7989 0.0 1.8 89400 9596 ? Ss Apr25 0:00 /usr/sbin/apache2 -k start
www-data 23843 0.0 1.3 89532 6968 ? S 08:11 0:00 /usr/sbin/apache2 -k start
www-data 23988 0.0 1.4 90576 7792 ? S 08:11 0:00 /usr/sbin/apache2 -k start
www-data 24353 0.0 1.4 90576 7804 ? S 08:44 0:00 /usr/sbin/apache2 -k start
www-data 25756 0.0 1.4 90576 7792 ? S 08:46 0:00 /usr/sbin/apache2 -k start
Le problème c’est que j’ai aussi un process louche qui tourne :
# ps aux | grep httpd
www-data 32308 0.0 0.1 2152 832 ? S 02:58 0:04 /usr/sbin/httpd -k start -DSSL
Quand je stop mon apache (ou restart) je ne peux plus le lancer car l’autre process “s’accapare” le port 80
# /etc/init.d/apache2 stop
Stopping web server (apache2)....
# /etc/init.d/apache2 start
Starting web server (apache2)...(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
failed!
# netstat -nap | grep LISTEN | grep 80
tcp6 0 0 :::80 :::* LISTEN 32308/httpd -k star
Pour régler le souci je dois killer le process httpd pour relancer mon apache2
# kill 32308
# /etc/init.d/apache2 start
Starting web server (apache2)....
Le truc c’est que le process httpd se relance tout seul au bout d’un moment et j’ai aucune idée de comment l’empêcher de restarter …
Ce qui est bizarre aussi c’est qu’il n’existe pas de /usr/sbin/httpd …
Et comme mon serveur apache se relance automatiquement chaque nuit pour les besoins de mes applications, il plante tout les soirs, sauf si je kill le process avant
Toutes les idées sont bonnes à prendre
Merci beaucoup d’avance