Hi, I've been having the same problem, on two servers actually. With one we just removed directadmin completely, but with the other one that's not an option.
Every night when Directadmin does the "Tally", it restarts apache. But it doesn't stop apache correctly somehow and port 80 (and sometimes port 443 too) are still in use by a not-working apache process. Apache won't restart because ports in use is a critical error and it just closes again:
Code:
httpd not running, trying to start
(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
Quick manual fix:
- Search for ports in use:
# lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
httpd 6617 apache 4u IPv6 527364 TCP *:www (LISTEN)
- Kill the process using the PID:
# kill -9 6617
After that you can restart apache normally. But I'm really hoping directadmin can provide us with a permanent solution.
Here's wat seems to be a solution:
http://help.directadmin.com/item.php?id=31. But it's an old help file, those files/paths are not available on my server. Plus I'm using Debian as well, and the commands there are for redhat/freebsd.

Is this custombuild thing doing the same as described on that help-page?