0

I install apache2 from reps. But I need not to use it every day, only if I works on some application. How can I stop auto running of it and run it manually if I need?

My OS is Ubuntu 11.04

RiaD
  • 103
  • 4

2 Answers2

1

Install sysv-rc-conf, run it as root, and uncheck the boxes next to the apache2 service.

womble
  • 96,255
  • 29
  • 175
  • 230
0

You can use update-rc.d utility such as:

sudo update-rc.d -f apache2 remove

To start it manually, you can use:

sudo /etc/init.d/apache2 start
Khaled
  • 36,533
  • 8
  • 72
  • 99