LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Need help to upgrade PHP from 5.3.1 to 5.4.17 On centos (https://www.linuxquestions.org/questions/linux-general-1/need-help-to-upgrade-php-from-5-3-1-to-5-4-17-on-centos-4175474036/)

Santoshkb 08-20-2013 01:11 PM

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

John VV 08-20-2013 01:27 PM

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 )

Santoshkb 08-20-2013 11:14 PM

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

John VV 08-21-2013 01:55 AM

"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


All times are GMT -5. The time now is 10:40 AM.