PHP APC QuickStart for Mac
This is Tutorial Shows You Step-by-step How-to Install PHP Accelerator APC module on Mac OS X 10.12 Sierra.
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 Install Homebrew for Mac OS X:
- Update Pear Channels:
sudo pear update-channels
- Install Pcre:
brew install pcre
- Install APC by Pecl:
sudo pecl install apc
If you encounter a problem in Installation best to Update brew with:
brew update
Latest you should insert the following lines in you php.ini (Source):
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=32M
apc.cache_by_default=1
apc.stat=1
apc.rfc1867=1
//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 apc.so!
If you do Not find where is located Search for “apc.so” in Finder…
If you Can’t Succeed with This is then Try with MacPorts (Example) the module php5-apc by:
port install php5-apc
Troubleshooting:
This is Finally the Sign of Success 🙂
Bless the Lord!