LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-25-2003, 10:37 PM   #1
Djelibeybi
LQ Newbie
 
Registered: May 2003
Posts: 3

Rep: Reputation: 0
Question Upgrading Apache/PHP on Redhat 9


Hey, please help a true n00b: I installed Redhat Linux 9 using my Dell ServerAssistant CDs and its up and running perfectly. Except, its running old versions of Apache (2.0.40) and PHP (4.2.2). Up2date doesn't seem to upgrade them, so I assume I need to upgrade them from source.

I would like to know if there is a HOW-TO about how to maintain the configuration of Apache/PHP and just upgrade it in situ? Any pointers you can give me would be appreciated!

Thanks.
 
Old 08-26-2003, 05:24 AM   #2
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
1 - Download the latest version of apache, extract it , then run ./configure, make and make install.
2 - Download the latest version of php, then run ./configure --with-apxs2=/usr/local/apache2/bin/apxs , make and make install.
You can add of course other options to the configure script.
Your old apache configuration files are located in /etc, and the new ones are located in /usr/local/apache2/conf. Edit the new httpd.conf as needed.
3- Remove the old apache and php.
4-/usr/local/apache2/bin/apachectl start to start apache.
regards,
HTH.
 
Old 08-27-2003, 06:22 AM   #3
stardotstar
Member
 
Registered: Nov 2002
Location: /au/qld/bne/4157
Distribution: Gentoo mactel-linux
Posts: 238

Rep: Reputation: 30
Guys I am in this situation. I have enough knowledge to be dangerous and am trying to setup my dev platform for a website using Lin/Apache/MySQL instead of Win/IIS/MySQL and tend to use the command line rather than the package managers. Problem is I installed Apache 1.3x in a vague attempt to get a fresh installation but Apache 2 is installed and now I don't know what is running from where. Apparently its apache 2 and php is working with MySQL available but none of the MySQL functions work. and apxs is not found anywhere but listed in the php build list etc - I'm lost.

I want to blow away all apaches then start again with only one version of PHP and Apache.

Where is everything??? ver 2 seems to be in /usr/sbin and /var/www and 1.3 is in its own place in /usr/local and god knows what is configured where in /etc/...

I am tempted to start again with a new Linux install and not select Apache on install but there must be a simple wya to get rid of them all!
 
Old 07-06-2004, 01:09 PM   #4
CrazyMAzeY
LQ Newbie
 
Registered: Jun 2004
Location: UK
Posts: 16

Rep: Reputation: 0
Quote:
Originally posted by hfawzy
1 - Download the latest version of apache, extract it , then run ./configure, make and make install.
2 - Download the latest version of php, then run ./configure --with-apxs2=/usr/local/apache2/bin/apxs , make and make install.
You can add of course other options to the configure script.
Your old apache configuration files are located in /etc, and the new ones are located in /usr/local/apache2/conf. Edit the new httpd.conf as needed.
3- Remove the old apache and php.
4-/usr/local/apache2/bin/apachectl start to start apache.
regards,
HTH.
how do you remove the old apache and php.
and wheres the best place to d/l the rpms or source for apache and php ?
do you mean source or rpms
 
  


Reply



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
Problems after upgrading php and apache :( sys7em Slackware 3 09-08-2005 12:46 AM
upgrading php with gd on a redhat 9 Goofyhmg Linux - Software 0 08-22-2005 06:57 PM
Upgrading PHP without disrupting stable Apache 2.0 install Jake_B Linux - General 7 07-07-2004 09:39 AM
Upgrading Apache MySQL PHP on RH9 TheLimey Linux - Newbie 0 05-22-2004 03:51 PM
upgrading apache & php on RH9 FunkFlex Linux - Software 0 04-28-2003 07:49 AM

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

All times are GMT -5. The time now is 05:07 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