Create directory: mkdirtmpeacceleratorchmod-R0777tmpeaccelerator unzip: unzip cdeacc
Create directory: mkdir/tmp/eaccelerator chmod-R 0777/tmp/eaccelerator unzip: wget http://ncu.dl.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.tar.bz2 tar jxvf eaccelerator-0.9.6.1.tar.bz2 cd eacc
Create directory:
Mkdir/tmp/eaccelerator
Chmod-R 0777/tmp/eaccelerator
Decompress:
WgetHttp://ncu.dl.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.tar.bz2
Tar jxvfEaccelerator-0.9.6.1.tar.bz2
CdEaccelerator-0.9.6.1
CpControl. php/Website and directory/control. php
Run:
/Usr/local/php/bin/phpize
If you cannot find autoconf, install yum install-y autoconf.
Compile:
./Configure -- enable-eaccelerator = shared -- with-php-config =/usr/local/php/bin/php-config
Make
Make install
Modify php. add the following configuration at the end of ini. Note that zend_extension can be searched for by eaccelerator. so get your correct path, eaccelerator. allowed_admin_path should also be replaced with your actual website control. php Directory:
Zend_extension = "/usr/lib/php5/20090626 + lfs/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"
Eaccelerator. allowed_admin_path = "/var/www/control. php"
Restart apache. installation is complete.