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.

 

About APC

  • APC is supported on the following hosting packages:

    • Turbo Velocity and Turbo Nitro Web Hosting

    • 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.

 

How to Check if APC is Installed

Step 1: Create a PHP Info File

  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();
    ?>
    

Step 2: Access the File in Your Browser

  • Visit:

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

Step 3: Search for APC

  • 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
    ​

Security Note

  • For security reasons, delete the info.php file after testing.

  • Leaving it accessible may expose sensitive server information.

 
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution