LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-20-2013, 01:11 PM   #1
Santoshkb
Member
 
Registered: Sep 2007
Posts: 56

Rep: Reputation: 15
Question Need help to upgrade PHP from 5.3.1 to 5.4.17 On centos


Need help to upgrade PHP from 5.3.1 to 5.4.17(stable).



Running centos:
#cat /etc/*release*
CentOS release 4.1 (Final)

#php -v
PHP 5.3.1 /Zend Engine v2.3.0,
--------
Tried to install the 5.4 by below,

[root@myhost ~]#yum install php54w php54w-common php54w-devel php54w-fpm php54w-gd php54w-pdo php54w-pgsql php54w-pecl-memcache php54w-mcrypt php54w-mbstring php54w-xml


Get Error:
No Match for argument: php54w
- - -
No Match for argument: php54w-xml
Nothing to do
 
Old 08-20-2013, 01:27 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you are aware that the whole old centos 4 ( 4.0 to 4.9 ) is unsupported
and the very last old CentOS 4.9 went End Of Life last year

there is NO update/ upgrade

install a supported version of centOS
the current is CentOS 6.4

is 4.1 a typo ?

yum was not backported to the old 4 series until RHEL 4.5

the reason yum will not work is that all the old and now dead centos 4 repos are off line
it moved to the historical archive ( the Vault )
 
Old 08-20-2013, 11:14 PM   #3
Santoshkb
Member
 
Registered: Sep 2007
Posts: 56

Original Poster
Rep: Reputation: 15
Thank you John,

1. I've Centos 4 Release, can i upgrade to php 5.4.17 without changing my centos from current release
2. Anyone knows Remi(http://rpms.famillecollet.com/)? i 'm guessing its repository for latest rpms in older releases(like centos4), please correct
3. Can i Erase below already installed and install the new rpm's.
php-common-5.3.1-1.6_ws
php-cli-5.3.1-1.6_ws
php4-gd-4.3.9-3.29.1_ws
php-5.3.1-1.6_ws
php-gd-5.3.1-1.6_ws
php4-4.3.9-3.29.1_ws
php4-xmlrpc-4.3.9-3.29.1_ws
php-pear-1.4.9-4.el5.1
php-xmlrpc-5.3.1-1.6_ws
 
Old 08-21-2013, 01:55 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
"php-pear-1.4.9-4.el5.1"
that "el5" means it is for RHEL 5 series and not the now unsupported 4
and likely will NOT work on the EOL CentOS 4

if you can NOT upgrade to a supported version that has the last 8 years of SECURITY updates installed
Cent 4.1 became unsupported in October of 2005

then build php from the source


centos no longer supports any of the 4 series
the only supported versions are
The now aging CentOS 5.9
and the current CentOS 6.4


if you look on the page
http://rpms.famillecollet.com/
you will see this
Quote:


EOL Enterprise Linux - No more package update - Upgrade strongly recommended

Enterprise Linux 4
and if you click on the centos 4 link
http://rpms.famillecollet.com/enterprise/4/
all of them are " closed"
and this was the very LAST php update in that old repo
http://rpms.famillecollet.com/enterp...oview/php.html

" php-5.3.10"


think of it this way
you are trying to install a windows 7 version of a program on windows ME / 98
the same applies to rhel/cent 4
centos 4 is like windows 98



the CentOS 4.1 historical archive " The Vault"
has this as the very last update to php
http://vault.centos.org/4.1/updates/i386/RPMS/
php-4.3.9-3.8.i386.rpm
and the very last 4.9 update is
http://vault.centos.org/4.9/updates/i386/RPMS/
"php-4.3.9-3.36.i386.rpm"

the major version of the program will never change over the lifetime of the major version of the OS

Last edited by John VV; 08-21-2013 at 02:04 AM.
 
1 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgrade php to 5.2 on centos 5 Marcelo_Ramone Linux - Server 3 01-27-2013 01:31 PM
Trying to upgrade PHP via yum on CentOS fails. nakins Linux - Newbie 7 05-16-2011 09:04 PM
CentOS 5.5 x64 PHP Upgrade yoachan Linux - Server 3 02-10-2011 11:03 AM
Upgrade from PHP Version 4.3.9 to PHP 5.2 on CentOS nuttynibbles Linux - Software 10 06-15-2010 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:31 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
Open Source Consulting | Domain Registration