LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Redhat 9 - How do I uninstall apache + how do I add apache to autostart? (https://www.linuxquestions.org/questions/linux-software-2/redhat-9-how-do-i-uninstall-apache-how-do-i-add-apache-to-autostart-76628/)

praefex 07-28-2003 12:09 PM

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? :Pengy:

Thanks~!
Matt

jqcaducifer 07-28-2003 10:19 PM

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

praefex 07-29-2003 01:21 PM

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


All times are GMT -5. The time now is 02:33 AM.