Steps to install PHP accelerated software XCache under Linux

Source: Internet
Author: User
Tags fpm install php ini administrator password

XCache is a PHP accelerator software, we can install XCache to improve the performance of PHP, a bit like phpfast, the following to see the installation of PHP acceleration software xcache steps

 

Description

PHP installation directory:/usr/local/php

php.ini configuration file path:/usr/local/php/etc/php.ini nginx installation directory:/usr/local/nginx nginx Web site root:/usr/local/nginx/html

1. Installation XCache

CD/USR/LOCAL/SRC #进入软件包存放目录

wget http://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz #下载 tar zxvf xcache-3.2.0.tar.gz #解压 CD xcache-3.2.0 #进入安装目录/usr/local/php/bin/phpize #用phpize生成configure配置文件./configure-- Enable-xcache--enable-xcache-coverager--enable-xcache-optimizer--with-php-config=/usr/local/php/bin/php-config #配置 make #编译

Make install #安装

After the installation is complete, the following interface appears, remembering the following path, which is used later.

/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/#xcache模块路径

2. Create XCache cache files

Touch/tmp/xcache #创建文件

chmod 777/tmp/xcache #设置权限

3, create the XCache administrator password is 123456

Echo-n "123456" | md5sum #记住类似下面一行代码 (password after MD5 encrypted), will be used later

e10adc3949ba59abbe56e057f20f883e

4, copy xcache background management program to the site root directory

Cp-r/usr/local/src/xcache-3.2.0/htdocs/usr/local/nginx/html/xcache

chown Www.www-R/usr/local/nginx/html/xcache #设置xcache目录和网站目录权限相同 System Yun-wei www.osyunwei.com warm reminder: qihang01 original content © copyright, Reprint please indicate the source and the original link

5. Configure PHP Support XCache

Vi/usr/local/php/etc/php.ini #编辑配置文件, add the following on the last line

[Xcache-common] Extension = xcache.so [xcache.admin] Xcache.admin.enable_auth = on xcache.admin.user = "XCache" Xcache.ad Min.pass = "e10adc3949ba59abbe56e057f20f883e" [XCache] xcache.shm_scheme = "Mmap" xcache.size=60m Xcache.count-=1 Xcache.slots =8k xcache.ttl=0 xcache.gc_interval =0 xcache.var_size=64m xcache.var_count =1 xcache.var_slots =8K Xcache.var_ttl=0 xcache.var_maxttl=0 xcache.var_gc_interval =300 xcache.test =off = On Xcache.mmap_path = "/tmp/xcache" xcache.coredump_directory = "" Xcache.cacher =on xcache.stat=on xcache.optimizer-=Off [   Xcache.coverager] Xcache.coverager =on xcache.coveragedump_directory = "": wq! #保存退出

6, testing

Service php-fpm Restart #重启php-fpm

Service Nginx Restart #重启nginx browser to open the Web site under the root directory xcache enter user name XCache password 123456

You can see the following interface

to this point, Linux to install the PHP accelerated software xcache Tutorial complete

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.