What is the correct way to install APC on WHM and check that is is working? The steps I have carried out so far:

  1. SSH on the server as root and run yum install pcre-devel
  2. In WHM go to PHP Configuration Editor, Advanced Mode* and change extension_dir from /usr/local/lib/php/extensions/no-debug-non-zts-20060613 to /usr/lib/php/extensions/no-debug-non-zts-20060613
  3. In WHM go to Module Installers, click on mange next to PHP Pecl. Search for APC and install. (The last linetaht is returned says The APC.so object is not in /usr/lib/php/extensions/no-debug-non-zts-20060613)
  4. In WHM go to Configure PHP and SuExec and make the PHP 5 Handler dso.

I have copied apc.php and the data seems to change however I don't have any apc options in php.ini in WHM. The only reference for in php.ini is under extension where it says pdo.so, pdo_sqlite.so, sqlite.so, apc.so, pdo_mysql.so.

How can I check that APC is installed correctly on WHM?


The extension_dir for me ended up being /usr/lib/php/extensions/no-debug-non-zts-20090626. APC is now in php.ini

closed as off-topic by HopelessN00b Mar 20 '15 at 12:49

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.


Use phpinfo file on some test site:

<?php phpinfo() ?>

APC advertises itself in the result page.

Not the answer you're looking for? Browse other questions tagged or ask your own question.