OVH Community, votre nouvel espace communautaire.

could not bind to address 0.0.0.0:80


fugitif
21/05/2010, 17h26
Citation Envoyé par st-h
J'avoue que je m'embrouille un peu les pinceaux entre toutes les intervertions que je fais en ce moment sur différents clients.
De mémoire, l'apache2ctl que j'ai regardé redéfinissait certaines variables si elle n'étaient pas déjà définit et de plus forcait un kill sur les process apaches si aprés le "k -stop" des process apaches persistaient. D'ou le test en modifiant le script d'init pour faire appel à apache2ctl.
Malheureusement je n'ai plus accés à la machine qui avait cet apache2ctl, cela depend surement de la distribution et/ou de la version exacte d'apache.
Oui car le fichier /etc/init.d/apache2 est différent du tiens sur ma Ubuntu. Ca doit varier d'une version de apache à l'autre ou d'une distribution à l'autre.

st-h
19/05/2010, 21h38
J'avoue que je m'embrouille un peu les pinceaux entre toutes les intervertions que je fais en ce moment sur différents clients.
De mémoire, l'apache2ctl que j'ai regardé redéfinissait certaines variables si elle n'étaient pas déjà définit et de plus forcait un kill sur les process apaches si aprés le "k -stop" des process apaches persistaient. D'ou le test en modifiant le script d'init pour faire appel à apache2ctl.
Malheureusement je n'ai plus accés à la machine qui avait cet apache2ctl, cela depend surement de la distribution et/ou de la version exacte d'apache.

fugitif
19/05/2010, 16h34
Citation Envoyé par st-h
Le problème provient bien des variables manquantes dans /etc/apache2/envars qui sont re-définie dans apache2ctl.
Chez moi apache2ctl (qui n'est qu'un fichier bash) contient ceci :

# the path to the environment variable file
test -z "$APACHE_ENVVARS" && APACHE_ENVVARS='/etc/apache2/envvars'
# pick up any necessary environment variables
if test -f $APACHE_ENVVARS; then
. $APACHE_ENVVARS
fi
# the following APACHE_* variables should be set in /etc/apache2/envvars
Les variables ne sont donc pas redéfinie mais chercher dans le fichier /etc/apache2/envvars

st-h
19/05/2010, 12h06
Citation Envoyé par fugitif
Son fichier ne fait que contourner le problème et utilise apache2ctl au lieu du binaire apache2 directement.

Tu ne répond pas a mes questions, donc comment veut tu trouver l'origine du problème ?
Le problème provient bien des variables manquantes dans /etc/apache2/envars qui sont re-définie dans apache2ctl.

Cartman
10/05/2010, 17h47
Citation Envoyé par fugitif
Tu a mis quoi comme ip après dans ton fichier de conf des vhost ?
Et dans le fichier /etc/apache2/ports.conf tu a mis quoi dans Listen ?

Tu a un virtualmin d'installer ou un plesk ?
- aucune IP
-
Code:
Listen 80

    # SSL name based virtual hosts are not yet supported, therefore no
    # NameVirtualHost statement here
    Listen 443
- J'ai une debian 4.0 etch

fugitif
10/05/2010, 16h59
Citation Envoyé par Cartman
Il semble que le script de @st-h ait fonctionné, ce matin, le serveur ne s'est pas écroulé comme à son habitude.

Je vous tiens au courant si cela fonctionne

merci encore à tous pour votre support !
Son fichier ne fait que contourner le problème et utilise apache2ctl au lieu du binaire apache2 directement.

Tu ne répond pas a mes questions, donc comment veut tu trouver l'origine du problème ?

st-h
10/05/2010, 13h02
Bonjour,

Erf, quand je relis les 1er posts je m'aperçois que le fichier /etc/apache2/envvars est vide chez toi (aucune variable d'environement de définie).

En fin de fichier, ajoute ces lignes

Code:
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2.pid
export LANG=C
Et remet le script original, tout devrait fonctionner Teste à main avec un:

Code:
/etc/init.d/apache2 stop
/etc/init.d/apache2 start
Désolé, je n'ai pas percuté la 1er fois quand tu as envoyé le fichier envvars sur le forum.

Cartman
09/05/2010, 21h53
Il semble que le script de @st-h ait fonctionné, ce matin, le serveur ne s'est pas écroulé comme à son habitude.

Je vous tiens au courant si cela fonctionne

merci encore à tous pour votre support !

fugitif
09/05/2010, 20h04
Tu a mis quoi comme ip après dans ton fichier de conf des vhost ?
Et dans le fichier /etc/apache2/ports.conf tu a mis quoi dans Listen ?

Tu a un virtualmin d'installer ou un plesk ?

Cartman
07/05/2010, 16h27
Ok merci, je vous tiens au courant.

st-h
07/05/2010, 15h18
Bon j'ai l'impression que le script d'init est un peu daubé... Qu'elle est da distrib?

Essaye avec ce script (sauvegarde le tien avant bien sur pour ne pas le perdre):

Code:
#!/bin/sh -e
#
# apache2		This init.d script is used to start apache2.
#			It basically just calls apache2ctl.

ENV="env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin"

