Apache still crashes out.

mmm i did post already on a other place but i'm thinking that i have to post here..:)

Since i did update php 4.3.4 --> 4.3.5
and MySQL 4.0.16 --> 4.0.18
i have troubles with httpd.
my http-error.log
[Mon Apr 12 22:42:01 2004] [warn] child process 14266 still did not exit, sending a SIGTERM
[Mon Apr 12 22:42:05 2004] [crit] (98)Address already in use: make_sock: could not bind to port 8090

:confused: :confused:
Who can help me... why does httpd stops...
I have really problems with it.


Thanks for help
 
Last edited:
Hello,

Did you remove/update the configure.apache_ssl and configure.php before doing the update?

rm -f configure.*
./build clean
./build update
./build all

Give that a go.

John
 
You can try to solve that promlem by modifying 'service apache restart' command to wait until all apache processes exit before starting server again.

Edit /etc/init.d/httpd and add following function to script:

wait_after_stop(){
count=${2:-30}
while [ 0$count -gt 0 ]
do
PIDS=`ps -C$prog --no-heading e | grep $httpd` || break
PIDS=`echo "$PIDS" | awk '{print $1}' | tr '\n' ' '`
echo Remaining processes: $PIDS
stop
sleep 2
count=`expr $count - 1`
done
if [ 0$count -eq 0 ];
then
echo Remaining processes: $PIDS
return 1
fi
return 0
}

Replace
restart)
stop
start
;;
with
restart)
stop
wait_after_stop "httpd" 20
start
;;

With that modifications 10 days ago we have solved "daily apache crash problem" on 2 our servers. Seems it's works without problems.
(I have found that solution at http://forum.plesk.com/showthread.php?s=&threadid=2409 and modified it a little.)
 
apache didn't crash after monday 22.42. Whe have now a script thats is checking apache and restart if apache fails and send us a email.
 
BUT

I CAN PUT THIS SCRIPT WHERE I WANT IN
/etc/init.d/httpd ??

I MEAN AT THE END OR AT THE BEGIN OF THE FILE ITS CHANGE NOTHING??
 
ClayRabbit said:
You can try to solve that promlem by modifying 'service apache restart' command to wait until all apache processes exit before starting server again.

Edit /etc/init.d/httpd and add following function to script:

wait_after_stop(){
count=${2:-30}
while [ 0$count -gt 0 ]
do
PIDS=`ps -C$prog --no-heading e | grep $httpd` || break
PIDS=`echo "$PIDS" | awk '{print $1}' | tr '\n' ' '`
echo Remaining processes: $PIDS
stop
sleep 2
count=`expr $count - 1`
done
if [ 0$count -eq 0 ];
then
echo Remaining processes: $PIDS
return 1
fi
return 0
}

Replace
with

With that modifications 10 days ago we have solved "daily apache crash problem" on 2 our servers. Seems it's works without problems.
(I have found that solution at http://forum.plesk.com/showthread.php?s=&threadid=2409 and modified it a little.)

Is this done by default now in the /etc/init.d/httpd file?

I have had quite a few server crash problems, even after updating my customapache to the most recent DA files.
 
Hello,

Yes:

http://files.directadmin.com/services/customapache/httpd
http://files.directadmin.com/services/customapache/httpd_2
http://files.directadmin.com/services/customapache/httpd_freebsd
http://files.directadmin.com/services/customapache/httpd_2_freebsd
http://files.directadmin.com/services/customapache/httpd_debian

John
 
Back
Top