10.6.2 Server with APC cache
As many are aware there is some funkiness trying to get APC caching working with 10.6.2 Server. After running all over the web, I finally generated the needed apc.so using macports.
If you want to save yourself a ton of trouble , you can try the attached apc.so.
Steps to install:
- Download and unzip.
- Move to “/usr/lib/php/extensions/no-debug-non-zts-20090626/”
(Use cli: sudo mv apc.so /usr/lib/php/extensions/no-debug-non-zts-20090626/) this assumes your are in the folder with apc.so - Edit your php.ini file (/etc/php.ini) with the following:
[APC Cache]
extension=apc.so
(***Add additional configuration parameters here***) - Save your php.ini and restart the webserver.
- Browse to your phpinfo file on your webserver and check to see if APC is running.
I hope this saves some of you time. I’m really at a lose to why Apple doesn’t correctly install PEAR/PECL so that developers can make the modifications they need.