Next up, you can install APC using the pecl command: sudo pecl install apc Install the these packages with the following command: sudo apt-get install php-pear php5-dev make libpcre3-dev To install APC, you first need to take care of a couple of dependencies. If you need help with getting you going on those, you can read this tutorial. It assumes you are already running your own VPS with root privileges and have LAMP stack installed on it.
This tutorial will show you how to install and configure APC. In essence, it bypasses the parsing and compiling steps and minimizes some unnecessary loads on the cloud server. What it does is save the PHP opcode (operation code) in the RAM memory and if requested again, executes it from there. In many cases though, the requests produce exactly the same results which means that the cloud server has to unnecessarily repeat all these steps for each of them. PHP is a dynamic server-side scripting language that needs to be parsed, compiled and executed by the server with every page request. You can use the search functionality at the top of the page to find a more recent version.ĪPC is a great operation code caching system for PHP that can help speed up your site. If available, we strongly recommend using a guide written for the version of Ubuntu you are using. This guide might still be useful as a reference, but may not work on other Ubuntu releases. Reason: Ubuntu 12.04 reached end of life (EOL) on Apand no longer receives security patches or updates.
This article covers a version of Ubuntu that is no longer supported.