Tips:Installing eAccelerator to Debian system
From VHCP Support
eAccelerator is a further development from mmcache PHP Accelerator & Encoder. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated.
[edit]
Installing
First you need to download php4-dev package which we need to compile eAccelerator.
apt-get install php4-dev
Download eAccelerator source package to /root folder and extract it
tar jxvf eaccelerator-xxx.tar.bz2 cd eaccelerator-xxx
Running phpize creates config file which is needed in make.
/usr/bin/phpize ./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config make make install
Edit file /etc/php4/apache2/php.ini and add following lines:
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"
Create temporary folder to eAccelerator
mkdir /tmp/eaccelerator chmod 0777 /tmp/eaccelerator
Reload apache and you're finished!
/etc/init.d/apache2 reload
[edit]
Testing installation
Create test.php file with following lines on it:
<?php eaccelerator(); ?>
If you have eAccelerator info shown on that page, accelerator is working!
[edit]
