Apache problem

sspt

Verified User
Joined
Oct 27, 2005
Messages
57
Problem:
[root@lisbon ~]# service httpd reload
Reloading httpd: [FAILED]
[root@lisbon ~]# service httpd restart
Stopping httpd: [FAILED]
warning, got duplicate tcp line.
Starting httpd: (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
[FAILED]

I've changed the /etc/init.d/httpd
...
restart)
stop
waitforexit "httpd" 20
kill -9 `netstat -lnp | grep 80 | awk '{print $7}' | awk -F "/" '{print $1}'`
kill -9 `netstat -lnp | grep 443 | awk '{print $7}' | awk -F "/" '{print $1}'`
kill -9 `netstat -lnp | grep 80 | awk '{print $7}' | awk -F "/" '{print $1}'`
kill -9 `netstat -lnp | grep 443 | awk '{print $7}' | awk -F "/" '{print $1}'`
start
;;
..

Now, when i mannualy restart apache all works fine.
I just want to know what command directadmin runs hourly (that restarts apache). Is it 'service httpd restart' or reload, condrestart...?

Thanks in advance,
 
DirectAdmin should not be restarting apache every hour unless you modified the tally cronjob to run every hour.

I don't know what the command they use. Runs in my mind that it was reload unless it was the service monitor trying to start it.
Drop support a line and let us know if they don't get to this thread.
 
Back
Top