LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2004, 11:37 PM   #1
jazz23
LQ Newbie
 
Registered: Mar 2004
Location: Brisbane, Australia
Posts: 3

Rep: Reputation: 0
Post RH9 Upgrade of Apache 2.0.40 to 2.0.45


I am another newbie to Linux.

What I am trying to achieve is the following :-

Setting up a new Linux Web Server to run SAS. Part of the requirements was to have Apache 2.0.45 installed.

I performed a fresh install of Redhat 9 with the default 2.0.40 version of apache.

I have downloaded 2.0.45 from the SAS website and have complied and installed. This version work as when I run the /usr/local/apache2/binapachectl start command I can go into the Web Browser and verify its all working.

However, when I run httpd -v I get 2.0.40 as the apache service. I am guessing because a script file located in /etc/rc.d/intit.d/httpd run each time.

What I want to know is, how can I get 2.0.45 to be the apache version I want to run if the server is ever rebooted??

Any help or suggestion would be appreciated.
 
Old 03-25-2004, 01:19 AM   #2
pingswept
Member
 
Registered: May 2003
Location: Cambridge, MA
Distribution: SuSE, RedHat, and OpenBSD
Posts: 116

Rep: Reputation: 15
You're starting the wrong version because either you're using the wrong script, or the right script hasn't been installed. Use:

which apachectl

to figure out which apachectl you're running. Then look inside that file. You should see something like this (mine is from 1.3, not 2.0):

# the path to your httpd binary, including options if necessary
HTTPD=/usr/sbin/httpd

Update it to be the 2.0.45 version, assuming you know where you installled it.
 
Old 03-25-2004, 01:27 AM   #3
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
This is usually what I do to get my Redhat box up to date with bleeding edge versions of softwares, while keeping them configured "Redhat way":

I grab the source RPM, extract the .spec file from it, modify it a little bit(at least reflect the version change), and use it to compile RPMs from my new package.

Firstly remove the instance you installed in /usr/local/apache, put your new source, httpd-2.0.45.tar.gz, in /usr/src/redhat/SOURCES, and put the spec file in /usr/src/redhat/SPECS (not required but this is where source RPMs puts them). For your convenience I'll give you mine: http://demonbane.org/httpd.spec
Then you just execute "rpmbuild -bb httpd.spec".

After its finished you'll find bunch of RPMs in /usr/src/redhat/RPMS/i386, which you can use to update your system.

On a side note the cflags rpmbuild uses are in /usr/lib/rpm/redhat/rpmrc, feel free to modify it.
 
Old 03-25-2004, 07:01 PM   #4
jazz23
LQ Newbie
 
Registered: Mar 2004
Location: Brisbane, Australia
Posts: 3

Original Poster
Rep: Reputation: 0
Demonbane - so with what you have done, hve you still got 2.0.40 on the machine or did you remove that version?
 
Old 03-25-2004, 10:58 PM   #5
jazz23
LQ Newbie
 
Registered: Mar 2004
Location: Brisbane, Australia
Posts: 3

Original Poster
Rep: Reputation: 0
Update!

Problem solved . . I added the /usr/local/apache2/apachectl start line to /etc/rc.d/rc.local

Thanks for all the posts
 
  


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
Should I upgrade RH9 to FC3? fturcic Fedora 18 08-09-2005 01:50 AM
KDE upgrade on RH9.0. Help!!!! ducvanduong Linux - Software 2 03-16-2004 11:35 AM
upgrade RH8 to RH9 - upgrade or clean install PAB Linux - General 0 03-13-2004 04:55 PM
Upgrade to RH9 inon^ Red Hat 8 10-16-2003 12:10 PM
RH9 upgrade Greg21 Linux - General 2 06-04-2003 12:01 AM


All times are GMT -5. The time now is 10:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration