how to disable httpd autostart

root403

Verified User
Joined
Jul 31, 2016
Messages
6
I use CentOS 5 with DirectAdmin and use Litespeed to replace Apache for webserver.
So, I remove "httpd=ON" in /usr/local/directadmin/data/admin/services.status
But when my server is attacked ( example DDoS), service lsws was down and DirectAdmin autostart httpd. I don't want that because it will make some errors with my configuaration. How can I prevent DirectAdmin autostart httpd?
Please give me some advises!
 
Please try the following in services.status file:
Code:
litespeed=OFF
 
Oh man,
I do not want DirectAdmin autostart httpd because my configuration conflict with apache. DirectAdmin always autostarts httpd although I remove "httpd=ON".
What's wrong with me?
 
Thank you for your answer!
My server is rather old and i use Custombuild to build httpd, then i install LiteSpeed nomarlly ( choose DirectAdmin when install ). After that I install Litespeed Plugin for DirectAdmin and switch Apache to LiteSpeed.
What wrong with my steps? I can not prevent DirectAdmin autostart httpd whenever Litespeed down :(
 
I'd recommend re-installing LiteSpeed using CustomBuild, that way you'd be sure that configuration is correct. httpd=OFF in services.status shouldn't automatically start apache, and would be a workaround in your case.
 
Back
Top