#[ `ls -1 /etc/apache2/sites-enabled/ | wc -l | sed -e 's/ *//;'` -eq 0 ] && \
#echo "You haven't enabled any sites yet, so I'm not starting apache2." && \
#echo "To add and enable a host, use addhost and enhost." && exit 0

#edit /etc/default/apache2 to change this.
NO_START=0

set -e
if [ -x /usr/sbin/apache2 ] ; then
	HAVE_APACHE2=1
else
	echo "No apache MPM package installed"
	exit 0
fi

. /lib/lsb/init-functions

test -f /etc/default/rcS && . /etc/default/rcS
test -f /etc/default/apache2 && . /etc/default/apache2
if [ "$NO_START" != "0" -a "$1" != "stop" ]; then 
        log_warning_msg "Not starting apache2 - edit /etc/default/apache2 and change NO_START to be 0.";
        exit 0;
fi

APACHE2="$ENV /usr/sbin/apache2"
APACHE2CTL="$ENV /usr/sbin/apache2ctl"

pidof_apache() {
    # if pidof is null for some reasons the script exits automagically
    # classified as good/unknown feature
    PIDS=`pidof apache2` || true
    
    PID=""
    
    # let's try to find the pid file
    # apache2 allows more than PidFile entry in the config but only
    # the last found in the config is used
    for PFILE in `grep ^PidFile /etc/apache2/* -r | awk '{print $2}'`; do
	if [ -e $PFILE ]; then
            cat $PFILE
            return 0
	fi
    done
    REALPID=0
    # if there is a pid we need to verify that belongs to apache2
    # for real
    for i in $PIDS; do
        if [ "$i" = "$PID" ]; then
	    # in this case the pid stored in the
	    # pidfile matches one of the pidof apache
	    # so a simple kill will make it
            echo $PID
            return 0
        fi
    done
    return 1
}

apache_stop() {
	if `apache2 -t > /dev/null 2>&1`; then
		# if the config is ok than we just stop normaly
		$APACHE2CTL stop 2>&1 | grep -v 'not running' >&2 || true
	else
		# if we are here something is broken and we need to try
		# to exit as nice and clean as possible
		PID=$(pidof_apache)

		if [ "${PID}" ]; then
			# in this case it is everything nice and dandy
			# and we kill apache2
			kill $PID
		elif [ "$(pidof apache2)" ]; then
			if [ "$VERBOSE" != no ]; then
                                echo " ... failed!"
			        echo "You may still have some apache2 processes running.  There are"
 			        echo "processes named 'apache2' which do not match your pid file,"
			        echo "and in the name of safety, we've left them alone.  Please review"
			        echo "the situation by hand."
                        fi
                        return 1
		fi
	fi
}

apache_sync_stop() {
	# running ?
	PIDTMP=$(pidof_apache)
	if $(kill -0 "${PIDTMP:-}" 2> /dev/null); then
	    PID=$PIDTMP
	fi

	apache_stop

	# wait until really stopped
	if [ -n "${PID:-}" ]; then
		i=0
		while $(kill -0 "${PID:-}" 2> /dev/null);  do
        		if [ $i = '30' ]; then
        			break;
        	 	else
        			if [ $i = '0' ]; then
                			echo -n " waiting "
        			else
                	      		echo -n "."
        		 	fi
        			i=$(($i+1))
        			sleep 2
        	      fi
		 done
	fi
}

