Comment on Installing APC on Ubuntu 10.4 (Lucid)

Installing APC on Ubuntu 10.4 (Lucid)

I’m working on a new site using Drupal on a LAMP environment. One of the things I want to install is APC - Alternative PHP Cache - for opcode caching. When I did it with Wopular, I’ve noticed the effects immediately. Because the site crashed so often before using APC, I had to have a script to automatically reboot the server, fixed db errors, and reload the site whenever server resources are used up. It works, but sometimes I would end up with a corrupt database and had to spend hours to days fixing it or restoring it from a backup. After installing APC on Wopular, the site stopped crashing, and my CPU usage went down to 30-40%. It was a major improvement. Wopular can go on for months without crashing since then.

With Ubuntu 10.4, it’s gotten a lot easier to install. All you need to run are these two commands:

sudo apt-get install php-apc
sudo /etc/init.d/apache2 restart

That’s it. You’re done.

To see it working, you have find the apc.php file in your server, copy it to your site’s root directory, and open it with your browser.

REFERENCE:

Install APC on Ubuntu 10.04 Lucid
http://me.jacobwg.com/160-install-apc-on-ubuntu-10-04-lucid

Where is apc.php?
http://serverfault.com/questions/165792/where-is-apc-php
(The second answer gave me what I wanted. I couldn’t get anything by using the find command.)

 

Comment On This Story