I’ve recently upgraded to OSX Mavericks and since then, I’ve started getting the aforementioned error on my development machine. There is no obvious problem in the code (it’s an auto generated Yii sample application). What has happened as part of upgrade to Mavericks is:
-
PHP was upgraded from 5.2.x which bundled with OSX Lion to 5.4.x.
-
I had to get a Zend Debugger for PHP 5.4 by installing [Zend Server][2], picking up the ZendDebugger.so and uninstalling the Zend Server (all this because Zend doesn’t provide a standalone version of their debugger for php 5.4.x).
Ever since, I’m getting this problem after maybe loading and reloading the website a few time. After this error occurs, my web server keeps returning the same error for any other application hosted on localhost. I have to mention that static web pages are served up fine.
I found some references to the problem including suggestions like:
Increasing the max open files in shell using (defaults to 256):
ulimit -n 2048
and:
sysctl -a | grep files
returns:
kern.maxfiles = 12288
kern.maxfilesperproc = 10240
kern.maxfiles: 12288
kern.maxfilesperproc: 10240
kern.num_files: 3248
So the limits seem fine to me. If anyone has seen this problem or is aware of the solution, I’d really appreciate some information.