# Stupid hack to keep lintian happy. (Warrk! Stupidhack!).
case $1 in
	start)
		[ -f /etc/apache2/httpd.conf ] || touch /etc/apache2/httpd.conf
		[ -d /var/run/apache2 ] || mkdir -p /var/run/apache2
		install -d -o www-data /var/lock/apache2
		#ssl_scache shouldn't be here if we're just starting up.
		[ -f /var/run/apache2/ssl_scache ] && rm -f /var/run/apache2/*ssl_scache*
		log_begin_msg "Starting web server (apache2)..."
		if $APACHE2CTL start; then
                        log_end_msg 0
                else
                        log_end_msg 1
                fi
	;;
	stop)
		log_begin_msg "Stopping web server (apache2)..."
		if apache_stop; then
                        log_end_msg 0
                else
                        log_end_msg 1
                fi
	;;
	reload)
		if ! $APACHE2CTL configtest > /dev/null 2>&1; then
                    $APACHE2CTL configtest || true
                    log_end_msg 1
                    exit 1
                fi
                log_begin_msg "Reloading web server config..."
		if pidof_apache; then
                    if $APACHE2CTL graceful $2 ; then
                        log_end_msg 0
                    else
                        log_end_msg 1
                    fi
                fi
	;;
	restart | force-reload)
		log_begin_msg "Forcing reload of web server (apache2)..."
		if ! apache_sync_stop; then
                        log_end_msg 1
                fi
		if $APACHE2CTL start; then
                        log_end_msg 0
                else
                        log_end_msg 1
                fi
	;;
	*)
		log_success_msg "Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload}"
	;;
esac
Test le en stop et start.

Cartman
07/05/2010, 15h05
Je l'avais fait sur un autre fichier, désolé.
Voici le rendu du fichier log :
Code:
+ ENV='env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin'
+ NO_START=0
+ set -e
+ '[' -x /usr/sbin/apache2 ']'
+ HAVE_APACHE2=1
+ . /lib/lsb/init-functions
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ test -f /etc/default/rcS
+ . /etc/default/rcS
++ TMPTIME=0
++ SULOGIN=no
++ DELAYLOGIN=no
++ UTC=yes
++ VERBOSE=no
++ FSCKFIX=yes
++ RAMRUN=no
++ RAMLOCK=no
+ test -f /etc/default/apache2
+ . /etc/default/apache2
++ NO_START=0
+ '[' 0 '!=' 0 -a stop '!=' stop ']'
+ APACHE2='env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin /usr/sbin/apache2'
+ APACHE2CTL='env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin /usr/sbin/apache2ctl'
+ case $1 in
+ log_begin_msg 'Stopping web server (apache2)...'
+ '[' -z 'Stopping web server (apache2)...' ']'
+ echo -n 'Stopping web server (apache2)...'
+ apache_stop
++ apache2 -t
+ env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin /usr/sbin/apache2 -k stop
+ log_end_msg 0
+ '[' -z 0 ']'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' xxterm-color '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ FANCYTTY=0
+ case "$FANCYTTY" in
+ false
+ '[' 0 -eq 0 ']'
+ echo .
+ return 0

st-h
07/05/2010, 15h03
Ajoute donc la ligne:
Code:
set -x
aprés la ligne:
Code:
#!/bin/sh -e
et refais:

Code:
 /etc/init.d/apache2 stop 2>/tmp/stop.log
et envoie le fichier /tmp/stop.log

Cartman
07/05/2010, 15h01
Citation Envoyé par st-h
?? tu as bien mis le set -x ?
Envoie le fichier /etc/init.d/apache2
le voici :
Code:
#!/bin/sh -e
#
# apache2		This init.d script is used to start apache2.
#			It basically just calls apache2ctl.

ENV="env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin"

#[ `ls -1 /etc/apache2/sites-enabled/ | wc -l | sed -e 's/ *//;'` -eq 0 ] && \
#echo "You haven't enabled any sites yet, so I'm not starting apache2." && \
#echo "To add and enable a host, use addhost and enhost." && exit 0

#edit /etc/default/apache2 to change this.
NO_START=0

set -e
if [ -x /usr/sbin/apache2 ] ; then
	HAVE_APACHE2=1
else
	echo "No apache MPM package installed"
	exit 0
fi

. /lib/lsb/init-functions

test -f /etc/default/rcS && . /etc/default/rcS
test -f /etc/default/apache2 && . /etc/default/apache2
if [ "$NO_START" != "0" -a "$1" != "stop" ]; then 
        log_warning_msg "Not starting apache2 - edit /etc/default/apache2 and change NO_START to be 0.";
        exit 0;
fi

APACHE2="$ENV /usr/sbin/apache2"
APACHE2CTL="$ENV /usr/sbin/apache2ctl"

pidof_apache() {
    # if pidof is null for some reasons the script exits automagically
    # classified as good/unknown feature
    PIDS=`pidof apache2` || true
    
    PID=""
    
    # let's try to find the pid file
    # apache2 allows more than PidFile entry in the config but only
    # the last found in the config is used
    for PFILE in `grep ^PidFile /etc/apache2/* -r | awk '{print $2}'`; do
	if [ -e $PFILE ]; then
            cat $PFILE
            return 0
	fi
    done
    REALPID=0
    # if there is a pid we need to verify that belongs to apache2
    # for real
    for i in $PIDS; do
        if [ "$i" = "$PID" ]; then
	    # in this case the pid stored in the
	    # pidfile matches one of the pidof apache
	    # so a simple kill will make it
            echo $PID
            return 0
        fi
    done
    return 1
}

apache_stop() {
	if `apache2 -t > /dev/null 2>&1`; then
		# if the config is ok than we just stop normaly
		$APACHE2 -k stop
	else
		# if we are here something is broken and we need to try
		# to exit as nice and clean as possible
		PID=$(pidof_apache)

		if [ "${PID}" ]; then
			# in this case it is everything nice and dandy
			# and we kill apache2
			kill $PID
		elif [ "$(pidof apache2)" ]; then
			if [ "$VERBOSE" != no ]; then
                                echo " ... failed!"
			        echo "You may still have some apache2 processes running.  There are"
 			        echo "processes named 'apache2' which do not match your pid file,"
			        echo "and in the name of safety, we've left them alone.  Please review"
			        echo "the situation by hand."
                        fi
                        return 1
		fi
	fi
}

apache_sync_stop() {
	# running ?
	PIDTMP=$(pidof_apache)
	if $(kill -0 "${PIDTMP:-}" 2> /dev/null); then
	    PID=$PIDTMP
	fi

	apache_stop

	# wait until really stopped
	if [ -n "${PID:-}" ]; then
		i=0
		while $(kill -0 "${PID:-}" 2> /dev/null);  do
        		if [ $i = '30' ]; then
        			break;
        	 	else
        			if [ $i = '0' ]; then
                			echo -n " waiting "
        			else
                	      		echo -n "."
        		 	fi
        			i=$(($i+1))
        			sleep 2
        	      fi
		 done
	fi
}

