dboettger's Blog

Installation of APC Cache for PHP under MacOSX

Posted on: November 3, 2009

APC is a free, open, and robust framework for caching and optimizing PHP intermediate code. — http://pecl.php.net/package/APC

The Installation of APC – Cache is quite easy. I assume you already have the Xcode development tools installed on your system and possibly compiled php on your own.

Just open the Terminal.

sudo pecl install apc

The following question should pop up. Please answer with yes:

Use apxs to set compile flags (if using APC with Apache)? [yes] : yes

After the installation completes, just edit the php.ini under /etc.

nano /etc/php.ini

In the extensions subsection just add following line:



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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s


%d bloggers like this: