Formatting code for PHPXcache


show source only

{{parent page="PHP"}}

===Xcache===
Installation
%%(bash)
wget http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz
tar xvf xcache-1.3.0.tar.gz
cd xcache-1.3.0
phpize
./configure --enable-xcache --enable-xcache-optimizer
make -j2 make install
%%

php.ini - make sure the extension is loaded before all others
%%
zend_extension=/usr/lib64/20060613/xcache.so
[XCache]
xcache.optimizer = On
xcache.size = 16M
xcache.ttl = 3600
xcache.admin.user = "admin"
xcache.admin.pass = "some_md5_sum"
xcache.count = 2
%%

the md5 password can be generated by a php file
%%
<?php
echo md5("phpsucks");
?>
%%

Then copy the admin dir in the source directory to some path, create an alias on your web server. Then log in to view xcache stat using the login and pwd configured in php.ini.
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki