Page 1 of 1

kubuntu stop apache from starting automatically

Posted: Sun Apr 15, 2012 8:44 pm
by mister_v
Hi,

How do I stop apache from starting automatically at boot.
On my developing PC, I have apache installed.
But i don't want it to run always,
I don't want to remove it either.

I know you can stop it with

Code: Select all

/etc/init.d/apache2 stop
But I don't want to do it every time, I boot.
I will start Apache manually when I need it.

Anyone know the command on Kubuntu?
Like /sbin/chkconfig on CentOS

Re: kubuntu stop apache from starting automatically

Posted: Sun Apr 15, 2012 10:01 pm
by chris
You can use update-rc.d

Code: Select all

update-rc.d apache2 disable
The remove will completely remove the startup files,
you don't want that.

Code: Select all

update-rc.d -f apache2 remove
Hope this is what you are looking for.