Linux : APC usage and hit ratio information page

By | June 24, 2014

APC (Alternative PHP Cache) come with a nice script (apc.php) that will sort and show you the memory usage and hit ratio of pages cached into APC memory. Do these easy steps to set this up on your Web server.

Copy the script from APC folder into a vHost on your Web server (this example assume your vHost DocumentRoot is /var/www/html) :

(I would recommend you place it to a non-public vHost protected with a “htaccess” password)

Edit “apc.php” file default username and password :

(edit and replace the ‘password’ value to enable the Admin access – username ‘apc’ can be optionally changed as well)

Then just browse to the “apc.php” script :