Hola,una pregunta de novato,resulta que arranco bien el apache con el
apachectl pero resulta que es de otra version porque en la instalacion de
suse 10.0 no me venia,pero a la hora cerrarle no me cierra con sh apachectl
stop y me sale este mensaje
apachectl stop: httpd (no pid file) not running
este es el scritp
# the path to your PID file
PIDFILE=/usr/local/apache/logs/httpd2.pid
#
# the path to your httpd binary, including options if necessary
HTTPD='/usr/local/apache/bin/httpd2'
#
# a command that outputs a formatted text version of the HTML at the
# url given on the command line. Designed for lynx, however other
# programs may work.
LYNX="lynx -dump"
#
# the URL to your server's mod_status status page. If you do not
# have one, then status and fullstatus will not work.
STATUSURL="http://localhost/server-status"
#
# -------------------- --------------------
# |||||||||||||||||||| END CONFIGURATION SECTION ||||||||||||||||||||
ERROR=0
ARGV="$@"
if [ "x$ARGV" = "x" ] ; then
ARGS="help"
fi
for ARG in $@ $ARGS
do
# check for pidfile
if [ -f $PIDFILE ] ; then
PID=`cat $PIDFILE`
if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null ; then
STATUS="httpd (pid $PID) running"
RUNNING=1
else
STATUS="httpd (pid $PID?) not running"
RUNNING=0
fi
else
STATUS="httpd (no pid file) not running"
RUNNING=0
fi
case $ARG in
start)
if [ $RUNNING -eq 1 ]; then
echo "$0 $ARG: httpd (pid $PID) already running"
continue
fi
if $HTTPD ; then
echo "$0 $ARG: httpd started"
else
echo "$0 $ARG: httpd could not be started"
ERROR=3
fi
;;
stop)
if [ $RUNNING -eq 0 ]; then
echo "$0 $ARG: $STATUS"
continue
fi
if kill $PID ; then
echo "$0 $ARG: httpd stopped"
else
echo "$0 $ARG: httpd could not be stopped"
ERROR=4
fi
;;
restart)
if [ $RUNNING -eq 0 ]; then
echo "$0 $ARG: httpd not running, trying to start"
if $HTTPD ; then
echo "$0 $ARG: httpd started"
else
echo "$0 $ARG: httpd could not be started"
ERROR=5
fi
else
if $HTTPD -t >/dev/null 2>&1; then
if kill -HUP $PID ; then
echo "$0 $ARG: httpd restarted"
else
echo "$0 $ARG: httpd could not be restarted"
ERROR=6
fi
else
echo "$0 $ARG: configuration broken, ignoring restart"
echo "$0 $ARG: (run 'apachectl configtest' for details)"
ERROR=6
fi
fi
;;
graceful)
if [ $RUNNING -eq 0 ]; then
echo "$0 $ARG: httpd not running, trying to start"
if $HTTPD ; then
echo "$0 $ARG: httpd started"
else
echo "$0 $ARG: httpd could not be started"
ERROR=5
fi
else
if $HTTPD -t >/dev/null 2>&1; then
if kill -USR1 $PID ; then
echo "$0 $ARG: httpd gracefully restarted"
else
echo "$0 $ARG: httpd could not be restarted"
ERROR=7
fi
else
echo "$0 $ARG: configuration broken, ignoring restart"
echo "$0 $ARG: (run 'apachectl configtest' for details)"
ERROR=7
fi
fi
;;
status)
$LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
;;
fullstatus)
$LYNX $STATUSURL
;;
configtest)
if $HTTPD -t; then
:
else
ERROR=8
fi
;;
*)
echo "usage: $0 (start|stop|restart|fullstatus|status|graceful|configtest|
help)"
cat <
Manuel:
El comando es: rcapache2 stop
Iván de Jesús
"Manuel H.C."
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2006-06-04 a las 13:34 +0200, Manuel H.C. escribió:
Hola,una pregunta de novato,resulta que arranco bien el apache con el apachectl pero resulta que es de otra version porque en la instalacion de suse 10.0 no me venia,pero a la hora cerrarle no me cierra con sh apachectl stop y me sale este mensaje
El apache viene en la SuSE desde siempre, y se arranca|para con "rcapache2 start | stop". En algunas versiones ha sido con "rchttpd start|stop". - -- Saludos Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEgzZttTMYHG2NR9URAoonAJ4416xd2PLL8lryTA/NKwBDHtPOYACfSiYv /CtTAQEcIejpb3OF6AvEmpE= =bife -----END PGP SIGNATURE----- -- Para dar de baja la suscripci�n, mande un mensaje a: suse-linux-s-unsubscribe@suse.com Para obtener el resto de direcciones-comando, mande un mensaje a: suse-linux-s-help@suse.com
Hola,una pregunta de novato,resulta que arranco bien el apache con el
Es muy extraño que arranques bien. Que versión de Apache has instalado ?
PIDFILE=/usr/local/apache/logs/httpd2.pid HTTPD='/usr/local/apache/bin/httpd2'
Estos no son los "paths" del Apache que usa SuSE, más bien parecen para las versiones 1.33.x -- Salutacions - Saludos, Josep M. Queralt
El Domingo, 4 de Junio de 2006 21:51, Josep M. Queralt escribió:
Hola,una pregunta de novato,resulta que arranco bien el apache con el
Es muy extraño que arranques bien. Que versión de Apache has instalado ?
La que viene con suse 10.0 la 2.0.54-10i586
PIDFILE=/usr/local/apache/logs/httpd2.pid HTTPD='/usr/local/apache/bin/httpd2'
Estos no son los "paths" del Apache que usa SuSE, más bien parecen para las versiones 1.33.x
Creo que en el mail lo puse que el scritp era de otra version,pero si me arranca . -- Para dar de baja la suscripci�n, mande un mensaje a: suse-linux-s-unsubscribe@suse.com Para obtener el resto de direcciones-comando, mande un mensaje a: suse-linux-s-help@suse.com
La que viene con suse 10.0 la 2.0.54-10i586
PIDFILE=/usr/local/apache/logs/httpd2.pid HTTPD='/usr/local/apache/bin/httpd2'
Entonces Apache2 deberías tenerlo en: /usr/sbin/httpd2-prefork La orden para inciar "apachectl" debería ser: /usr/sbin/apache2ctl Y las órdenes para iniciar, parar y reiniciar Apache2 serían: /etc/init.d/apache2 start /etc/init.d/apache2 stop /etc/init.d/apache2 restart ... Ah! y el fichero PID debería estar en: /var/run/httpd2.pid -- Salutacions - Saludos, Josep M. Queralt
El Domingo, 4 de Junio de 2006 22:34, Josep M. Queralt escribió:
La que viene con suse 10.0 la 2.0.54-10i586
PIDFILE=/usr/local/apache/logs/httpd2.pid HTTPD='/usr/local/apache/bin/httpd2'
Entonces Apache2 deberías tenerlo en:
/usr/sbin/httpd2-prefork La orden para inciar "apachectl" debería ser: /usr/sbin/apache2ctl
Ok gracias a todos ya esta resuelto el entuerto es que yo buscaba apachectl y lleva un 2 intercalado apache2ctl por eso no loencontraba ,gracias a todos de nuevo un saludo esto ya pita.Manuel H.C. -- Para dar de baja la suscripci�n, mande un mensaje a: suse-linux-s-unsubscribe@suse.com Para obtener el resto de direcciones-comando, mande un mensaje a: suse-linux-s-help@suse.com
participants (4)
-
Carlos E. R.
-
Iv�n de Jes�s Llanos Henr�quez
-
Josep M. Queralt
-
Manuel H.C.