Install APC a PHP accelerator on ubuntu server

This is the first step to boost your drupal site (or any other aplications using PHP). More ways to improve your site are to come.

APC (Alternative PHP Cache) is a PHP extension that will boost up your php scripts. It is part of PECL (a repository for PHP Extensions)

  1. First off all install apache2-threaded-dev with the following command:
    #apt-get install apache2-threaded-dev
  2. Than install the extension with the pecl command:
    #pecl install apc
  3. The cleanest solution to include this extension into the php core is to create a file (for example:apc.ini) in the /etc/php5/cond.d directory.
    #cd /etc/php5/conf.d
    #touch apc.ini
    The minimal command in this file must be: extension=apc.so
  4. Restart your apache browswer.
  5. When you need to update your apc code simply use this command:
    #pecl upgrade apc

A very interessant benchmark has been made; APC has been compared with other 2 php accelerators.

 

Post new comment

The content of this field is kept private and will not be shown publicly.
                              
ad88 88 88
d8" 88 "" ,d
88 88 88
MM88MMM 88 88 MM88MMM
88 88 88 88
88 88 88 88
88 88 88 88,
88 88 88 "Y888

Enter the code depicted in ASCII art style.
Nid: 19| XHTML | CSS | 2010 Log In
Disclaimer: The information and content provided on this website is for reference and informational purpose only. We cannot guarantee for accuracy and completeness for any information or content published on this site. Use of the information and content on this site is at your own risk. We accept no responsibility for any loss or damage arising from the use of this website either directly or indirectly.