[[TracNav(DocTOC)]] [[PageOutline]] = Installing As PHP Extension = == Install into php.ini == check [http://www.php.net/phpinfo phpinfo]() for php.ini location, supposing it's /etc/php.ini (See also: PhpIni) ====== Add XCache settings to php.ini ====== {{{ #!ShellExample # cat xcache.ini >> /etc/php.ini (modify php.ini for your usage) # $EDITOR /etc/php.ini }}} WARNING: it's >> not > == Restart php == You should know how to restart php better than i do. It depends on which php sapi you're using is, and how you run your php. * [http://www.lighttpd.net/ lighttpd] or any webserver + mod_fastcgi --> php-fastcgi: just restart php itself, not the webserver ====== Restart php with daemontools ====== {{{ #!ShellExample (in case you run php with daemontools, do) # svc -d php && svc -u php; echo $? (or in case you're using gentoo daemontools, do) # svcinit php restart (in any other case, you should know what to do.) }}} * any webserver + mod_php: restart the webserver. something like: ====== Restart php with apache ====== {{{ #!ShellExample (in case you're using apache, do restart, not graceful) # /etc/init.d/apache* restart (or do) # /etc/init.d/httpd* restart (in any other case, you should know what to do.) }}} == Make sure XCache is working == * if you're working with php-fcgi, simply run ====== Check XCache from command line ====== {{{ #!ShellExample $ php-fcgi -v PHP 4.4.3-dev (cgi-fcgi) (built: Mar 10 2006 18:46:02) Copyright (c) 1997-2006 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with XCache v1.0, Copyright (c) 2005-2006, by mOo }}} * otherwise, check [http://www.php.net/phpinfo phpinfo](): [[SafeHtml(phpinfoexample)]] See also: BuildingFromSource (prev), InstallAdministration (next), [/trac/wiki/TutorialLighttpdAndPHP PHP FastCGI on Lighttpd]