Install php acceleration cache php Cache Acceleration Software
Xcache
Eaccelerator
Zend
Apc
The eaccelerator features caching, acceleration, and optimization.
Set character set
Echo 'export LC_ALL = c'>/etc/profile
Source/etc/profile
Install perl-related software
Yum-y install perl-devel
Install php eaccelerator Cache Acceleration module
1. download the eaccelerator package
2. decompress
3. enter the extract Directory
4. run phpize. php/bin/phpize in the php directory.
5. compile parameters
./Configure -- enable-eaccelerator = shared -- with-php-config =/usr/local/php/bin/php-config
Make
Make install
6. check whether the compilation is successful.
Ls/usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/
# The following is displayed, indicating that the compilation is successful.
Eaccelerator. so
Install perl-related software
Yum-y install perl-devel
Install php xcache Cache Acceleration module
1. download the eaccelerator package
2. decompress
3. enter the extract Directory
4. run phpize. php/bin/phpize in the php directory.
5. compile parameters
./Configure -- enable-xcache -- with-php-config =/usr/local/php/bin/php-config
Make
Make install
6. check whether the compilation is successful.
Ls/usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/
# The following is displayed, indicating that the compilation is successful.
Xcache. so
Database Memcahe high-performance distributed memory object cache system
Memcacheis a service-side software (for example, memcached-2.2.5.tar.gz.pdf and customer-side software (memcache-2.2.5.tar.gz)
Install the client (memcache-2.2.5.tar.gz)
1. Download Software
2. decompress the package and enter the software directory.
3. run phppize.
4. Compile
./Configure -- with-php-config =/usrl/local/php/bin/php-config
Make
Make install
5. check whether the compilation is successful.
Ls/usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/
# The following is displayed, indicating that the compilation is successful.
Memcache. so
The PDO_MYSQL extension module defines a lightweight and consistent interface for php to access the database. It provides a data access abstraction layer.
1. download the software package
2. decompress the package and enter the software directory.
3. run phppize.
4. Compile
./Configure -- with-php-config =/usr/local/php/bin/php-config -- with-pdo-mysql =/usrl/local/mysql
Make
Make install
5. check whether the compilation is successful.
Ls/usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/
# The following is displayed, indicating that the compilation is successful.
Pdo-mysql.so