Skip to content

Enabling PHP opcode caching

Opcode caching improves PHP performance by storing precompiled script bytecode in memory. This allows PHP to serve pages faster without recompiling scripts on every request. On ruachost.com, you can enable opcode caching through cPanel.

  • Access your hosting account at ruachost.com.
  • Open cPanel from your dashboard.
  1. In cPanel, go to Software → Select PHP Version.
  2. If you don’t see this option, your server may not support it.
  • For PHP 5.4 or older: check the box for apc.
  • For PHP 5.5 or newer: check the box for opcache.
  • Click Save to apply changes.
  • Create a file named info.php in your site’s root directory:

    <?php phpinfo(); ?>
  • Visit http://yourdomain.com/info.php.

  • Look for the APC or OPcache section to confirm it is enabled.

  • Delete the file afterward for security.