Click to See Complete Forum and Search --> : shutting off Apache


darkangel90
09-19-2002, 06:27 PM
How do you shut it off?

Fryguy8
09-19-2002, 06:42 PM
depends on your distro

I know in debian i use:

/etc/init.d/apache stop

darkangel90
09-19-2002, 06:48 PM
I have Mandrake 8.2 :)

monkeyboi
09-19-2002, 08:40 PM
/usr/sbin/apachectl stop

for most distro on default i guess

janet loves bill
09-19-2002, 10:38 PM
As a Security Measure I just un-installed Apache. If you are NOT going to run a server, you don't need it taking up H/D space.

SubWing
09-19-2002, 10:48 PM
you can

whereis apachectl

then

/path/to/apache/apachectl stop

war
09-20-2002, 09:39 AM
Originally posted by SubWing
you can

whereis apachectl

then

/path/to/apache/apachectl stop


ya missed the bin :) hehe

/path/to/apache/bin/apachectl stop

wilcal
09-20-2002, 06:02 PM
I use Webmin to turn it off and on, even
remotely. It works great.

darkangel90
09-20-2002, 11:00 PM
Cool, thxs guys :D

The Elf
09-21-2002, 12:57 AM
Is the goal to prevent this from starting up again when you reboot?

darkangel90
09-21-2002, 04:44 AM
Is there a way to keep it off the next time you reboot,
and turn it on again when your ready to use it?

wilcal
09-21-2002, 11:55 AM
lol, yep, pull the RJ-45 10/100Base-T cable out
of the router. I just had to say that.

The Elf
09-21-2002, 08:03 PM
In RH, I believe your default run level is 5. Or, is that with GUI and the regular run level is 3? Eek! I'm not a Redhat person, however I know enough.. Open up /etc/inittab -- near the top it should tell you what your default run level is. Then, look in /etc/rc.d/rc#.d where # is your default runlevel. You should see a symlink named something like S91apache -- the number may be different, don't worry. Either rename that (I've used NS to signifiy something has been disabled from starting -- if it starts with S it will be used to start a service, if it is NS91apache (I think "No Start") it won't be used. Or delete the symlink all togethor.