PHP-FPM bind issues

Posted by Leo on Server Fault See other posts from Server Fault or by Leo
Published on 2012-09-10T19:06:24Z Indexed on 2012/09/13 3:41 UTC
Read the original article Hit count: 937

Filed under:
|
|

I have a setup of a mac server running Nginx 1.2.3, PHP-FPM 5.3.10 on OSX Lion.

It works fine with Nginx on port 8080 ( using port fordwaring on from 80 ) and PHP-FPM listening on 9000. Both are running as /System/LaunchDaemons.

My issue is that the system log is full of these errors ( every ten seconds ) which despite the fact the system works I don't like.

Sep 10 19:59:05 mac-server php-fpm[974]: [10-Sep-2012 19:59:05] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (48)
Sep 10 19:59:05 mac-server php-fpm[974]: [10-Sep-2012 19:59:05] ERROR: FPM initialization failed
Sep 10 19:59:05 mac-server com.apple.launchd[1] (php-fpm): Throttling respawn: Will start in 10 seconds

I have pretty much an out of the box php-fpm config. Could someone please point me to what configuration variables may be causing this problem. There are not any errorneous LaunchAgent/LaunchDaemons floating around either?

© Server Fault or respective owner

Related posts about nginx

Related posts about osx-lion