I was wondering how can I disable the apache2 server from running upon boot up? I can't seem to find an option which disables it to auto start when I turn on the machine.
under the folder /etc/init.d- you will find all the init scripts for different boot up services. like apache2 , networking etc.
depending on which runlevel the computer starts in, different services are started. so from the /etc/init.d/ folder each "service" is linked to one , many , or no run level folders named from rc0.d to rc6.d
to keep things simple there is a tool for removing / adding theese links, hence removing or adding scripts to and from startup.
to remove apache2 simply type:
and all run level folders that have apache2 linked to them will the apache2 service removed
you could simply disable it by:
and then if you would liek to enable it again:
depending on the project i am working on, it is handy to have the service conveniently available, if i wish to re-enable it.