Ubuntu – Install APC with PHP-FPM and Nginx

Next: Ubuntu – Install Memcached with PHP-FPM and Nginx

APC stands for Alternative PHP Cache is a opcode which also known as machine code. The opcode is cached such that every time a request is sent to server, the same opcode is used until it detects a change in the PHP file.

Installation is easy and straight forward.

1. Install using apt-get.

  • apt-get install php-apc

 

2. Restart PHP-FPM

  • /etc/init.d/php5-fpm restart

 

3. Check your phpinfo.
php-apc
 

4. You could configure APC @ /etc/php5/conf.d/apc.ini.

Done =)

Reference: Life in apps, os’s and code! – Installing APC and Memcached on Ubuntu 12.04 with nginx

Advertisement

2 thoughts on “Ubuntu – Install APC with PHP-FPM and Nginx”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.