eAccelerator is an open-source PHP accelerator, optimizer, and dynamic content cache (to quote the official website of the project). It can effectively speed-up PHP processing on a server by caching bytecode.
As Wikipedia tells you, several tools of this kind exists . Why choosing eAccelerator in particular? I really have no clue… I’ve never used any of these tools, so I had to start somewhere. That’s as simple as that!
Now, I have a Debian server as a target system. Unfortunately, eAccelerator is
not bundled in Lenny. Browsing the web, I found some personal repositories of
people kindly sharing their deb packages, like
Andrew McMillan
and
schnuckelig.eu
.
The former provides a version of eAccelerator for the
i386
, the latter for the
amd64
architecture. In this how-to, I’ve combined the 2 repositories to give
both 32 bits and 64 bits users a chance to use eAccelerator on Lenny.
Let’s start the installation! First, add the following lines to your
/etc/apt/sources.list
file:
deb https://debian.mcmillan.net.nz/debian lenny awm
deb-src https://debian.mcmillan.net.nz/debian lenny awm
deb https://debian.schnuckelig.eu/ lenny main contrib non-free
To kill annoying warning messages, register the cryptographic fingerprint of each repository:
1$ gpg --keyserver keyring.debian.org --recv-keys 0x8f068012;
2$ gpg --export --armor 0x8f068012 | apt-key add -
3$ wget -O - https://debian.schnuckelig.eu/repository-key.gpg | apt-key add -
Then, update your package database:
1$ aptitude update
And finally, you can install eAccelerator for PHP5 without any pain:
1$ apt-get install php5-eaccelerator
Happy fine-tuning !
1 archived comment
Comments are closed. These were posted on Disqus, and are archived here.
-
HowTo install "eAccelerator" from sources:
Link:
http://voku-online.de/comment-n134.htmlaptitude install build-essential php5-dev cd /usr/src/ wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2 tar xvfj eaccelerator-0.9.5.3.tar.bz2 cd eaccelerator-0.9.5.3 phpize ./configure make make install vim /etc/php5/conf.d/eaccelerator.ini
extension="eaccelerator.so" eaccelerator.shm_size="16" eaccelerator.cache_dir="/var/cache/eaccelerator" eaccelerator.enable="1" eaccelerator.optimizer="1" eaccelerator.check_mtime="1" eaccelerator.debug="0" eaccelerator.filter="" eaccelerator.shm_max="0" eaccelerator.shm_ttl="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_only="0" eaccelerator.compress="1" eaccelerator.compress_level="9"
mkdir -p /var/cache/eaccelerator chmod 0777 /var/cache/eaccelerator /etc/init.d/apache2 restart