ubuntu下编译安装xcache for php5.3 的具体操作步骤

前端之家收集整理的这篇文章主要介绍了ubuntu下编译安装xcache for php5.3 的具体操作步骤前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
sudo tar -xzvf xcache-1.3.0.tar.gzcd xcache-1.3.0sudo /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 [如果权限还不够的话,就切换到root]

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
;开启下面行也可以
;zend_extension=/usr/local/PHP-5.3.3/lib/PHP/extensions/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
;这行开启也可以,均能够添加xcache模块,修改只有记得重启fpm
extension = xcache.so
;; or win32:
; extension = PHP_xcache.dll

原文链接:https://www.f2er.com/php/26216.html

猜你在找的PHP相关文章