Eaccelerator:HOWTO

From Vicidial Wiki
Jump to: navigation, search
 print   	
 cd /usr/local
 wget http://bart.eaccelerator.net/source/0.9.5/eaccelerator-0.9.5.zip
 unzip eaccelerator-0.9.5.zip
 cd eaccelerator-0.9.5
 export PHP_PREFIX="/usr/local"
 $PHP_PREFIX/bin/phpize
 ./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
 make
 make install
 vi /usr/local/lib/php.ini
 Add the following lines to the dynamic extensions section of php.ini:
 (you may need to change the extension location depending on your install of php)
 extension="../../../usr/local/eaccelerator-0.9.5/modules/eaccelerator.so"
 eaccelerator.shm_size="48"
 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"
 mkdir /tmp/eaccelerator
 chmod 0777 /tmp/eaccelerator
  1. to verify installation: 
 php -v
 restart apachectl to get your web server up and running with it.
Personal tools