# Stupid hack to keep lintian happy. (Warrk! Stupidhack!).
case $1 in
	start)
		[ -f /etc/apache2/httpd.conf ] || touch /etc/apache2/httpd.conf
		[ -d /var/run/apache2 ] || mkdir -p /var/run/apache2
		install -d -o www-data /var/lock/apache2
		#ssl_scache shouldn't be here if we're just starting up.
		[ -f /var/run/apache2/ssl_scache ] && rm -f /var/run/apache2/*ssl_scache*
		log_begin_msg "Starting web server (apache2)..."
		if $APACHE2CTL start; then
                        log_end_msg 0
                else
                        log_end_msg 1
                fi
	;;
	stop)
		log_begin_msg "Stopping web server (apache2)..."
		if apache_stop; then
                        log_end_msg 0
                else
                        log_end_msg 1
                fi
	;;
	reload)
		if ! $APACHE2CTL configtest > /dev/null 2>&1; then
                    $APACHE2CTL configtest || true
                    log_end_msg 1
                    exit 1
                fi
                log_begin_msg "Reloading web server config..."
		if pidof_apache; then
                    if $APACHE2CTL graceful $2 ; then
                        log_end_msg 0
                    else
                        log_end_msg 1
                    fi
                fi
	;;
	restart | force-reload)
		log_begin_msg "Forcing reload of web server (apache2)..."
		if ! apache_sync_stop; then
                        log_end_msg 1
                fi
		if $APACHE2CTL start; then
                        log_end_msg 0
                else
                        log_end_msg 1
                fi
	;;
	*)
		log_success_msg "Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload}"
	;;
esac

st-h
07/05/2010, 14h23
?? tu as bien mis le set -x ?
Envoie le fichier /etc/init.d/apache2

Cartman
07/05/2010, 14h17
Citation Envoyé par st-h
Et envoie le contenu du fichier /tmp/stop.log

(et supprime la ligne set -x)
Il n'y a rien dans le fichier.

par contre, en voulant faire un start d'apache2 après, cela m'a provoqué le message d'erreur :
Code:
root@ns23377:~# /etc/init.d/apache2 stop 2>/tmp/stop.log
Stopping web server (apache2)....
root@ns23377:~# /etc/init.d/apache2 start
Starting web server (apache2)...(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!

st-h
07/05/2010, 13h42
Hum...
On va faire autre chose

Ajoute en 2eme ligne (en dessous de la ligne du type #!/bin/sh) de /etc/init.d/apache2 cette ligne:

Code:
set -x
et pendant qu'apache tourne relance un stop de cette façon:

Code:
/etc/init.d/apache2 stop 2>/tmp/stop.log
Et envoie le contenu du fichier /tmp/stop.log

(et supprime la ligne set -x)

Cartman
07/05/2010, 12h33
Citation Envoyé par st-h
Tu as quoi d'autre qui tourne sur ce serveur ? As tu des modules apaches "exotiques" ?
Non, j'ai une install basique d'apache avec des module deflate (expires), rewrite rajoutés, rien d'autres.

lsof | grep apache :
http://codepaste.net/br4ujt

ps auxwww | grep apache :
http://codepaste.net/z1maas

st-h
07/05/2010, 12h13
Tu as quoi d'autre qui tourne sur ce serveur ? As tu des modules apaches "exotiques" ?
Il doit y avoir quelque chose qui ne libère pas correctement une ressource et qui laisse apache de collé.
Refait un
Code:
/etc/init.d/apache2 stop
puis lance ces commandes et donne nous les résulats de ces commandes:

Code:
lsof | grep apache
Code:
ps auxwww | grep apache

et donne nous le résultat.

Cartman
07/05/2010, 12h07
Citation Envoyé par Arcan_-
Est ce que /var/run/apache2.pid existe (lorsqu'apache tourne) ?
oui

Arcan_-
07/05/2010, 11h55
Est ce que /var/run/apache2.pid existe (lorsqu'apache tourne) ?

Cartman
07/05/2010, 11h23
Code:
#
ServerRoot "/etc/apache2"

PidFile /var/run/apache2.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 30

KeepAlive On

MaxKeepAliveRequests 100
KeepAliveTimeout 10


# prefork MPM


    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          200
    MaxRequestsPerChild   0


# worker MPM

    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75 
    ThreadsPerChild      25
    MaxRequestsPerChild   0


User www-data
Group www-data

AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#

    Order allow,deny
    Deny from all


TypesConfig /etc/mime.types

#

DefaultType text/plain

HostnameLookups Off

ErrorLog /var/log/apache2/error.log

LogLevel warn

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf

# Include generic snippets of statements
Include /etc/apache2/conf.d/

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

ServerTokens Full
ServerSignature On


   
    Alias /icons/ "/usr/share/apache2/icons/"

    
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    





    IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=*

    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*

    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core

    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^

    #
    # DefaultIcon is which icon to show for files which do not have an icon
    # explicitly set.
    #
    DefaultIcon /icons/unknown.gif

    ReadmeName README.html
    HeaderName HEADER.html

    IndexIgnore .??* *~ *# RCS CVS *,v *,t 



    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    AddLanguage ca .ca
    AddLanguage cs .cz .cs
    AddLanguage da .dk
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage en .en
    AddLanguage eo .eo
    AddLanguage es .es
    AddLanguage et .et
    AddLanguage fr .fr
    AddLanguage he .he
    AddLanguage hr .hr
    AddLanguage it .it
    AddLanguage ja .ja
    AddLanguage ko .ko
    AddLanguage ltz .ltz
    AddLanguage nl .nl
    AddLanguage nn .nn
    AddLanguage no .no
    AddLanguage pl .po
    AddLanguage pt .pt
    AddLanguage pt-BR .pt-br
    AddLanguage ru .ru
    AddLanguage sv .sv
    AddLanguage zh-CN .zh-cn
    AddLanguage zh-TW .zh-tw



    #
    # LanguagePriority allows you to give precedence to some languages
    # in case of a tie during content negotiation.
    #
    # Just list the languages in decreasing order of preference. We have
    # more or less alphabetized them here. You probably want to change this.
    #
    LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

    #
    # ForceLanguagePriority allows you to serve a result page rather than
    # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
    # [in case no accepted languages matched the available variants]
    #
    ForceLanguagePriority Prefer Fallback




    #AddDefaultCharset ISO-8859-1

    #
    AddCharset us-ascii    .ascii .us-ascii
    AddCharset ISO-8859-1  .iso8859-1  .latin1
    AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
    AddCharset ISO-8859-3  .iso8859-3  .latin3
    AddCharset ISO-8859-4  .iso8859-4  .latin4
    AddCharset ISO-8859-5  .iso8859-5  .cyr .iso-ru
    AddCharset ISO-8859-6  .iso8859-6  .arb .arabic
    AddCharset ISO-8859-7  .iso8859-7  .grk .greek
    AddCharset ISO-8859-8  .iso8859-8  .heb .hebrew
    AddCharset ISO-8859-9  .iso8859-9  .latin5 .trk
    AddCharset ISO-8859-10  .iso8859-10  .latin6
    AddCharset ISO-8859-13  .iso8859-13
    AddCharset ISO-8859-14  .iso8859-14  .latin8
    AddCharset ISO-8859-15  .iso8859-15  .latin9
    AddCharset ISO-8859-16  .iso8859-16  .latin10
    AddCharset ISO-2022-JP .iso2022-jp .jis
    AddCharset ISO-2022-KR .iso2022-kr .kis
    AddCharset ISO-2022-CN .iso2022-cn .cis
    AddCharset Big5        .Big5       .big5 .b5
    AddCharset cn-Big5     .cn-big5
    # For russian, more than one charset is used (depends on client, mostly):
    AddCharset WINDOWS-1251 .cp-1251   .win-1251
    AddCharset CP866       .cp866
    AddCharset KOI8      .koi8
    AddCharset KOI8-E      .koi8-e
    AddCharset KOI8-r      .koi8-r .koi8-ru
    AddCharset KOI8-U      .koi8-u
    AddCharset KOI8-ru     .koi8-uk .ua
    AddCharset ISO-10646-UCS-2 .ucs2
    AddCharset ISO-10646-UCS-4 .ucs4
    AddCharset UTF-7       .utf7
    AddCharset UTF-8       .utf8
    AddCharset UTF-16      .utf16
    AddCharset UTF-16BE    .utf16be
    AddCharset UTF-16LE    .utf16le
    AddCharset UTF-32      .utf32
    AddCharset UTF-32BE    .utf32be
    AddCharset UTF-32LE    .utf32le
    AddCharset euc-cn      .euc-cn
    AddCharset euc-gb      .euc-gb
    AddCharset euc-jp      .euc-jp
    AddCharset euc-kr      .euc-kr
    #Not sure how euc-tw got in - IANA doesn't list it???
    AddCharset EUC-TW      .euc-tw
    AddCharset gb2312      .gb2312 .gb
    AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
    AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
    AddCharset shift_jis   .shift_jis .sjis

    AddHandler type-map var

    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml



    #
    # The following directives modify normal HTTP response behavior to
    # handle known problems with browser implementations.
    #
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0

    #
    # The following directive disables redirects on non-GET requests for
    # a directory that does not include the trailing slash.  This fixes a 
    # problem with Microsoft WebFolders which does not appropriately handle 
    # redirects for folders with DAV methods.
    # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
    #
    BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
    BrowserMatch "MS FrontPage" redirect-carefully
    BrowserMatch "^WebDrive" redirect-carefully
    BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
    BrowserMatch "^gnome-vfs/1.0" redirect-carefully
    BrowserMatch "^XML Spy" redirect-carefully
    BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully


Header unset Pragma
FileETag None
Header unset ETag 

#Expire Header

	ExpiresDefault "access plus 6 hours"



# Expire images header
ExpiresActive On
ExpiresDefault A0
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/ico A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000


# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/

Arcan_-
07/05/2010, 10h40
Au temps pour moi...

Peux tu nous coller ton apache2.conf ?

fugitif
06/05/2010, 15h35
Citation Envoyé par Arcan_-
Dans ton /etc/init.d/apache2, pidof_apache cherche le pid file dans /etc/apache2/, alors que ton logrotate cherche /var/run/apache2.pid...

Fais des backups de tes fichiers puis modifie ce qu'il faut pour faire correspondre l'emplacement des pid file.
Faudrai arrêter de sortir des bêtises si on ne sais pas.

Son script init.d cherche l'emplacement du pid qui est configurer dans un fichier qui se trouve dans /etc/apache2/

Extrait du code :
Code:
    for PFILE in `grep ^PidFile /etc/apache2/* -r | awk '{print $2}'`; do
	if [ -e $PFILE ]; then
            cat $PFILE
            return 0
	fi
    done
En gros il cherche (grep) une ligne avec PidFile dans /etc/apache2/*
Se qui correspond à la ligne :
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile /var/run/apache2.pid

La configuration du pid apache est dans /etc/apache2/apache2.conf sur Ubuntu

Si tu tape grep ^PidFile /etc/apache2/* -r | awk '{print $2}' dans ta console
Tu obtient =>
/var/run/apache2.pid

Cartman
06/05/2010, 14h55
Citation Envoyé par Arcan_-
Dans ton /etc/init.d/apache2, pidof_apache cherche le pid file dans /etc/apache2/, alors que ton logrotate cherche /var/run/apache2.pid...

Fais des backups de tes fichiers puis modifie ce qu'il faut pour faire correspondre l'emplacement des pid file.
Merci pour ton support.
Je n'hésiterai pas à te contacter au cas ou

Arcan_-
06/05/2010, 14h42
Dans ton /etc/init.d/apache2, pidof_apache cherche le pid file dans /etc/apache2/, alors que ton logrotate cherche /var/run/apache2.pid...

Fais des backups de tes fichiers puis modifie ce qu'il faut pour faire correspondre l'emplacement des pid file.

Cartman
06/05/2010, 13h39
Syntax OK

et le stop d'apache2, je suis tombé au moment ou il y avait un probleme :
/etc/init.d/apache2 stop
Stopping web server (apache2)....
root@ns232377:~# /etc/init.d/apache2 start
Starting web server (apache2)...(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!
root@ns232377:~# killall -9 apache2

st-h
06/05/2010, 12h44
- que donne la commande:

Code:
apache2ctl configtest
Mais bon ta configuration a l'air bonne vu que tu arrive à démarrer apache.
- Tu ne m'as pas dis si tu avais des messages d'erreurs ou autres lorsque tu lances la commande:

Code:
/etc/init.d/apache2 stop
Bon aprés là, ca va être dur d'aider si l'on a pas plus d'informations. Je peux te proposer mes services d'infogérance au cas ou.

Cartman
06/05/2010, 11h29
init.d/apache2 :
Code:
#!/bin/sh -e
#
# apache2		This init.d script is used to start apache2.
#			It basically just calls apache2ctl.

ENV="env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin"

#[ `ls -1 /etc/apache2/sites-enabled/ | wc -l | sed -e 's/ *//;'` -eq 0 ] && \
#echo "You haven't enabled any sites yet, so I'm not starting apache2." && \
#echo "To add and enable a host, use addhost and enhost." && exit 0

