LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 11-27-2006, 08:58 PM   #1
ltbaggz
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Rep: Reputation: 0
update redhat enterprise to php 5.0.2


I am trying to update the default linux installation of php 4.3.9 to php 5.0.2. ive tried to use:

php -i | grep Configure

to get configuration options but since linux installed when the OS was installed there is all kinds of stuff in there and i can not make sense of it. I currently have the new version of php in /usr/src/php-5.0.2 but cannot get ./configure to work. any help would be greatly appreciated.

thanks
drew
 
Old 11-28-2006, 06:50 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Errr.... anything wrong with getting the source rpm file from Fedora core and building the binary rpm packages;

http://download.fedora.redhat.com/pu...4-10.5.src.rpm
http://download.fedora.redhat.com/pu....6-1.2.src.rpm

Or using the php 5 src.rpm from CentOS;
http://isoredirect.centos.org/centos...centos.src.rpm

Example;
rpmbuild --recompile --rebuild --define 'dist .el4' php-5.1.6-1.2.src.rpm

.
 
Old 11-29-2006, 07:43 AM   #3
ltbaggz
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
well the problem is that i am not real familiar with linux. i did download the fedora version of php5 but had difficulties installing it. i am not in front of the computer right now but will the above command install it correctly?
then how do i link it to apache so i can use php.(how can i find the directory that apache is installed in? is it etc/httpd?

Do i need to unistall the current version on my machine? if so how can i be sure that everything has been removed. is there a command?

I appreciate the help and apologize for my lack of knowledge, im learning!

Drew
 
Old 11-29-2006, 08:43 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
First it is not a good idea to attempt installing binary rpm packages built for another distribution. Rebuilding from the soucre works fairly well, but toy may have to edit the spec file and/or install other packages some that also need to be built from source.

The rpmbuild command will build the binary rpm packages for installation. Review the output at the end, you should see something like (if successfully built) for example;

Wrote: /home/lenard/rpmbuild/RPMS/x86_64/php-5.1.6-1.2.1.centos.x86_64.rpm

No need to un-install the older version just install the new php packages by typing something like; rpm -Fvh php*.rpm

You can verify with; rpm -qa 'php*'

As far as setting up php with apache review the manuals for RHEL 4, the best way to learn; http://www.redhat.com/docs/manuals/enterprise/

http://www.redhat.com/docs/manuals/e...ual/ref-guide/
 
  


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
update redhat enterprise to php 5.0.2 ltbaggz Linux - Software 1 11-27-2006 11:15 PM
Redhat Enterprise.Linux.ES.V4.0.UPDATE.4 os a fresh installation manu007 Red Hat 1 09-08-2006 05:10 AM
Best Update Method for Barebone Redhat Enterprise Demo's rwilkers Red Hat 3 12-09-2005 12:51 PM
RedHat Enterprise. How to go from V3 Update 1 to V3 Update 3? vectorz2 Linux - Software 3 05-07-2005 02:50 AM
Has anyone tried update the kernel to 2.6.x in Redhat Enterprise Linux? burrough Linux - Enterprise 0 10-17-2004 11:31 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration