Page 1 of 1

Help CentOS 5 Upgrade PHP to PHP 5.2.x

Posted: 2016/05/11 18:56:56
by Luffy_Senpai
I tried this link but it doesn't work

Code: Select all

https://wiki.centos.org/HowTos/PHP_5.1_To_5.2
when i tried to yup updates i get this error.
Image

here is my centrOS-testing.repo.

Code: Select all

# CentOS-Testing:
# !!!! CAUTION !!!!
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.
# These packages build and install, but are waiting for feedback from testers as to
# functionality and stability. Packages in this repository will come and go during the
# development period, so it should not be left enabled or used on production systems without due
# consideration.
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*

Re: Help CentOS 5 Upgrade PHP to PHP 5.2.x

Posted: 2016/05/12 08:55:21
by remirepo
PHP 5.3.3 is available in standard repo (php53* packages)

No other repo provides 5.2 which is EOL an unmaintained.

Re: Help CentOS 5 Upgrade PHP to PHP 5.2.x

Posted: 2016/05/12 10:07:42
by TrevorH
The php 5.2 packages were deliberately withdrawn from the CentOS "testing" repo because they were too old and had too many security vulnerabilities built-in! You should not use 5.2 under any circumstances.

Re: Help CentOS 5 Upgrade PHP to PHP 5.2.x

Posted: 2016/05/15 18:21:51
by Luffy_Senpai
remirepo wrote:PHP 5.3.3 is available in standard repo (php53* packages)

No other repo provides 5.2 which is EOL an unmaintained.
thanks for the response, however the reason why I need a lower version of the php is because, I have an old system and this one is running on Microsoft SQL server and according to the php site mssql is deprecated on php 5.3.x,. that' why if I upgraded it to the later version of the php and use Microsoft SQL Server Driver for PHP(sqlsrv) I'm afraid that it doesn't work on linux server, because based on the php site sqlsrv only works running on windows server.

can you give me the link to upgrade the version to PHP 5.3.3? or it is possible to manually install php from their website itself?
Sorry I don't enough that much knowledge on a linux server.

Re: Help CentOS 5 Upgrade PHP to PHP 5.2.x

Posted: 2016/05/16 05:56:06
by remirepo
To update to 5.3, you need to remove add "php-*" package and install "php53-*" packages instead.

php53-mssql is available in EPEL repository.