Zend error: The apc extension must be loaded for using this backend

jgnasser picture jgnasser · Aug 28, 2010 · Viewed 7.4k times · Source

Hi I am getting the above error setting up my Zend application on a public hosted server. I have another application on the same sever which works ok so I assume APC is obviously loaded. How can I diagnose this? Thanks

Answer

Andrei Serdeliuc ॐ picture Andrei Serdeliuc ॐ · Aug 28, 2010

I'm assuming you are you using the APC Zend_Cache backend. To use this, you need the APC extension installed.

To check if it is loaded, just paste the following into a php file and then view it in a browser:

<?php
phpinfo();

Search for the block that says something like "This program makes use of the Zend Scripting Language Engine: Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies"

If you see APC in there, then it's loaded.