View Full Version : Virtual Domain doesn't work when server is restarted
sphere
01-14-2004, 12:29 AM
Question:
Why does the virtual domain doesn't work when my server's restarted? I have to login to DirectAdmin and restart apache service from there to make it works.
Regards
existenz
01-14-2004, 09:39 AM
You probably have 2 versions of Apache running.
sphere
01-18-2004, 09:18 PM
How do I know that 2 versions running?
existenz
01-18-2004, 09:29 PM
You can check it this way.
ps aux
sphere
01-19-2004, 12:59 AM
I think 9 are running, one under root and the others under apache. Too bad, I don't understand how to read it. :) Too complicated... :D
existenz
01-19-2004, 09:00 AM
Simple:
www 438 0.0 1.8 5372 4380 ?? I 1:54AM 0:00.04 /usr/local/sbin
Look at the end of the line you will see www running in 2 different locations. You can check /usr/local/etc/rc.d/ and disable the apache second apache from starting up, and you can kill it with the process id the above is 438.
sphere
01-19-2004, 08:50 PM
Hi existenz,
When the server restarted, I got one run under root and several run under www. All run from the same location. But when I run httpd restart, all process run under www gone and replaced with process run under apache.
I have apache.sh, apache.sh.dist, and httpd in /usr/local/etc/rc.d directory. I suspect apache.sh or apache.sh.dist which make this problem occured. Am I right?
Thank's a lot for your assistance.
DirectAdmin Support
01-20-2004, 11:31 AM
Hello,
We don't include the "apache.sh" script, but only use the "httpd" script (/usr/local/etc/rc.d/httpd) .. so delete or rename the apache.sh script to something else so that the "boot.sh" script can call httpd.
John
sphere
01-20-2004, 08:26 PM
Yes, thank's, I changed apache.sh permission to 444 and it works now.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.