How to compile and install xcache for php5.3 in ubuntu

Source: Internet
Author: User
Tags zts

Wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
Sudo tar-xzvf xcache-1.3.0.tar.gz

Cd xcache-1.3.0

Sudo/usr/local/php-5.3.3/bin/phpize
Sudo./configure -- with-php-config =/usr/local/php-5.3.3/bin/php-config

Sudo make
Sudo make install

Sudo cat xcache. ini>/usr/local/php-5.3.3/lib/php. ini [switch to root if permissions are not enough]

Configure php. ini
; Author: zhxia
[Xcache-common]
; Install as zend extension (recommended), normally "$ extension_dir/xcache. so"
; Zend_extension =/usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache. so
; Zend_extension_ts =/usr/local/lib/php/extensions/non-debug-zts-xxx/xcache. so
; Enable the following line.
; Zend_extension =/usr/local/php-5.3.3/lib/php/extension/ no-debug-non-zts-20090626/xcache. so
; For windows users, replace xcache. so with php_xcache.dll
; Zend_extension_ts = c:/php/extensions/php_xcache.dll
; Or install as extension, make sure your extension_dir setting is correct
This line can also be enabled. You can add the xcache module and only remember to restart fpm.
Extension = xcache. so
; Or win32:
; Extension = php_xcache.dll

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.