Virtual Domain doesn't work when server is restarted

sphere

Verified User
Joined
Nov 30, 2003
Messages
17
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
 
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
 
Simple:

Code:
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.
 
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.
 
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
 
Yes, thank's, I changed apache.sh permission to 444 and it works now.
 
Back
Top