Centos PHP extension Xchche installation tutorial, centosxchche

Source: Internet
Author: User
Tags apc 4

Centos PHP extension Xchche installation tutorial, centosxchche

Note:

1. What is opcode? When php is executed, it will be compiled into opcode, and then the zend engine will execute opcode

2, php eAccelerator, memcached, xcache, APC 4 Acceleration, cache extension differences reference: http://www.bkjia.com/article/88281.htm

Xcache is a fast and stable PHP opcode cache. it has been well tested and runs stably on high-traffic/high-load production machines. tests (on linux) and supports the latest versions of all current PHP branches, such as PHP_4_3 PHP_4_4 PHP_5_0 PHP_5_1 PHP_5_2 HEAD (6.x), and supports thread security/Windows. it is better than similar opcode caches, for example, it can quickly follow up the PHP version.

Http://www.hostloc.com/thread-256173-1-1.html

1. Install xcache:

# Wget http://xcache.lighttpd.net/pub/Releases/3.0.1/xcache-3.0.1.tar.gz# tar xf xcache-3.0.1.tar.gz # cd xcache-3.0.1 # xcache is the extension of php, to use the php Command to load this extension #/usr/bin/phpize # the function of the phpize command is to prepare a php extension for compilation, so the extension must first execute the compilation #. /configure -- enable-xcache -- with-php-config =/usr/bin/php-config # php-config indicates that php configuration information and compilation options can be obtained; # Because xcache is not in the default path, you need to obtain the functions enabled during php installation. Otherwise, xcache cannot find the php path # make & make install

At the end of installation, the following lines will appear:

Installing shared extensions:/usr/lib64/php/modules/

2. php load xcache Extension

Extension_dir = "/usr/lib64/php/modules /"
Extension = amqp. so
Extension = xcache. so

3. Restart the service

Service php-fpm restart
Service nginx restart

4. Test and view the phpinfo information, as shown in:

The above is a full description of the Centos PHP extension Xchche installation tutorial. I hope it will help you. If you want to learn more, please stay tuned to the help house!

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.