apache2.x

Sp-tech

Verified User
Joined
Apr 30, 2004
Messages
19
What command does directadmin run internally to restart apache when it sees it down?


Because when i type service httpd restart


it fails...


but whenever i do service httpd stop

and wait for directadmin to automatically restart it up internally that works.... and all the sites are working fine.




Strange indeed.

So im assuming its using a diffrent init script?
 
I don't know about the inner workings of directadmin, but my guess would be that's it's just running the init scripts like you normally would. Of course I could be wrong.

When you say that "it fails..." what do you mean exactly? It doesn't stop, it stops but doesn't start? Are you trying to restart the services through DirectAdmin's service monitor? (Or the command line which I assume)
What Operating System and version of DirectAdmin are you running?

And did you make sure that the init script was updated properly for Apache2 since it's different than Apache 1.x?
 
the correct way is

apachectl restart

or

apachectl start (maybe startssl too if you want to run ssl)
 
Back
Top