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

Status: 
Active

Comments

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:

http://www.virtualmin.com/documentation/system/bleed

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

https://www.virtualmin.com/documentation/web/multiplephp

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

[root@shs3 ~]# wget -O /etc/yum.repos.d/software_collections_php54.repo http://people.redhat.com/rcollet/php54/rhel-php54.repo --20:51:41-- http://people.redhat.com/rcollet/php54/rhel-php54.repo Resolving people.redhat.com... 209.132.183.19 Connecting to people.redhat.com|209.132.183.19|: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 http://people.redhat.com/rcollet/php54/rhel/5/i386/repodata/repomd.xml: [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).