-Alex- Posted December 21, 2008 Share Posted December 21, 2008 Hi all, I am running a CentOS box with an old version of PHP (5.1.6) - after downloading the source and trying to do ./configure && make && make install, it installs fine but doesn't actually update PHP after an Apache restart. Now by the looks of it, I originally installed PHP via either an RPM or Yum, but if I try to update it using Yum, it can't find an update: [root@conquer01 ~]# yum update php Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: www.jksolutions.nl * updates: www.jksolutions.nl * addons: www.jksolutions.nl * extras: www.jksolutions.nl Setting up Update Process Could not find update match for php No Packages marked for Update [root@conquer01 ~]# If I try to install it, I get this: [root@conquer01 ~]# yum install php Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: www.jksolutions.nl * updates: www.jksolutions.nl * addons: www.jksolutions.nl * extras: www.jksolutions.nl Setting up Install Process Parsing package install arguments Package php - 5.1.6-20.el5_2.1.i386 is already installed. Nothing to do [root@conquer01 ~]# If I erase it and reinstall, it only presents 5.1.6 for me to install: [root@conquer01 ~]# yum erase php Loading "fastestmirror" plugin Setting up Remove Process Loading mirror speeds from cached hostfile * base: www.jksolutions.nl * updates: www.jksolutions.nl * addons: www.jksolutions.nl * extras: www.jksolutions.nl Resolving Dependencies --> Running transaction check ---> Package php.i386 0:5.1.6-20.el5_2.1 set to be erased --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Removing: php i386 5.1.6-20.el5_2.1 installed 2.9 M Transaction Summary ============================================================================= Install 0 Package(s) Update 0 Package(s) Remove 1 Package(s) Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Erasing : php ######################### [1/1] Removed: php.i386 0:5.1.6-20.el5_2.1 Complete! [root@conquer01 ~]# [root@conquer01 ~]# yum install php Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: www.jksolutions.nl * updates: www.jksolutions.nl * addons: www.jksolutions.nl * extras: www.jksolutions.nl Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package php.i386 0:5.1.6-20.el5_2.1 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: php i386 5.1.6-20.el5_2.1 updates 1.1 M Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 1.1 M Is this ok [y/N]: y Downloading Packages: (1/1): php-5.1.6-20.el5_2 100% |=========================| 1.1 MB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: php ######################### [1/1] Installed: php.i386 0:5.1.6-20.el5_2.1 Complete! [root@conquer01 ~]# Any ideas would be greatly appreciated :) Link to comment Share on other sites More sharing options...
Vieira Posted December 24, 2008 Share Posted December 24, 2008 According to distrowatch.com 5.1.6 is the latest version available for CentOS 5.2. However there are unofficial repos which have a rpm for newer versions. Follow this steps to activare the new repository and install php from it. wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm wget http://rpms.famillecollet.com/el5.i386/remi-release-5-4.el5.remi.noarch.rpm rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm yum --enablerepo=remi update php You can check if it was updated by running php -v. Good luck. Link to comment Share on other sites More sharing options...
spike232 Posted December 25, 2008 Share Posted December 25, 2008 CentOS is designed for servers so the versions of all installed programs are set at the initial release, you wont get new versions in updates, only bug fixes. This generally means you can update your server without worrying about breaking anything due to the new version which does something differently Link to comment Share on other sites More sharing options...
Recommended Posts