This article covers the basics of setting of the APC PHP Cache on your Ubuntu Linux machine with the Apache web server. These instructions will also work for a variety of other linux distributions as well. This is part of our series on setting up a Linode VPS with a fully working PHP, Apache, MySQL setup with multiple domains.

The following articles may be of interest to you:
Basic Linode VPS Setup
PHP, Apache, MySQL Setup on Ubuntu
Drupal Setup on Ubuntu

APC, or the “Alternative PHP Cache” is a php module that can significantly effect performance on sites that makes heavy use of PHP, such as Drupal. Below you will find the steps necessary to install and enable the APC Cache on an Ubuntu server.

1. Install APC PHP Cache and Related Tools

sudo aptitude install php-pear
sudo aptitude install php5-dev (if not already)
sudo aptitude install apache2-dev
sudo pecl install apc
sudo echo "extension=apc.so" > /etc/php5/apache2/conf.d/apc.ini
restart apache /etc/init.d/apache2 restart

Our Services

The Yin Yang House Media Services Group offers user extensible sites, most often with extensive feature sets.  We specialize in the development, maintenance, and support of simple to complex web sites involving e-commerce functions, social networking capabilities, and more.

In short, we build sites that you can extend and maintain on your own without needing to contact us for simple changes.

If you are looking for a presence on the web or for an improved website with better functionality for your users and yourself.  Please contact us.

Search