DirectAdmin安装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
export PHP_PREFIX="/usr/local"
$PHP_PREFIX/bin/phpize
./configure --enable-xcache -with-php-config=$PHP_PREFIX/php5/bin/php-config
make && make install

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
 export PHP_PREFIX="/usr/local"
 $PHP_PREFIX/bin/phpize
 ./configure --enable-xcache -with-php-config=$PHP_PREFIX/bin/php-config
 make && make install

tar xf xcache-3.1.2.tar.gz
 cd xcache-3.2.0
 phpize
 ./configure --enable-xcache --with-php-config=/usr/bin/php-config
 make && make install
 cp xcache.ini /etc/php.d/xcache.ini
 vim /etc/php.d/xcache.ini
 extension = /usr/lib/php/modules/xcache.so


 /usr/local/lib/php/extensions/no-debug-non-zts-20100525/

; Local Variables:
 ; tab-width: 4
 ; End:

[xcache-common]
 extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20100525/"
 extension = xcache.so
 [xcache.admin]
xcache.admin.user = "admin"
 xcache.admin.pass = "e10adc3949ba59abbe56e057f20f883e"
 ; xcache.admin.pass = md5($your_password)
 xcache.admin.enable_auth = On
 [xcache]
 xcache.cacher =               On
 xcache.size  =               64M
 xcache.count =                 1
 xcache.slots =                8K
 xcache.ttl   =              3600
 xcache.gc_interval =         300
 xcache.var_size  =            0M
 xcache.var_count =             1
 xcache.var_slots =            8K
 xcache.var_ttl   =             0
 xcache.var_maxttl   =          0
 xcache.var_gc_interval =  %

© 版权声明
THE END
請多多支持
点赞0