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!