LinuxQuestions.org
Help answer threads with 0 replies.
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 12-18-2009, 01:22 PM   #1
ceci2
Member
 
Registered: Dec 2004
Posts: 40

Rep: Reputation: 15
PHP Upgrade on RHL


I am planning to upgrade our current PHP 5.1.6 (cli) Version to PHP 5.2.4 or later on a RHL (2.6.18-53.el5).

Can I upgrade php by just doing: # yum update php ?


ADDITIONAL INFORMATION
$ uname -a
Linux 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:02 EDT 2007 i686 i686 i386 GNU/Linux

$ php -v
PHP 5.1.6 (cli) (built: Feb 26 2009 07:01:10)

$ rpm -qa | grep php
php-common-5.1.6-23.2.el5_3
php-gd-5.1.6-23.2.el5_3
php-mbstring-5.1.6-23.2.el5_3
php-mysql-5.1.6-23.2.el5_3
php-ldap-5.1.6-23.2.el5_3
php-bcmath-5.1.6-23.2.el5_3
php-pdo-5.1.6-23.2.el5_3
php-cli-5.1.6-23.2.el5_3
php-xmlrpc-5.1.6-23.2.el5_3
php-ncurses-5.1.6-23.2.el5_3
php-5.1.6-23.2.el5_3
php-xml-5.1.6-23.2.el5_3


I am a bit cautious since it's a live server and I've never done a PHP Upgrade. If something goes wrong, I wouldn't know how to roll it back if things do not work as expected.

Thank you.

C

>>>>>>> POST UPDATE <<<<<<<
I ran the command and these are the results (doesn't see any updates):
$ sudo yum update php
Loaded plugins: rhnplugin, security
Skipping security plugin, no data
Setting up Update Process
No Packages marked for Update

$ php -v
PHP 5.1.6 (cli) (built: Feb 26 2009 07:01:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Last edited by ceci2; 12-18-2009 at 01:52 PM. Reason: forgot to add important item.
 
Old 12-18-2009, 02:00 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,580
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
The way RedHat does things is they come out with a version based on specific version of the project (PHP) then they maintain it for bug and security fixes so they're version usually has that base version followed by the RedHat version. So php-5.1.6 is the PHP base version. However, the 23.2.el5_3 is RedHat's modification of that base version.

If you want support from RedHat you should use the version they have in repository.

If you really need a higher version then you'd have to download the source from PHP project site and compile your own (recommended) -OR- see if you can find it compiled in the RedHat extras at Fedora project site or possibly by someone like Dag Wieers at his rpm site.

If you're doing this because of a security audit then you should explain the way packages are done with RHEL in your audit response. We just went through that here. From RedHat's site you can get detail about the specific bugs and security issues addressed in their version. I have that detail if you need it since I had to email it to our security admin when it came up here.

Last edited by MensaWater; 12-18-2009 at 02:02 PM.
 
1 members found this post helpful.
Old 12-18-2009, 03:37 PM   #3
ceci2
Member
 
Registered: Dec 2004
Posts: 40

Original Poster
Rep: Reputation: 15
do you know the URL to find a compiled version?
I know there is a site but know where the url.

thanks

C
 
  


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
PHP5 Upgrade Error: Missing Dependency: php = 4.3.x is needed by package php-pear vsystems Linux - Server 1 05-02-2007 08:17 AM
Upgrade Apache from 2.0.40 to 2.0.50 on RHL 9 this213 Linux - Software 1 02-22-2005 11:14 PM
upgrade from RHL 8 To fedora core 1 agm4shell Linux - Newbie 3 11-26-2004 03:38 PM
RHL 6.2 compat libs for RHL 9? cw3bst3r Programming 0 01-30-2004 10:41 AM
Upgrade from RHL 8.0 to 9.0 no nautilus !!! oldgit Linux - Distributions 3 06-30-2003 04:28 PM


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