#edit /etc/default/apache2 to change this.
NO_START=0

set -e
if [ -x /usr/sbin/apache2 ] ; then
	HAVE_APACHE2=1
else
	echo "No apache MPM package installed"
	exit 0
fi

. /lib/lsb/init-functions

test -f /etc/default/rcS && . /etc/default/rcS
test -f /etc/default/apache2 && . /etc/default/apache2
if [ "$NO_START" != "0" -a "$1" != "stop" ]; then 
        log_warning_msg "Not starting apache2 - edit /etc/default/apache2 and change NO_START to be 0.";
        exit 0;
fi

APACHE2="$ENV /usr/sbin/apache2"
APACHE2CTL="$ENV /usr/sbin/apache2ctl"

pidof_apache() {
    # if pidof is null for some reasons the script exits automagically
    # classified as good/unknown feature
    PIDS=`pidof apache2` || true
    
    PID=""
    
    # let's try to find the pid file
    # apache2 allows more than PidFile entry in the config but only
    # the last found in the config is used
    for PFILE in `grep ^PidFile /etc/apache2/* -r | awk '{print $2}'`; do
	if [ -e $PFILE ]; then
            cat $PFILE
            return 0
	fi
    done
    REALPID=0
    # if there is a pid we need to verify that belongs to apache2
    # for real
    for i in $PIDS; do
        if [ "$i" = "$PID" ]; then
	    # in this case the pid stored in the
	    # pidfile matches one of the pidof apache
	    # so a simple kill will make it
            echo $PID
            return 0
        fi
    done
    return 1
}

apache_stop() {
	if `apache2 -t > /dev/null 2>&1`; then
		# if the config is ok than we just stop normaly
		$APACHE2 -k stop
	else
		# if we are here something is broken and we need to try
		# to exit as nice and clean as possible
		PID=$(pidof_apache)

		if [ "${PID}" ]; then
			# in this case it is everything nice and dandy
			# and we kill apache2
			kill $PID
		elif [ "$(pidof apache2)" ]; then
			if [ "$VERBOSE" != no ]; then
                                echo " ... failed!"
			        echo "You may still have some apache2 processes running.  There are"
 			        echo "processes named 'apache2' which do not match your pid file,"
			        echo "and in the name of safety, we've left them alone.  Please review"
			        echo "the situation by hand."
                        fi
                        return 1
		fi
	fi
}

apache_sync_stop() {
	# running ?
	PIDTMP=$(pidof_apache)
	if $(kill -0 "${PIDTMP:-}" 2> /dev/null); then
	    PID=$PIDTMP
	fi

	apache_stop

	# wait until really stopped
	if [ -n "${PID:-}" ]; then
		i=0
		while $(kill -0 "${PID:-}" 2> /dev/null);  do
        		if [ $i = '30' ]; then
        			break;
        	 	else
        			if [ $i = '0' ]; then
                			echo -n " waiting "
        			else
                	      		echo -n "."
        		 	fi
        			i=$(($i+1))
        			sleep 2
        	      fi
		 done
	fi
}

