RÉCUPERATION ET AJOUT DES DÉPOT IUS
[root@machine ~]# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1-4.ius.el5.noarch.rpm
[root@machine ~]# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/epel-release-1-1.ius.el5.noarch.rpm
[root@machine ~]# rpm -Uvh ius-release*.rpm epel-release*.rpmVERIF DES PACKAGES PRESENTS
[root@machine ~]# rpm -qa | grep php
php-mbstring-5.1.6-27.el5
php-mysql-5.1.6-27.el5
php-ldap-5.1.6-27.el5
php-eaccelerator-0.9.5.2-2.el5
php-5.1.6-27.el5
php-xml-5.1.6-27.el5
php-common-5.1.6-27.el5
php-pdo-5.1.6-27.el5
php-gd-5.1.6-27.el5
php-cli-5.1.6-27.el5DÉSINSTALLATION DES ANCIENS PACKAGES RHEL /INSTALLATION DES PACKAGES IUS
[root@machine ~]# yum shell
Loaded plugins: rhnplugin, security
Setting up Yum Shell
> remove php-mbstring php-mysql php-ldap php php-xml php-common php-pdo php-gd php-cli
Setting up Remove Process
> install php52-common php52-mbstring php52-mysql php52-ldap php52 php52-xml php52-pdo php52-gd php52-cli
[...]
Setting up Install Process
> transaction solve
[...]
> transaction run
[...]
Finished Transaction
> exit
Leaving ShellRÉINSTALLATION EACCELERATOR [1]
[root@machine ~]# yum install autoconf automake libtool m4 php52-devel
[root@machine ~]# mkdir eaccelerator
[root@machine ~]# cd eaccelerator/
[root@machine ~]# wget http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6.tar.bz2
[root@machine ~]# tar xjf eaccelerator-0.9.6.tar.bz2
[root@machine ~]# cd eaccelerator-0.9.6
[root@machine eaccelerator-0.9.6]# phpize
[root@machine eaccelerator-0.9.6]# ./configure
[root@machine eaccelerator-0.9.6]# make
[root@machine eaccelerator-0.9.6]# make test
[root@machine eaccelerator-0.9.6]# make install
>CRÉATION FICHIER CONFIG DE L’EXTENSION
[root@machine eaccelerator-0.9.6]# vi /etc/php.d/eaccelerator.ini ; Enable eAccelerator extension module
zend_extension = /usr/lib/php/modules/eaccelerator.so
; Options for the eAccelerator module
eaccelerator.cache_dir ="/tmp/eaccelerator"
; eaccelerator.shm_size = 0
eaccelerator.shm_size="32"
eaccelerator.enable = 1
eaccelerator.optimizer = 1
eaccelerator.check_mtime = 1
eaccelerator.filter = ""
eaccelerator.shm_max = 0
eaccelerator.shm_ttl = "1800"
eaccelerator.shm_prune_period = 0
eaccelerator.shm_only = 0
eaccelerator.compress = 1
eaccelerator.compress_level = 9
eaccelerator.keys = "shm_and_disk"
eaccelerator.sessions = "shm_and_disk"
eaccelerator.content = "shm_and_disk"
eaccelerator.debug = 0
>CRÉATION RÉPERTOIRE CACHE
[root@machine eaccelerator-0.9.6]# mkdir /tmp/eaccelerator
[root@machine eaccelerator-0.9.6]# chmod 0777 /tmp/eacceleratorVÉRIFICATION DE LA PRISE EN COMPTE D’EACCELERATOR ET VERSION PHP
[root@rad[root@machine eaccelerator-0.9.6]# php -v
PHP 5.2.13 (cli) (built: Apr 6 2010 18:21:14)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v0.9.6, Copyright (c) 2004-2010 eAccelerator, by eAcceleratorREDEMARRAGE DU SERVEUR WEB
[root@machine eaccelerator-0.9.6]# /etc/init.d/httpd restart
Tags
Infos