OK, assuming you're using RedHat 7.x:
rpm -ev apache
will uninstall the web server (as in wipe it off your hard drive). You need to run this command as root.
If you are simply want to prevent it from starting up at boottime by default, log in as root and do the following:
- cd /etc/rc3.d
- ls | grep httpd
- You'll see a line like S15httpd. If it starts with K, then these intructions do not apply.
- mv S15httpd K15httpd
- Repeat this procedure, starting from step 1, except you need to cd to /etc/rc5.d
Please note that the number 15 above (in S15httpd and K15httpd) may be different on your system.