PHP Accelerator: Difference between revisions
New page: A PHP Acelerator is a tool that will enhance the performance of web applications written for the PHP scripting language. The free [http://php.net/apc Alternative PH... |
adds notes |
||
| Line 3: | Line 3: | ||
If you run your own LAMP server with PHP applications, then please install it. | If you run your own LAMP server with PHP applications, then please install it. | ||
== Installation == | |||
Assuming you already have Apache2 and PHP5 (with dev extensions so PECL can run phpize), it's as easy as | Assuming you already have Apache2 and PHP5 (with dev extensions so PECL can run phpize), it's as easy as | ||
<source lang="bash"> | <source lang="bash"> | ||
| Line 21: | Line 22: | ||
sudo ln -s /usr/share/php/apc.php | sudo ln -s /usr/share/php/apc.php | ||
</source> | </source> | ||
== Notes == | |||
APC, aside from speeding up your website, also provides a storage mechanism outside the traditional cookie/session mechanism. So, you could set an application variable or constant and (assuming that the cache is not cleared, etc.) retrieve that value from another context. | |||