LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache uninstall (https://www.linuxquestions.org/questions/linux-software-2/apache-uninstall-21146/)

linuxwannabe 05-16-2002 02:39 PM

apache uninstall
 
I am trying to set up apache on my dedicated server. It seems to have a pre-installed version that starts at boot. How do i remove that other version so it don't boot at startup?

sewer_monkey 05-16-2002 03:44 PM

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:
  1. cd /etc/rc3.d
  2. ls | grep httpd
  3. You'll see a line like S15httpd. If it starts with K, then these intructions do not apply.
  4. mv S15httpd K15httpd
  5. 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.

linuxwannabe 05-17-2002 02:19 AM

Thanks a lot! and yeah RH7.2, forgot to mention that in first post. :)


All times are GMT -5. The time now is 06:53 AM.