Thursday, January 12, 2012

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 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Ya Lo Hice y he aquí CUANDO ESTA Buscando me manda Este Mensaje en la terminal

    the program package-cleanup is found in the yum-utils package

    y ,no se descargar

    ReplyDelete
    Replies
    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.

      Espanol:
      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.

      Delete