should no space between "-b" and the host (my system is osx 10.8)
I found a comment:
Thank you for this plist file! A lot of the tutorials show a space between "-b" and the host name and port. My process kept dying with a status of 255, until I removed that space. – Matt Aug 26 '12 at 16:24
from OS X: Auto start PHP FCGI via launchd on system start
It solved my problem.
The new plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>PHP_FCGI_CHILDREN</key>
<string>2</string>
<key>PHP_FCGI_MAX_REQUESTS</key>
<string>1000</string>
</dict>
<key>Label</key>
<string>com.phpfcgi</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/opt/php54/bin/php-cgi</string>
<string>-b127.0.0.1:9000</string>
<string>-q</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>