Author Topic: Apache  (Read 872 times)

mskarl

  • Member
  • **
  • Posts: 77
  • Kudos: 0
    • http://www.fuckmicrosoft.com
Apache
« on: 22 March 2002, 07:46 »
Well I was reading lastnight about Apache. My default install came with Apache installed and I'm trying to figure out how to uninstall or delete it. I want to start off clean and then put a newer version on. I tried just installing the new version but seamed to have problems. Like when I try to start/stop Apache it say's command not found. But I know the apachect1 file is there because I can see it.
Can anyone give me an idea of where to delete files and what script to modify so that I can cleanly remove it? I'm new to the idea of not having to un-install and modify your reg if you really want it gone.
Big brother Microsoft sucks!!! (And my spelling is horrible)

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Apache
« Reply #1 on: 22 March 2002, 08:06 »
It would depend on the distribution that you are running as to how best to remove it. If you are running Mandrake or RedHat (RPM based) what I usually do is first run this command:

rpm -qa | grep apache

which will list all of the apache RPMS.  Then remove the RPMs one at a time by typing:

rpm -e apacheconf
rpm -e apache

Of course you may have some other RPMs installed that are dependent on Apache being installed in which case you will have to remove them first. It is best to remove RPMs in order of dependency so you don't screw up the dependencies, it will not remove the package if there is a dependency issue unless you force it. I recommend against forcing. You can check to see what other packages are dependent on "apache" by typing:

rpmquery --whatrequires apache

You would remove the packages that depend on apache being installed first.

But if your goal is to upgrade you do not have to uninstall apache first.  Just use the "rpm -Uvh apache*.rpm" command from within the directory that contains your new apache RPMS.

If you are not running an RPM based system just let me know what you *are* running and I'll help you with that.

P.S. don't forget to "su" to root first.

[ March 21, 2002: Message edited by: VoidMain ]

Someone please remove this account. Thanks...

mskarl

  • Member
  • **
  • Posts: 77
  • Kudos: 0
    • http://www.fuckmicrosoft.com
Apache
« Reply #2 on: 22 March 2002, 20:06 »
VoidMan,
  I'm sorry I forgot to say I'm using SuSE 7.2.  The Apache server was installed defaultly so I don't think a RPM would exist right?  I found some information on RPM's and had read a little about them before I posted this questions.  I assumed that I couldn't use the unistall function of RPM's because it was defaultly installed when I loaded SuSE right?
Big brother Microsoft sucks!!! (And my spelling is horrible)

Calum

  • Global Moderator
  • Member
  • ***
  • Posts: 7,812
  • Kudos: 1000
    • Calum Carlyle's music
Apache
« Reply #3 on: 22 March 2002, 20:29 »
while that's the case for windows and internet explorer et c, i think it's untrue for linux.
I was looking through what's on my turbolinux and red hat install cds a day or 2 ago, and all the "default" stuff is right there as rpms. all the "default" install does is run rpm, i think (am i right, folks?) so you should be able to use rpm to uninstall it? did you try to do that and fail? if so then it's beyond my limited knowledge i'm afraid [img src= a shrugging emoticon (we need one of those!)]
visit these websites and make yourself happy forever:
It's my music! | My music on MySpace | Integrational Polytheism

mskarl

  • Member
  • **
  • Posts: 77
  • Kudos: 0
    • http://www.fuckmicrosoft.com
Apache
« Reply #4 on: 22 March 2002, 20:56 »
No I haven't tried to unistall it with RPM's yet.  I will when I get home tonight though.  I was just assuming that it wouildn't work so I never tried.
Big brother Microsoft sucks!!! (And my spelling is horrible)

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Apache
« Reply #5 on: 23 March 2002, 05:48 »
Yes, SuSe also uses RPMs. And all files installed on your system (especially anything installed by default) are part of an RPM package. You can see all of the packages that you have installed by typing:

rpm -qa | sort | more

The instructions I gave you earlier should work on SuSe since it's RPM based.  You might also be able to use SuSe's graphical administration tool (yast) to do this but I've never used SuSe so I am making that assumption.

In fact here's a screen shot from SuSe's web site showing yast2 and it happens to show an install/remove software ICON.  I'm sure that's just a graphical RPM manager and you should be able to remove Apache using that method if you are not comfortable using the command line utilities.

http://www.suse.com/us/products/suse_linux/73/images/screen_complete.png

[ March 22, 2002: Message edited by: VoidMain ]

Someone please remove this account. Thanks...

kinky

  • Member
  • **
  • Posts: 72
  • Kudos: 0
    • http://www.linuxchix.org/
Apache
« Reply #6 on: 23 March 2002, 08:23 »
i thought you told me you was running suse 7.3? :)

all the packages installed, like apache are in RPMs and you can just upgrade to the newer versions.. or you can uninstall like mentioned.  the Yast2 add/remove doesnt seem to work that well for me, i use the prompt, or Kpackage in KDE.
Tech Support: "How can I help you?"
Customer: "I want to lodge a complaint."
Tech Support: "What seems to be the problem?"
Customer: "I specifically asked you not to program my Internet with pornography. I want it removed immediately."

mskarl

  • Member
  • **
  • Posts: 77
  • Kudos: 0
    • http://www.fuckmicrosoft.com
Apache
« Reply #7 on: 23 March 2002, 12:27 »
Kinki shit how the hell do you know what I'm running better then what I do.  I posted that at work.  But anyway thanks for the help. :)

I tried to do a rpmquery --whatrequires apache and that didn't work?  Anyone know why?  the error was rpmquery: command not found.

So I just did "rpm -e apache-1.3.20-29" and found some things that depended on it.  

mod_php
comanche
mod_ssl

I didn't know what they were so I went ahead and deleted them.  using the rpm.  It's a test computer anyway right?  

So then I deleted apache  and now I think it worked.

Thanks
Big brother Microsoft sucks!!! (And my spelling is horrible)

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Apache
« Reply #8 on: 23 March 2002, 19:38 »
You removed the packages properly and an equivelant to "rpmquery" would be:

rpm -q -whatrequires apache

[ March 23, 2002: Message edited by: VoidMain ]

Someone please remove this account. Thanks...