how to install eaccelerator compile linux centos red hat

how to install  eaccelerator compile linux centos red hat


Download the last version
 wget https://github.com/downloads/eaccelerator/eaccelerator/eaccelerator-0.9.6.1.tar.bz2


Uncompres the files
 bzip2 -cd eaccelerator-0.9.6.1.tar.bz2 | tar xvf -

 cd eaccelerator-0.9.6.1
run php size over the root of  eaccelerator folder
 phpize
install necesary dependences
 yum install phpize
 yum install autoconf automake libtool m4
 yum install php-devel.x86_64
run again phpize
 phpize
run configure
 ./configure
run make , make test and make install
 make
 yum install make
 make
 make test
 make install
check the so in modules folder of php
 ls /usr/lib64/php/modules/
 vim /etc/php.d/eaccelerator.ini
Add the following
extension="eaccelerator.so"
; shared memory size in magabytes
eaccelerator.shm_size="16";
; ; the directory to be used as disk cache
eaccelerator.cache_dir="/tmp/eaccelerator";
; ; "1" to enable the eaccelerator, 0 to disable it
eaccelerator.enable="1";
; ; "1" to enable the code optimizer, 0 to disable it
accelerator.optimizer="1";
; ; "1" to enable the php file modification checking, 0 to disable it
eaccelerator.check_mtime="1";
; ; "1" to enable the debug logging, 0 to disable it
eaccelerator.debug="0";
; ; Determine which PHP files must be cached. You can give wild cards here.
eaccelerator.filter="";
; ; When eAccelerator fails to get shared memory for new script it removes all scripts which were not accessed at last "shm_ttl" seconds from shared memory.
eaccelerator.shm_ttl="0";
; ; When eAccelerator fails to get shared memory for new script it tries to remove old script if the previous try was made more then "shm_prune_period" seconds ago.
eaccelerator.shm_prune_period="0";
; ; Enables or disables caching of compiled scripts on disk.
eaccelerator.shm_only="0"

restart apache and enjoy!
 /etc/init.d/httpd restart
 php -v

0 pensamientos:

Post a Comment

feedback!