How to Install APC for PHP on Ubuntu

Installation of APC for PHP on Ubuntu is as simple as typing two lines of shell commands:

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

Update 2019: As of PHP 7.x, PHP has an internal accelerator OpCache that is a better choice than APC.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
18 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.