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.
About APC
Section titled “About APC”-
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.
How to Check if APC is Installed
Section titled “How to Check if APC is Installed”Step 1: Create a PHP Info File
Section titled “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:
<?phpphpinfo();?>
Step 2: Access the File in Your Browser
Section titled “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
Section titled “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:
apcAPC Support => enabledVersion => 3.1.x
Security Note
Section titled “Security Note”- For security reasons, delete the
info.phpfile after testing. - Leaving it accessible may expose sensitive server information.