ubuntu下编译安装xcache for php5.3 的具体操作步骤_PHP教程
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 [如果权限还不够的话,就切换到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
上一篇: 如何增加并切换PHP版本
推荐阅读
-
基于ubuntu下nginx+php+mysql安装配置的具体操作步骤
-
基于ubuntu下nginx+php+mysql安装配置的具体操作步骤_PHP
-
基于ubuntu下nginx+php+mysql安装配置的具体操作步骤
-
基于ubuntu下nginx+php+mysql安装配置的具体操作步骤_PHP
-
基于ubuntu下nginx+php+mysql安装配置的具体操作步骤
-
Ubuntu12下编译安装PHP5.3开发环境,ubuntu12php5.3_PHP教程
-
基于ubuntu下nginx+php+mysql安装配置的具体操作步骤_php实例
-
ubuntu下编译安装xcache for php5.3 的具体操作步骤
-
ubuntu下编译安装xcache for php5.3 的具体操作步骤
-
Ubuntu12下编译安装PHP5.3开发环境_PHP教程