# Stupid hack to keep lintian happy. (Warrk! Stupidhack!).
case $1 in
	start)
		[ -f /etc/apache2/httpd.conf ] || touch /etc/apache2/httpd.conf
		[ -d /var/run/apache2 ] || mkdir -p /var/run/apache2
		install -d -o www-data /var/lock/apache2
		#ssl_scache shouldn't be here if we're just starting up.
		[ -f /var/run/apache2/ssl_scache ] && rm -f /var/run/apache2/*ssl_scache*
		log_begin_msg "Starting web server (apache2)..."
		if $APACHE2CTL start; then
                        log_end_msg 0
                else
                        log_end_msg 1
                fi
	;;
	stop)
		log_begin_msg "Stopping web server (apache2)..."
		if apache_stop; then
                        log_end_msg 0
                else
                        log_end_msg 1
                fi
	;;
	reload)
		if ! $APACHE2CTL configtest > /dev/null 2>&1; then
                    $APACHE2CTL configtest || true
                    log_end_msg 1
                    exit 1
                fi
                log_begin_msg "Reloading web server config..."
		if pidof_apache; then
                    if $APACHE2CTL graceful $2 ; then
                        log_end_msg 0
                    else
                        log_end_msg 1
                    fi
                fi
	;;
	restart | force-reload)
		log_begin_msg "Forcing reload of web server (apache2)..."
		if ! apache_sync_stop; then
                        log_end_msg 1
                fi
		if $APACHE2CTL start; then
                        log_end_msg 0
                else
                        log_end_msg 1
                fi
	;;
	*)
		log_success_msg "Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload}"
	;;
esac
default/apache2 :
Code:
# 0 = start on boot; 1 = don't start on boot
NO_START=0
et envvars :
Code:
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# envvars-std - default environment variables for apachectl
#
# This file is generated from envvars-std.in
#
Je peux faire des reload sans probs, tant que le problème ne survient pas.

Arcan_-
06/05/2010, 11h19
Qu'as tu dans /etc/init.d/apache2, /etc/default/apache2 et /etc/apache2/envvars ??

Essai de faire /etc/init.d/apache2 reload
Est ce que ça te donne un message d'erreur ?

Cartman
05/05/2010, 20h03
Citation Envoyé par st-h
Apparament apache ne se stoppe pas correctement et donc le start echoue (vu qu'il tourne encore).
Mais bon un peu dur à diagnostiquer comme ça....
- Que donne un /etc/init.d/apache2 stop ? Message d'erreur ?
- Reste t'il des process apache une fois la commande ci-dessus exécutée ?
- que dit le log error_log d'apache ?

Donne nous le contenu du fichier /etc/logrotate.d/apache2 comme l'indique Arcan
- impossible de faire de /etc/init.d/apache2 stop. je suis obligé de killer le process et de faire un start ensuite.
log_erreur dit à l'heure du plantage :
Code:
[Wed May 05 06:25:59 2010] [notice] caught SIGTERM, shutting down
Voici le logrotate/apache2 :
Code:
/var/log/apache2/*.log {
	weekly
	missingok
	rotate 52
	compress
	delaycompress
	notifempty
	create 640 root adm
	sharedscripts
	postrotate
		if [ -f /var/run/apache2.pid ]; then
			/etc/init.d/apache2 restart > /dev/null
		fi
	endscript
}
Il est différent d'un de mes autres serveurs (qui n'a aucun soucis) :
Code:
/var/log/apache2/*.log {
	weekly
	missingok
	rotate 52
	compress
	delaycompress
	notifempty
	create 640 root adm
	sharedscripts
	postrotate
		if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
			/etc/init.d/apache2 reload > /dev/null
		fi
	endscript
}
Dois-je le remplacer par ce dernier ?

st-h
05/05/2010, 17h13
Apparament apache ne se stoppe pas correctement et donc le start echoue (vu qu'il tourne encore).
Mais bon un peu dur à diagnostiquer comme ça....
- Que donne un /etc/init.d/apache2 stop ? Message d'erreur ?
- Reste t'il des process apache une fois la commande ci-dessus exécutée ?
- que dit le log error_log d'apache ?

Donne nous le contenu du fichier /etc/logrotate.d/apache2 comme l'indique Arcan

Cartman
05/05/2010, 15h10
Tout à fait.
Ces deux fichiers existe et ont été créés dès la création du serveur web, le 29 juillet dernier mais jamais mis à jour.

Arcan_-
05/05/2010, 15h03
Lorsque, entre autre, un démon est démarré, il crée un fichier dans lequel il stock l'ID du processus (c'est le pid file).

Tu as un logrotate qui, tous les jours à 6:25, regarde si apache2 est lancé en se basant sur le pid file.

Que te donnent :
cat /etc/apache2/envvars
et
cat /etc/logrotate.d/apache2
?

Cartman
05/05/2010, 14h28
Citation Envoyé par Arcan_-
Peut être un soucis sur la génération/check du pid file (permissions, emplacement, ...).
je veux bien l'admettre mais je ne sais pas de quoi tu parles... :/

Arcan_-
05/05/2010, 14h21
Peut être un soucis sur la génération/check du pid file (permissions, emplacement, ...).

Cartman
05/05/2010, 11h41
Citation Envoyé par TBC_Ly0n
Quel OS ?
Qu'y a-t-il qui concerne Apache dans /etc/cron.daily ?
Ca ressemble à une rotation de logs mal faite.
Debian lenny

Code:
# m h dom mon dow user	command
17 *	* * *	root    cd / && run-parts --report /etc/cron.hourly
25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
Il y a ce qu'il y a par défaut dans le crontab.
Il y a surement un soucis avec le con daily puisque tous les bugs arrivent à 6h25.

TBC_Ly0n
05/05/2010, 10h33
Quel OS ?
Qu'y a-t-il qui concerne Apache dans /etc/cron.daily ?
Ca ressemble à une rotation de logs mal faite.

Cartman
05/05/2010, 08h04
Probleme toujours non résolu.
Quelqu'un a une idée ?

Cartman
20/04/2010, 09h42
Citation Envoyé par cmer81
salut

Essaye

Code:
killall apache2
/etc/init.d/apache2 start
Normalement cela suffit

Pour ceux qui est du problème il m'est arriver la même chose et est repartie aussi mystérieusement qu'il est venue
merci pour ta réponse !
J'ai beau le killer, il revient toujours, et plante régulièrement mon serveur.

cmer81
16/02/2010, 20h07
salut

Essaye

Code:
killall apache2
/etc/init.d/apache2 start
Normalement cela suffit

Pour ceux qui est du problème il m'est arriver la même chose et est repartie aussi mystérieusement qu'il est venue

Cartman
16/02/2010, 19h14
avec le init

j'ai vu que j'avais 2 ports Listen dans ports.conf

Listen 80
Listen 88

j'ai coupé le 88, c'est peut etre cela qui posait probleme.

madri2
16/02/2010, 19h13
tu restart avec apache2ctl ou le script init ?

Cartman
16/02/2010, 18h04
UP

Bonjour à tous,

J'ai un soucis avec un serveur, qui régulièrement, de temps en temps à 6h25 (mais pas forcément) et plante avec ce message pour apache quand j'essaye de le redémarrer :
Code:
Forcing reload of web server (apache2)...httpd (no pid file) not running
(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!
Le serveur crash à chaque fois que ce cron (par defaut à l'install) s'execute :
Code:
25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Je ne comprend pas ce problème et ayant déjà cherché sur Google, sans réponses, je tente une dernière cartouche sur le fofo des experts apache.

C'est un problème que j'ai que depuis 1 mois environ.
Ce n'estp as un probleme de place sur le serveur:
Code:
/dev/md1               29G  1,5G   26G   6% /
tmpfs                 1,9G     0  1,9G   0% /lib/init/rw
udev                   10M   44K   10M   1% /dev
tmpfs                 1,9G     0  1,9G   0% /dev/shm
/dev/md2              640G   18G  591G   3% /home
la commande
Code:
netstat -tan
renvoit énormément de résultats. le "XX.XXX.XX.XXX" étant mon IP

Code:
 1114 root      15  -5     0    0    0 S    0  0.0   0:00.00 kpsmoused                                                                                                                                     
root@nsXXX:~# netstat -tan
Connexions Internet actives (serveurs et établies)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat       
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:4949            0.0.0.0:*               LISTEN     
tcp        0      0 XX.XXX.XX.XXX:53        0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:88              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN     
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55127     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55170     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        88.163.20.187:53497     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        202.90.88.148:47490     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55159     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55223     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55042     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55197     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55124     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55167     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55270     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55205     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55063     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        77.201.49.223:50056     FIN_WAIT2  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55188     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55245     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55030     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55244     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55178     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        86.69.46.197:51262      TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55221     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55262     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55115     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55040     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        86.69.46.197:51249      TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55175     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55106     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55031     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        77.201.49.223:50061     FIN_WAIT2  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55121     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55071     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55132     TIME_WAIT  
tcp        0      0 XX.XXX.XX.XXX:80        XX.XXX.XX.XXX:55093     TIME_WAIT  
tcp        0   4832 XX.XXX.XX.XXX:22        94.108.205.24:56221     ESTABLISHED

Cartman
07/02/2010, 11h19
Exactement le meme probleme sans réponses

ovaltine
20/01/2010, 09h12
Bonjour,

J'ai un petit soucis, j'ai installé virtualmin, config 3 sites dessus aucun soucis avec apache2 et d'un coup dès que je veux restart j'ai le message :

* Starting web server apache2
(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
netstat -tulpn | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2718/apache2
Ça marche avec un "killall apache2" puis restart mais c'est quand même embêtant surtout que je n'ai touché à aucune config directement j'ai tout configuré via virtualmin

Comment régler ça ? Merci !