eAccelerator is a PHP accelerator that can optimize and improve PHP's caching performance, so it is necessary to install this component after we compile PHP. kangle(easypanel) I have introduced in my blog (installation and use tutorial). This is a domestically developed virtual host management panel, which is very suitable for the usage habits of Chinese people. It is divided into free and commercial versions.
kangle-ea
After everyone has installed kangle (easypanel), check the probe and find that the eAccelerator component is "not supported". Next, let's do it for kangle installs eAccelerator component support.
First, install the eAccelerator component.

1: wget http://autosetup1.googlecode.com/files/eaccelerator-0.9.5.3.tar.bz2 #Download source code
2: tar xjvf eaccelerator-0.9.5.3.tar.bz2 #Extract
3: cd eaccelerator-0.9.5.3 Enter directory
4: /vhs/kangle/ext/tpl_php5217/bin/phpize #Run phpize
5: ./configure –with-php-config=/ vhs/kangle/ext/tpl_php5217/bin/php-config #Configuration
6: make clean && make #Install

After the installation is complete, let's edit the php configuration file (directory: /vhs/kangle/ext/tpl_php5217/php-templete.ini) and add the following content:

1: [eaccelerator]
2: zend_extension=”/vhs/kangle/ext/tpl_php5217/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so” #Module location
3: eaccelerator.shm_size=”32″ #Shared memory size
4: eaccelerator.cache_dir=”/tmp/eaccelerator” #Cache directory
5: eaccelerator.enable=”1″
6: eaccelerator.optimizer= ”1″
7: eaccelerator.check_mtime=”1″
8: eaccelerator.debug=”0″
9: eaccelerator.filter=”"
10: eaccelerator.shm_max=”0″
11: eaccelerator.shm_ttl=”0″
12: eaccelerator.shm_prune_period=”0″
13: eaccelerator.shm_only=”0″
14: eaccelerator.compress=”1″
15: eaccelerator.compress_level=”9″

In the module location above, we set the location to /vhs/kangle/ext/tpl_php5217/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so. Next we will put the module file in this location.

1: cp modules/eaccelerator.so /vhs/kangle/ext/tpl_php5217/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so

In this step, you may be prompted that the folder cannot be found, please create it in the relevant location.
Next, we need to create the cache directory and grant permissions.

1: cd /tmp
2: mkdir eaccelerator
3: chmod 0777 eaccelerator

Finally, restart kangle, and then look at the probe again, OK!

1: service kangle restart
Since the latest version of kangle uses PHP 5.3.3, the above installation may encounter problems. Some friends have solved this problem. For a good VPS, just
be lazy and transfer directly. Original address: http://www.lsanday.com/archives/291.html
The new version of Easypanel uses PHP 5.3.3 eAccelerator-0.9.5.3 does not support
wget -c http:// soft.vpser.net/web/eaccelerator/eaccelerator-0.9.6.1.tar.bz2
tar jxvf eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1/
/vhs/kangle /ext/tpl_php52/bin/phpize
./configure -with-php-config=/vhs/kangle/ext/tpl_php52/bin/php-config
make && make install

/vhs /kangle/ext/tpl_php52/bin/phpize This may encounter some trouble
For example, prompt: Cannot find autoconf
Solution:
wget http://ftp.gnu.org/gnu /m4/m4-1.4.9.tar.gz
tar -zvxf m4-1.4.9.tar.gz
cd m4-1.4.9/
./configure && make && make install
cd ../
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
tar -zvxf autoconf-2.62.tar.gz
cd autoconf-2.62 /
./configure && make && make install

Pay attention to the screen echo
What I display is
/vhs/kangle/ext/tpl_php52/lib/php/extensions/no -debug-non-zts-20090626/ This directory will be used by
Edit configuration file
vi /vhs/kangle/ext/tpl_php52/php-templete.ini
Add:
[eaccelerator]
zend_extension="/vhs/kangle/ext/tpl_php52/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"

——This is the directory echoed above
eaccelerator.shm_size="32"
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"

cd /tmp
mkdir eaccelerator
chmod 0777 eaccelerator

Finally restart kangle
service kangle restart


Hong Kong/United States/Domestic High Speed ​​VPS

postid
1945

Leave a Reply