Installing APC PHP Accelerator on Mac OS X

December 12, 2011 | By Regaz.

PHP APC Quick Start for Mac

The Tutorial shows you Step-by-step How to Install PHP Accelerator APC module on macOS X.

The PHP Accelerator APC is good to enhance Performances on strong Frameworks needing some Power like Symfony.

To Install it on Mac you do Not need to Recompile PHP but Only to Execute a Simple Procedure

If you Get in Stuck During Installation you will Find a Link 2 Detailed Troubleshooting Post at the Article Bottom.

How to Delete Users and Groups from Terminal on Mac OS X
  1. How to Install Homebrew for macOS

    HomeBrew Installation Guide
  2. Update Pear Channels:

    sudo pear update-channels
  3. Install Pcre:

    sudo brew install pcre
  4. Install APC by Pecl:

    sudo pecl install apc

If you encounter a problem in Installation best to Update brew with:

sudo brew update

Latest you should insert the following lines in you php.ini (Source):

//For Drupal upload progress.
apc.stat=7200 //2 hours

Remember to Set on php.ini the “extension_dir” with the Path to your newly installed!
If you do Not find where is located Search for “” in Finder…
If you Can’t Succeed with This then Try with MacPorts (Example) the module php5-apc by:

port install php5-apc


Mac APC Installation Troubleshooting

This is Finally, the Sign of Success :)
Bless the Lord!

QuickChic Theme • Powered by WordPress