About Gio
I am a torrent of ingenuity (or insanity) with a myriad of innovations (sometimes fallacies) and a wealth of inspiration (possibly naiveté). My name is Gio Carlo Cielo Borje and I like puffer fish because they're just cooltalkin', highwalkin' and fastlivin'.
I'm also nineteen and a current student at UC Irvine for Computer Science.
Installing APC for PHP-FPM on Ubuntu 11.04 (Natty Narwhal)
My new development environment, Ubuntu 11.04, contains the
php5-fpmpackage that hasn’t been available on 10.04. PHP-FPM is especially important when developing on the LEMP stack which uses Nginx instead of Apache. In this tutorial, you will not build anything from source.Quick Installation
This is the fastest installation possible using Ubuntu’s packages. Everything is automatically configured so that you can skip to Post Installation.
PECL Installation
If you prefer using the PECL package manager for PHP instead, then there’s extra configuration required. The PECL installation is preferred for most Linux distributions without the
php-apcpackage shown above.First, we need the additional
php-pearandphp5-devare required for PECL.PECL will handle the installation APC but at the end, you’re required to configure
php.ini.In this case, we’re using PHP-FPM, so we’re appending the configuration to the PHP-FPM
php.inilocated at/etc/init.d/php.ini.Post Installation
Finally, restart PHP-FPM to see changes.
If you’re unsure whether APC is enabled, you can check
phpinfo().Have fun with web development.