PHP Accelerator XCache

Source: Internet
Author: User
Tags fpm zts

1. Installation

# Tar XF xcache-2.0.0.tar.gz

# CD xcache-2.0.0

#/usr/local/php/bin/phpize

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

# Make && make install


At the end of the installation, a line similar to the following appears:

Installing Shared extensions:/usr/local/php/lib/php/extensions/no-debug-zts-20100525/


2, edit php.ini, integrate PHP and XCache:


The sample configuration provided by XCache is first imported into the php.ini

# MKDIR/ETC/PHP.D

# CP XCACHE.INI/ETC/PHP.D


Description: The Xcache.ini file is in the XCache source directory.


Next edit/etc/php.d/xcache.ini, locate the line that begins with zend_extension, and modify it to the following line:

Zend_extension =/usr/local/php/lib/php/extensions/no-debug-zts-20100525/xcache.so


Note: If you have more than one zend_extension line in the php.ini file, make sure that this new row is ranked first.


3. Restart PHP-FPM

# Service PHP-FPM Restart


This article is from the "Common Documents" blog, so be sure to keep this source http://yujianglei.blog.51cto.com/7215578/1567605

PHP Accelerator XCache

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.