APC, which means Alternative PHP Cache, is a framework used for caching the compiled source code of a given script app, that can speed up a database-driven site several times. Each time a PHP webpage is accessed, the script pulls the website content that should be displayed from a database, parses and compiles the code, then the result is displayed to the site visitor. While this is necessary for Internet sites with constantly changing content, it's a total waste of processing time and resources for a site which doesn't change, for example an informational portal which shows the same content all the time. When the webpages for such a website are compiled, APC caches them and delivers them any time a user loads them. As this saves the time to obtain content from the database and to parse and compile the program code, the website will load considerably quicker. APC is really helpful in particular for scripts with massive source code.

APC (PHP Opcode Cache) in Web Hosting

You can employ APC for your web apps with any of the web hosting plans that we provide since it is pre-installed on our cloud web hosting platform. Enabling it will take only a mouse click in the Hepsia Control Panel which is provided with our shared plans and a few minutes later it'll begin caching the program code of your apps. Our platform is very flexible, so you will be able to use different configurations determined by the system requirements of your scripts. For instance, you can activate APC for several releases of PHP for the whole account and choose the version that each website can use, or you can have the same version of PHP, but enable or disable APC just for particular websites. You can do this by putting a php.ini file with a line of code inside the domain or subdomain folder where you require the custom setup.

APC (PHP Opcode Cache) in Semi-dedicated Servers

You can take full advantage of APC with all of our semi-dedicated server packages and activating this framework is performed with a mouse click inside the Hepsia Control Panel, so even when you don't have any prior experience, you could use it in order to speed up your sites. As the cloud hosting platform where the semi-dedicated accounts are created is compatible with multiple PHP versions, you'll have flexibility with regards to the scripts and web accelerators you'll be able to use. It will take you only a click to activate APC for one or a couple of PHP versions and by using a php.ini file in the domain/subdomain folders where you need settings that are not the same as the ones for the account as a whole, you can set what PHP release will be used and whether APC should be allowed or not. This way, one Internet site can use APC and PHP 5.3, for instance, and another one may use some other accelerator and PHP 5.5.