2 posts tagged “tips”
This is just a little hint for anyone who, like me, ran into this problem. If you are trying to compile mod_fcgid 2.2 for Apache 2.x on Mac OS X and are getting errors like this on load of a fastgi script:
[Wed Jan 16 15:18:49 2008] [error] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /opt/local/apache2/run/mod_fcgid/10597.34
[Wed Jan 16 15:18:49 2008] [warn] (13)Permission denied: mod_fcgid: spawn process /Users/jay/Sites/tdi.local/bnn/cgi/mt/mt.fcgi error
The fix is to change the SocketPath configuration directive from the default (which is usually something like run/mod_fcgid) to /tmp/fcgid_sock/.
I'm not sure why, but the socket can't be written to under the Apache run directory despite having the correct permissions but under tmp it works great. Chalk one up for the "computers are run by evil little magical elves" camp.
This is one of the best, most comprehensive list of software, tips and tricks I've seen on a single web page which is geared towards development on Mac OS X. If you're a Mac-based gearhead, it's worth a read. You'll certainly pick up at least one or two new gems...