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
-
Log in to your hosting account.
-
Navigate to your
public_htmldirectory. -
Create a file named
info.php. -
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+ForCmd+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.phpfile after testing. -
Leaving it accessible may expose sensitive server information.