LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2003, 11:09 AM   #1
praefex
Member
 
Registered: Dec 2002
Posts: 32

Rep: Reputation: 15
Post Redhat 9 - How do I uninstall apache + how do I add apache to autostart?


2 prong question:

I installed apache when I setup my redhat 9 machine using the install wizard. since then I built another version of apache and want to use that one. I have tried to uninstall it with rpm -e (or whatever the command is) but it has alot of dependant packages installed so it wont uninstall. So how can I remove the old apache? Additionally, how do I get the new apache that I built into the startup sequence so it starts on boot like the old apache currently does?

Thanks~!
Matt
 
Old 07-28-2003, 09:19 PM   #2
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
To make the new apache run on startup, I'm assuming you used the default directory of /usr/local/apache2.
(I don't think this is the correct way to do things, but it works)

go to /etc/rc.d/init.d/httpd
this is the conf file for the services at startup

scroll down and see

apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}

I simply took those two and made them

apachectl=/usr/local/apache2/bin/apachectl
httpd=/usr/local/apache2/bin/httpd

(I'm not too sure what the HTTPD thing is, but my apache seems to work without it)

Now whenever you go to serviceconf, the httpd service directs to your new Apache installation.

And so far, the first apache install from Redhat hasn't had any effect on my current apache. Have fun
 
Old 07-29-2003, 12:21 PM   #3
praefex
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 15
Yeah looks like that was the ticket! But instead of changing the second line to this:

httpd=/usr/local/apache2/bin/httpd

I changed it to this and it worked:

httpd=${HTTPD=/usr/local/apache2/bin/httpd}

Thanks Jimmy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Autostart gsoft Linux - Software 3 04-15-2005 08:23 PM
apache autostart zchoyt Linux - Software 4 04-15-2005 02:14 PM
apache autostart ciscohead Linux - General 5 12-10-2004 04:17 PM
I want to uninstall my Apache in redhat linux ftlonger Linux - Newbie 1 02-09-2004 10:24 AM
RH8.0 : Need to uninstall Apache 2 and install Apache 1 ericcarlson Linux - Software 1 02-10-2003 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration