Php5.3.28 install the CDN cache xcache

Source: Internet
Author: User
Tags apc
It was not long before the eAccelerator was changed to APC. After a day of operation, it was finished. The php502 error occurred, and the php-fpm was stuck and went on strike! When the php-fpm process exits abnormally, other processes cannot obtain the apc mutex lock. Cause a deadlock. This time, we continue to search for apc information. Some people mentioned that huixinmiao (one of the apc maintainers) is recommended not to use apc again.

It was not long before the eAccelerator was changed to APC. After a day of operation, it was finished. php 502 error. php-fpm got stuck and went on strike! When the php-fpm process exits abnormally, other processes cannot obtain the apc mutex lock. Cause a deadlock. This time, we continue to search for apc information. Some people mentioned that huixinmiao (one of the apc maintainers) is recommended not to use apc again.

It was not long before the eAccelerator was changed to APC. After a day of operation, it was finished. The php502 error occurred, and the php-fpm was stuck and went on strike! When the php-fpm process exits abnormally, other processes cannot obtain the apc mutex lock. Cause a deadlock. This time, we continued to search for apc materials. Some people mentioned that huixinhui (one of the apc maintainers) suggested not to use apc again. We suggest replacing it with opcache and php5.3 could not be used.

Try xcache in China this time

Http://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz wget-c
Tar zxvf xcache-3.2.0.tar.gz
Cd xcache-3.2.0
/Usr/local/php/bin/phpize
./Configure-enable-xcache-coverager-enable-xcache-optimizer-with-php-config =/usr/local/php/bin/php-config
Make
Make install

After the installation is successful, add the following to the end of the php. ini configuration file:

Xcache. admin. pass the management password here requires 32 bits. You can find a website to generate the password.
Xcache. count the number of cpu Cores

; Xcache
[Xcache-common]
Extension = xcache. so

[Xcache. admin]
Xcache. admin. enable_auth = On
Xcache. admin. user = "admin"
; Run: echo-n "yourpassword" | md5sum | awk '{print $1}' to get md5 password
Xcache. admin. pass = "c8e1118e1e8429ebabc79b3d910cb7a0 ″

[Xcache]
Xcache. shm_scheme = ??????? "Mmap"
Xcache. size? = ?????????????? 128 M
; Set to cpu count (cat/proc/cpuinfo | grep-c processor)
Xcache. count = ???????????????? 8
Xcache. slots = ??????????????? 8 K
Xcache. ttl ?? = ???????????????? 0
Xcache. gc_interval = ?????????? 0
Xcache. var_size? = ??????????? 4 M
Xcache. var_count = ???????????? 1
Xcache. var_slots = ??????????? 8 K
Xcache. var_ttl ?? = ???????????? 0
Xcache. var_maxttl ?? = ????????? 0
Xcache. var_gc_interval = ???? 300
Xcache. readonly_protection = Off
; For * nix, xcache. mmap_path is a file path, not directory. (auto create/overwrite)
; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection
; Different process group of php won't share the same/tmp/xcache
Xcache. mmap_path = ??? "/Dev/zero"
Xcache. coredump_directory = ?? ""
Xcache. experimental = ??????? Off
Xcache. cacher = ?????????????? On
Xcache. stat ?? = ?????????????? On
Xcache. optimizer = ?????????? Off

[Xcache. coverager]
; Enabling this feature will impact performance
; Enable only if xcache. coverager = On & xcache. coveragedump_directory = "non-empty-value"
; Enable coverage data collecting and xcache_coverager_start/stop/get/clean () functions
Xcache. coverager = ????????? Off
Xcache. coveragedump_directory = ""
; Xcache end

Restart php and output echo phpinfo (). Check whether the operation is successful!

At this time you need to run the management of IT, In the xcache-3.2.0 directory of the htdocs Management Code directory copy to the virtual machine that can run, directly run.

For details about other configurations, seeXcache.Lighttpd.net

If you have any questions, please leave a message ^_^

Original article address: php5.3.28 install the CDN cache xcache. Thank you for sharing it with me.

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.