Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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,,,,

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

share|improve this question

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.

up vote 0 down vote accepted

Use phpinfo file on some test site:

<?php phpinfo() ?>

APC advertises itself in the result page.

share|improve this answer

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