PDA

View Full Version : [SOLVED] how do i remove apache server from startup



mastablasta
November 17th, 2012, 11:44 PM
how do i remove apache server form startupo (i.e. i don't want it to automaticly start on boot).

i tried this

sudo update-rc.d apache remove

and this

sudo update-rc.d apache2 remove

it doesn't seem to work as i keep getting "it works" page on localhost and also the joomla page (well if i start only mysql service).

i installed LAMP via tasksel.

littlegreiger
November 18th, 2012, 12:22 AM
Try
sudo update-rc.d -f apache2 remove

sandyd
November 18th, 2012, 04:38 AM
I like using chkconfig, but thats only because its easy to remember :)



sudo apt-get install chkconfig
sudo chkconfig apache2 off

mastablasta
November 18th, 2012, 08:26 AM
adding -f parameter worked, thanks. i saw some message about it but i didn't knwo where the parameter gues :-D

i am sure the second method also works, but needs an extra programme to be installed :-P