Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Update

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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