If you happen to have setup Zend Debugger for debugging your PHP code and you encounter the following error in the webserver error log:
Zend Debugger: Cannot read a valid value of zend_debugger.httpd_uid or zend.httpd_uid, will not perform dropping of privileges
then your setup will fail when you try to debug over a tunnel. This is caused by the debugger not being aware of the uid of the process which runs the web server.
To fix this, we need to find the user ID of the httpd process that runs the Zend Debugger. One way of finding the UID is by opening up the /etc/passwd file. You should see something similar to:
_www:*:70:70:World Wide Web Server:/Library/WebServer:/usr/bin/false
Now to fix the problem, we update the zend config in the php.ini file and restart the webserver. Here is my complete zend debugger configuration:
Now for some real debugging :).