Xcache accelerates php and xcachephp

Source: Internet
Author: User
Tags zts

Xcache accelerates php and xcachephp

1. Installation

# Tar xf xcache-3.2.0.tar.bz2

# Cd xcache-3.2.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 installation, the following lines will appear:

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


2. Edit php. ini and integrate php and xcache:


First, import the sample configuration provided by xcache to php. ini, and add the xcache. ini file to the end of the php. ini file;

Note how to copy and paste a vi file:

Edit the two files at the same time, copy and paste the text vi file1 file2 nyy in the two files, open the two files at the same time, and copy the row where the cursor of file 1 is located: n switch to file 2 (n = next) p paste the copied row at the cursor of file 2: N switch back to file 1


 


Note: The xcache. ini file is in the xcache source code directory.


Next, edit/opt/php/lib/php. ini,

Find the row starting with extension and change it to the following row:

# Vim/opt/php/lib/php. ini

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

# Service php-fpm restart


Open phpinfo. php to check the php runtime environment:


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.