Install the PHP accelerated cache

Source: Internet
Author: User
Tags zts install perl


PHP Cache Accelerator Software types

XCache

Eaccelerator

Zend

Apc



Eaccelerator features cache, acceleration, optimization

Set character sets

echo ' Export lc_all=c ' >>/etc/profile

Source/etc/profile

Installing Perl-related software

Yum-y Install Perl-devel


Installing the PHP eaccelerator Cache accelerator Module

1. Download Eaccelerator Package

2. Decompression

3. Go to unzip directory

4, the implementation of phpize, generally in the PHP directory php/bin/phpize

5. Compilation parameters

./configure--enable-eaccelerator=shared--with-php-config=/usr/local/php/bin/php-config

Make

Make install

6. See if the compilation was successful

ls/usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/

#显示如下, on behalf of successful compilation

Eaccelerator.so


Installing Perl-related software

Yum-y Install Perl-devel


Installing the PHP XCache Cache accelerator Module

1. Download Eaccelerator Package

2. Decompression

3. Go to unzip directory

4, the implementation of phpize, generally in the PHP directory php/bin/phpize

5. Compilation parameters

./configure--enable-xcache--with-php-config=/usr/local/php/bin/php-config

Make

Make install

6. See if the compilation was successful

ls/usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/

#显示如下, on behalf of successful compilation

Xcache.so


Database Memcahe high-performance distributed memory Object cache system

Memcache is divided into server-side software (such as memcached-2.2.5.tar.gz) and client software (memcache-2.2.5.tar.gz)

Install the client now (memcache-2.2.5.tar.gz)

1. Download software

2, unzip, enter the software directory

3, the implementation of Phppize

4. Compiling

./configure--with-php-config=/usrl/local/php/bin/php-config

Make

Make install

5. See if the compilation was successful

ls/usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/

#显示如下, on behalf of successful compilation

Memcache.so


The Pdo_mysql extension module defines a lightweight, consistent interface for PHP access to the database, and provides a data access abstraction layer

1. Download the package

2, unzip, enter the software directory

3, the implementation of Phppize

4. Compiling

./configure--with-php-config=/usr/local/php/bin/php-config--with-pdo-mysql=/usrl/local/mysql

Make

Make install

5. See if the compilation was successful

ls/usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/

#显示如下, on behalf of successful compilation

Pdo-mysql.so













This article is from the "topspeed_king" blog, make sure to keep this source http://mylinuxlife.blog.51cto.com/4706737/1682434

Install the PHP accelerated cache

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.