For whatever reason (I think it has to do with copyright and/or licensing), the eAccelerator isn't available for Debian stable or testing, which sucks. However, there are 2 ways to deal with this issue: 1) Go dotdeb and 2) compile it yourself. I am a big fan of NOT going dotdeb. It just seems like a big scary upgrade path, so here is a how-to compile eAccelerator from sources:
- Aptitude install yourself a copy of php4-dev. This should get all the needed dependencies.
- Download and decompress the source page of eAccelerator. I put it in /usr/local/src .
- Just like the docs say, do this:
export PHP_PREFIX="/usr"
$PHP_PREFIX/bin/phpize - Now its time to configure, and build. Just like the docs:
./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
If you get a message like "configure: error: no acceptable C compiler found in $PATH" that means you need to get a compiler. Duh. aptitude install build-essential your way to heaven. - Again, like the docs do a make and a make install.
- Finally add this to your php.ini:
extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/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" - If you want to enable the web interface, you probably want to set up an admin username and password for it. You can do that by running php -q eaccelerator_password.php. Copy the file eaccelerator.php somewhere web accessible (and while you're at it, rename the file) and finally, modify your httpd config to ensure that your local IP is the only one that can see it.
- To test it, either check a PHP info page, or try out the web interface. Tada!
Just a few notes. Unless you are using the Zend Encoder, you should disable the Zend Optimizer, this is a suggestion from the eAccelerator dev team.
...für php ist ja der neueste Trend und hilft wohl auch viel für Serendipity. Gute Installationsanleitung bei Isotopp und noch bessere für Debian-User, die php nicht selber bauen wollen bei jonnay. Wie konnte ich nur nicht wissen, dass apt-get install php
Tracked: May 20, 14:21