-   Linux - Newbie (
-   -   apache upgrade (

mabus92920 01-16-2005 10:39 AM

apache upgrade
I need some help here... I have recently installed apache 2.0.50 on my redhat 9. Now, the server runs perfectly but the thing is my "apachectl" command refers to the old version installed. How do I uninstall my old apache to make the command refer to the new one???

i can run the newly installed apache without any errors, but I have to put in the complete path to apachectl,.. what I want to do is to make the command work like the old version.. where you can just type it anywhere you are..

Berhanie 01-16-2005 09:43 PM

Sounds like you put the executables in a nonstandard place (?) You could remove executable permissions on the old apachectl and add the directory containing the new apachectl to your PATH.

mabus92920 01-16-2005 10:36 PM how do I do that ? can you give me some samples ? I'll have to put that under .bashrc right ?

would it be PATH=/usr/local/apache2/bin/apachectl:$PATH ? ????

Berhanie 01-16-2005 11:26 PM

You have two apachctl files with paths something like /path/to/old/apachectl and /path/to/new/apachectl. First remove execute permissions from the first:

chmod a-x /path/to/old/apachectl
Now to modify your PATH, you should have something similar to the following in whatever startup file you use (e.g. .profile):

export PATH=$PATH:/path/to/new
which in your case means


mabus92920 01-18-2005 06:58 AM

ah ic.. thanks for that man... that really helped me.. I just got one more question? where do I edit those PATH? .barshrc or .bashrc_profile (under home) ?? or the global one??

Berhanie 01-18-2005 11:41 AM

You have to use one of the editors. I use vi, which takes a while to learn to use well. I hear talk of something called nano being recommended as easy. Maybe someone else can say a word about this.

mabus92920 01-18-2005 12:06 PM

yes.. I know abou the editors.. I could use vi or pico on that. What I mean was which file am I supposed to edit???

anyway.. thanks for the replies man.. you really helped me here.

Berhanie 01-18-2005 12:41 PM

You're welcome. No trouble at all. It's probably best not to mess around with the global files, especially in this case where very few people -- probably only root -- will be using the apachectl command. So, consider only editing the local files.

You can put the PATH=$PATH:/usr/... statement in your .bashrc, but since .bashrc isn't read by a login shell, create a .bash_profile containing the following:

source ./.bashrc
The above files should be created under the home directory of each user who needs to use the apachectl command (without having to type its full path).

mabus92920 01-18-2005 08:08 PM

ok..thanks for that man.. Ey, I posted a new thread about ODBC.. I hope you can help me with that.

All times are GMT -5. The time now is 07:44 PM.