APC (PHP Opcode Cache)
Discover what APC (PHP Opcode Cache) is and how it can influence the PHP performance in your web hosting account.
APC, or Alternative PHP Cache, is a PHP module that caches the output code of database-driven script apps. Dynamic PHP websites store their content in a database which is accessed whenever a visitor loads a page. The content that should be viewed is retrieved and the code is parsed and compiled before it's delivered to the visitor. All of these actions take some processing time and include reading and writing on the web server for each page which is opened. While this cannot be avoided for websites with constantly changing content, there are various Internet sites which feature the exact same content on a lot of of their pages all the time - blogs, info portals, hotel and restaurant sites, and many others. APC is quite useful for this type of Internet sites because it caches the previously compiled code and displays it each time visitors browse the cached pages, so the code does not need to be parsed and compiled again. Not only will this lower the server load, but it will also increase the speed of any website several times.
-
APC (PHP Opcode Cache) in Cloud Hosting
You can use APC for your web apps with any of the
cloud hosting plans that we offer because it is pre-installed on our cloud website hosting platform. Turning it on will take only a click inside the Hepsia Control Panel that is provided with our shared plans and several minutes later it will begin caching the program code of your applications. Our platform is extremely flexible, so you'll be able to use several configurations depending on the system requirements of the scripts. For example, you will be able to activate APC for several releases of PHP for the entire account and set the version that each site can use, or you could have the exact same version of PHP, but activate or deactivate APC only for specific websites. You can do this by putting a php.ini file with a line of program code inside the domain or subdomain folder where you need the customized configuration.
-
APC (PHP Opcode Cache) in Semi-dedicated Servers
You can use APC with our
semi-dedicated server packages and activating the framework is performed with a click inside the Hepsia Control Panel, so even if you lack previous experience, you can use it to quicken your sites. As the cloud internet hosting platform where the semi-dedicated accounts are set up is compatible with multiple PHP versions, you will have flexibility with regards to the scripts and web accelerators you'll be able to employ. It will take you only a click to activate APC for one or several PHP releases 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 in general, you'll be able to set what PHP version will be used and whether APC should be allowed or not. In this way, one Internet site could use APC and PHP 5.3, for instance, while another one could use some other accelerator and PHP 5.5.