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

About these ads

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

  1. Pingback: Ubuntu – Install Memcached with PHP-FPM and Nginx | Eureka!

  2. Pingback: Run Drupal 7 in Nginx | Eureka!

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s