| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
| eaccelerator [Le 09/07/2012, 15:35] – D'autres accélérateur > D'autres accélérateurs Canigou 66 | eaccelerator [Le 31/05/2018, 18:21] (Version actuelle) – obsolète L'Africain |
|---|
| {{tag>intrepid serveur PHP vétuste}} | |
| ---- | |
| |
| ====== eAccelerator ====== | |
| |
| [[wp>eAccelerator|eAccelerator]] est le meilleur accélérateur de scripts [[:php|PHP]], selon un nombre important de benchmark((Voir les pages suivantes avec divers benchmark : | |
| * http://2bits.com/articles/benchmarking-drupal-with-php-op-code-caches-apc-eaccelerator-and-xcache-compared.html | |
| * http://2bits.com/articles/benchmarking-apc-vs-eaccelerator-using-drupal.html | |
| * http://itst.net/654-php-on-fire-three-opcode-caches-compared | |
| )). | |
| |
| Vraiment indispensable si on veut jouer dans la cour des grands. | |
| |
| <note warning> | |
| La version d'Ubuntu 8.10 **Intrepid** Ibex n'est plus supportée depuis avril 2010 | |
| et la dernière version d'**eAccelerator** est la Release-0.9.6.1 du 31/05/2010 :!: | |
| |
| Il convient donc de procéder à une [[https://eaccelerator.net/wiki/InstallFromSource|installation à partir des sources]] (en). Un tutoriel relativement récent et en français est cependant disponible sur [[http://wiki.goldzoneweb.info/installation_et_configuration_du_systeme_de_cache_eaccelerator|cette page]]. | |
| </note> | |
| |
| ===== Installation ===== | |
| |
| Le paquet .deb pour ubuntu 8.10 Intrepid : | |
| * [[http://www.gazup.com/EOLOY-php5-eaccelerator_0.9.5.2-0intrepid_i386.deb-download-mirrors|php5-eaccelerator_0.9.5.2-0intrepid_i386.deb]] | |
| |
| Ensuite, faire : | |
| <code>gksudo gedit /etc/php5/apache2/php.ini</code> | |
| |
| et mettre à la fin, avec une attention portée sur le répertoire des extensions php5, qui peut différer, vérifiez donc "/usr/lib/php5/" : | |
| |
| <code>zend_extension="/usr/lib/php5/20060613+lfs/eaccelerator.so" | |
| eaccelerator.shm_size="0" | |
| eaccelerator.cache_dir="/var/local/eaccelerator" | |
| eaccelerator.enable="1" | |
| eaccelerator.optimizer="1" | |
| eaccelerator.check_mtime="1" | |
| eaccelerator.debug="0" | |
| eaccelerator.shm_only="0" | |
| eaccelerator.compress="1" | |
| eaccelerator.compress_level="9" | |
| eaccelerator.allowed_admin_path="/var/www/apache2-default/control.php"</code> | |
| |
| Et faire ensuite : | |
| |
| <code>mkdir /var/local/eaccelerator | |
| chown root:www-data /var/local/eaccelerator | |
| chmod u=rwx,g=rwx,o= /var/local/eaccelerator | |
| apache2ctl configtest | |
| /etc/init.d/apache2 restart</code> | |
| |
| ===== Liens externes ===== | |
| |
| * Site officiel : [[https://eaccelerator.net/]] | |
| * [[http://wiki.goldzoneweb.info/installation_et_configuration_du_systeme_de_cache_eaccelerator|Installation et configuration du système de cache eAccelerator]] | |
| * [[http://docs.moodle.org/22/en/Installing_eAccelerator_In_Ubuntu_Server|Installing eAccelerator In Ubuntu Server]] (en) | |
| * [[http://www.debian-tutorials.com/web/install-and-integrate-eaccelerator-into-php5-on-debian-squeeze|Install and Integrate eAccelerator into PHP5 on Debian Squeeze]] (en) | |
| |
| ===== Voir aussi ===== | |
| |
| D'autres accélérateurs de scripts [[:php|PHP]] ont une page dédiée sur le wiki : | |
| |
| * [[:php-apc|APC]] (Alternative PHP Cache) | |
| * [[:xcache|XCache]] | |
| |