Skip to content

Determining if APC is installed on a server

The Alternative PHP Cache (APC) is a PHP extension that provides opcode caching, improving performance by storing compiled PHP code in memory. On ruachost.com, APC may or may not be installed depending on your hosting package and PHP version.

  • APC is supported on the following hosting packages:

    • VPS (managed and unmanaged)
    • Dedicated servers (managed and unmanaged)
  • APC runs on PHP 5.4 and earlier.

  • For PHP 5.5 and later, APC has been replaced by OPcache, which is built into PHP by default.

  1. Log in to your hosting account.

  2. Navigate to your public_html directory.

  3. Create a file named info.php.

  4. Add the following code:

    <?php
    phpinfo();
    ?>
  • Visit:

    http://yourdomain.com/info.php
  • This will display detailed information about your PHP environment.

  • Use your browser’s search function (Ctrl+F or Cmd+F).

  • Look for the term apc.

  • If APC is installed, you will see a section similar to:

    apc
    APC Support => enabled
    Version => 3.1.x
  • For security reasons, delete the info.php file after testing.
  • Leaving it accessible may expose sensitive server information.