Installation of php 5.3 on CentOS 5.x

CentOS ships with php 5.1 by default, at the time of this entry (January 2012). The php 5.3 packages are available in the base repos, but the older version needs to be removed first to avoid any installation conflicts.

This entry does not involve any migration and assumes a new server is being deployed.

0. Login as root

1. Verify current version of php
php -v

2. Remove previously installed php and modules (if applicable)
yum erase php*

3. Install php 5.3 and modules
yum install php53*

4. Verify correct version of php is installed

php -v

3 thoughts on “Installation of php 5.3 on CentOS 5.x”

  1. Can you copy/ paste the entire error, it may be a dependency resolution issue. Did you remove any existing php packages first?

    I'm using babelfish to translate, forgive my poor spanish.

    Puede usted Copia / pega el error completo, puede ser un problema de resolución de la dependencia. ¿Sacó primero los paquetes existentes de php?

    I estoy usando babelfish para traducir, perdona a mi español pobre.

Comments are closed.