I’ve been looking at performance in PHP as a side project.
I decided to install it on Snow Leopard, having already set up PEAR and PECL. Using pecl install apc, I downloaded APC which appeared to be fine. However when I ran some scripts, I got the error:
Fatal error: Unknown: apc_fcntl_unlock failed: in Unknown on line 0
which was definitely not expected.
I found some useful instructions on the PHP Bug fixes (https://bugs.php.net/bug.php?id=59750 ). I ran pecl uninstall apc then installed the beta version and answered “no” to pthreadm utex locks and “yes” to spinlocks. You will also need to add apc.rfc1867 = 1 to the php.ini file for use with Drupal 7.
Having done this, I no longer get any errors in the status report regarding APC and when I have got my head around Organic Groups, I’m looking forward to getting into APC and improving Drupal performance.