| 74 | | == Install into php.ini == |
| 75 | | check [http://www.php.net/phpinfo phpinfo]() for php.ini location, supposing it's /etc/php.ini |
| 76 | | {{{ |
| 77 | | (WARNING: it's >> not >) |
| 78 | | # cat xcache.ini >> /etc/php.ini |
| 79 | | }}} |
| 80 | | |
| 81 | | == Restart php == |
| 82 | | You know how to restart php than i do. It depends on what your php-sapi is, and how you run your php. |
| 83 | | * [http://www.lighttpd.net/ lighttpd] or any webserver + mod_fastcgi --> php-fastcgi: just restart php itself, not the webserver |
| 84 | | {{{ |
| 85 | | (in case you run php with daemontools, do) |
| 86 | | # svc -d php && svc -u php; echo $? |
| 87 | | (or in case you're using gentoo daemontools, do) |
| 88 | | # svcinit php restart |
| 89 | | (in any other case, you should know better than i do.) |
| 90 | | }}} |
| 91 | | * any webserver + mod_php: restart the webserver. something like: |
| 92 | | {{{ |
| 93 | | (in case you're using apache, do) |
| 94 | | # /etc/init.d/apache* restart |
| 95 | | (or do) |
| 96 | | # /etc/init.d/httpd* restart |
| 97 | | (in any other case, you should know better than i do.) |
| 98 | | }}} |
| 99 | | |
| 100 | | == Make sure XCache is working == |
| 101 | | * if you're working with php-fcgi, simply run |
| 102 | | {{{ |
| 103 | | $ php-fcgi -v |
| 104 | | PHP 4.4.3-dev (cgi-fcgi) (built: Mar 10 2006 18:46:02) |
| 105 | | Copyright (c) 1997-2006 The PHP Group |
| 106 | | Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies |
| 107 | | with XCache v1.0, Copyright (c) 2005-2006, by mOo |
| 108 | | }}} |
| 109 | | * check [http://www.php.net/phpinfo phpinfo]() |
| 110 | | {{{ |
| 111 | | ...... |
| 112 | | This program makes use of the Zend Scripting Language Engine: |
| 113 | | Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with XCache v1.0, Copyright (c) 2005-2006, by mOo |
| 114 | | ..... |
| 115 | | xcache |
| 116 | | XCache Support enabled |
| 117 | | Version 1.0 |
| 118 | | Readonly Protection N/A |
| 119 | | Opcode Cache enabled |
| 120 | | Variable Cache enabled |
| 121 | | |
| 122 | | }}} |
| | 74 | See also: GettingSource (prev), InstallingAsPhpExtension (next) |