LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-02-2002, 08:27 AM   #1
kaidoggy
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat Linux 7.1
Posts: 18

Rep: Reputation: 0
Upgrading Apache


I am running red hat 7.2 and would like to upgrade apache from 1.3.22 to 1.3.26. I was only able to find the binaries and when I configure and install it, it overwrites everything and creates a brand new httpd.conf file. Is there anyway to upgrade and keep my existing conf file?

Thanks.
 
Old 08-02-2002, 08:31 AM   #2
dai
Member
 
Registered: May 2002
Location: Wales
Distribution: Slack 8.1, Gentoo 1.3a, Red Hat 7.3, Red Hat 7.2, Manrake 8.2
Posts: 328

Rep: Reputation: 30
Have u tried checking www.apache.org or going to the red hat website.

Id like to know if rpm's etc are available coz im running rh 7.2 also

Actually I might have the Apache Rpm's on one of the cover disks off a Linux magazine I buy each month!!!!!

If you cant find them try getting this months Linux Mag as Im quite sure that one of the newer versions of Apache is on the cd in RPM format.

Having these Rpm's should allow you to do an upgrade


Last edited by dai; 08-02-2002 at 08:33 AM.
 
Old 08-02-2002, 10:08 AM   #3
kaidoggy
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat Linux 7.1
Posts: 18

Original Poster
Rep: Reputation: 0
I searched high and low for the RPM but the only one I could find was 1.3.23 not 1.3.26. I was able to find the version I wanted , but it said it was for PLD Linux and I am running red hat. Will that make a difference?

Thanks
 
Old 08-02-2002, 10:36 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
It doesn't matter as long as architecture matches up
 
Old 08-02-2002, 10:35 PM   #5
Jazm
LQ Newbie
 
Registered: Apr 2002
Distribution: RH & SuSE
Posts: 17

Rep: Reputation: 0
If you're going to compile Apache from source you can save your current config file by using the --sysconfdir= option during the configure stage to put the default one in a new place and update the startup script . You should also use --prefix= to specify a new location for the binaries.
./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd


Or just make a backup copy of your conf file before doing the compile.
 
Old 08-06-2002, 10:15 AM   #6
kaidoggy
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat Linux 7.1
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks Jazm!
I did it the way you suggested and it seemed to install without a hitch. I restarted the daemon but the server is still using the old version of apache. I installed the new version in the same location as the old version. What did I miss??

Thanks.
 
Old 08-06-2002, 11:09 AM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Quote:
Originally posted by kaidoggy
What did I miss??

Thanks.
Startup scripts, I've explained it in a coupole of posts here http://www.linuxquestions.org/questi...859#post118859
 
Old 08-06-2002, 01:16 PM   #8
Ionized
Member
 
Registered: Jul 2002
Location: Chicago Suburbs
Distribution: Slackware 8.0
Posts: 51

Rep: Reputation: 15
Yeah, either do a 'ps aux' and look at the apache binary that's running (maybe that's the old version) or look through your startup files to make sure it's starting the new apache binary.

When compiling from source and specifying a different sysconfig directory, doesn't this make apache look there when it looks for config files? He was going to install the files there temporarily just to keep the old config files in a different directory....will this work?
 
Old 08-06-2002, 11:12 PM   #9
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Also you needa start it with /usr/local/apache/bin/apachectl start instead
 
Old 08-07-2002, 11:05 AM   #10
kaidoggy
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat Linux 7.1
Posts: 18

Original Poster
Rep: Reputation: 0
S##httpd was already in rc3.d but I changed the symlink anyway and it still doesn't work. The daemon is running but it is using the old version instead of the one I just installed.
 
Old 08-07-2002, 11:17 AM   #11
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Where this S##httpd points to?
 
Old 08-07-2002, 11:57 AM   #12
kaidoggy
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat Linux 7.1
Posts: 18

Original Poster
Rep: Reputation: 0
S##httpd -> /etc/rc.d/init.d/httpd
That's what was there before too.

I'm sure I am missing the obvious. urgh...
 
Old 08-07-2002, 11:59 AM   #13
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
so go ahead and change it to the right apache
ln -sf /usr/local/apache/bin/apachectl S##httpd
I assume you are creating the symlinki from within
/etc/rc.d/rc?.d or /etc/rc?.d/

Last edited by neo77777; 08-07-2002 at 12:03 PM.
 
Old 08-07-2002, 02:04 PM   #14
kaidoggy
LQ Newbie
 
Registered: Jan 2002
Distribution: Red Hat Linux 7.1
Posts: 18

Original Poster
Rep: Reputation: 0
Unfortunately, that didn't work either. I did it from within rc3.d and then typed /usr/local/apache/bin/apachectl restart

This may be totally normal but when I type /usr/local/apache/bin/apachectl start it says httpd started, which is fine. If I type /usr/local/apache/bin/apachectl stop it says httpd (no pid file) not running. If it's running why can't I stop it? Something has to be running because I have webpages that work.
 
Old 08-07-2002, 03:02 PM   #15
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Hmm, it works for me, and for testing purposes I set it up to run on runlevel3 (this is where I boot), and I make the K symlinks in /etc/rc.d/rc0.d and /etc/rc.d/rc6.d for a webserver to shutdown gracefully on system shutdown/reboot.
 
  


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
Upgrading (Apache) emptystrings Slackware 7 11-11-2004 12:32 AM
Upgrading from Apache 1.3 to 2.0 kaplan71 Linux - Software 1 08-09-2004 04:20 PM
Upgrading Apache -> 2.x ipren Slackware 2 05-24-2004 03:14 PM
Upgrading Apache sveioen Slackware 3 05-20-2004 07:28 PM
upgrading apache vincee Linux - Networking 1 09-09-2002 03:43 PM


All times are GMT -5. The time now is 08:43 PM.

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