Viewing the PHP APC cache in Ubuntu 10.10


Posted by Andrew McCombe on Tue Oct 11, 2011

APC is a great tool for caching in PHP and once installed it is very easy to use. However, what do you do about viewing the PHP APC cache in Ubuntu? Well, there is a fantastic PHP page provided by APC that allows you to inspect the cache via a web page.

To use it you must copy and extract the file to your website document root.

To access the ‘user cache entries’ you will need to add a username and password to the apc.php script. These can be found near line 41. Once done you can access http://mysite.com/apc.php and you will see the APC page. As the advert says, “simples”.