PHP update through virtual

My current php version is 5.1.6. How can I update my php version through virtualmin. If i update using rpm whether virtualmin accept that ? From virtualmin package list I updated and install installed all packages still my php is old how can i update that. My server details given below Operating system CentOS Linux 5.2 Webmin version 1.630 Virtualmin version 4.01 Pro

php -v PHP 5.1.6 (cli) (built: Jul 12 2013 16:57:29) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies



Howdy -- that's correct, PHP 5.1.6 is the primary PHP version available on CentOS 5.

Linux distributions don't change the PHP version once the distribution ships, in order to maintain compatibility of applications running on that server.

Here are two examples of how to get a newer PHP version on CentOS 5 --

You can configure your server to use the bleeding edge repository, which contains a newer PHP version. Instructions for doing that are here:

Alternatively, you can install a second version of PHP using the instructions here:

When I use the second method I got an error. Plz advice!

[root@shs3 ~]# wget -O /etc/yum.repos.d/software_collections_php54.repo --20:51:41-- Resolving Connecting to||:80... connected. HTTP request sent, awaiting response... 200 OK Length: 404 [text/plain] Saving to: `/etc/yum.repos.d/software_collections_php54.repo'

100%[====================================================================================================================>] 404 --.-K/s in 0s

20:51:47 (77.1 MB/s) - `/etc/yum.repos.d/software_collections_php54.repo' saved [404/404]

[root@shs2 ~]# yum install php54 php54-php-cli php54-php-mysql php54-php-gd [Errno 14] HTTP Error 404: Not Found Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: php54. Please verify its path and try again

It appears that the second method is only available if you have a 64 bit system.

If you're using a 32 bit system, there currently aren't 32 bit packages in that repository (sorry, that repository isn't controlled by us).