Home > Altro > Installare php 5.2.x su Centos 5.5

Installare php 5.2.x su Centos 5.5

La prima cosa da fare è verificare quali pacchetti sono installati sul server:

# rpm -qa |grep php
psa-php5-configurator-1.6.0-cos5.build109101020.08
php-common-5.1.6-27.el5_5.3
php-pdo-5.1.6-27.el5_5.3
php-5.1.6-27.el5_5.3
php-gd-5.1.6-27.el5_5.3
php-imap-5.1.6-27.el5_5.3
php-mbstring-5.1.6-27.el5_5.3
php-cli-5.1.6-27.el5_5.3
php-mysql-5.1.6-27.el5_5.3
php-xml-5.1.6-27.el5_5.3

Fatto questo possiamo creare un repository dedicato per i nostri pacchetti rpm più aggiornati:

vi /etc/yum.repos.d/CentOS-Testing.repo

[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
includepkgs=php*

a questo punto non ci resta che aggiornare il php:

# yum update

infine:

/etc/init.d/httpd restart

Verificate che tutti i pacchetti precedentemente installati siano stati aggiornati.

Ovviamente basta sostituire dentro il file:

/etc/yum.repos.d/CentOS-Testing.repo
includepkgs=php*

con qualsiasi altra espressione per aggiornare il relativo pacchetto, se volete aggiornare tutti i pacchetti basta lasciare solo *

Categorie:Altro Tag:
  1. Nessun commento ancora...
  1. Nessun trackback ancora...