Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to start php-fpm with launchctl.

Running directly from the command line is no problem:

$ /usr/sbin/php-fpm -p /Users/dmitry -e

Here's the contents of /Users/dmitry/Library/LaunchAgents/dminkovsky.php-fpm.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

For some reason the process doesn't start with this .plist. Nothing is logged, either, so I don't know why. In /var/log/system.log, I have:

Nov 18 08:38:30 airosol[285] (dminkovsky.php-fpm[19833]): Exited with code: 78
Nov 18 08:38:30 airosol[285] (dminkovsky.php-fpm): Throttling respawn: Will start in 10 seconds

I don't know where to take it from here though.

Most oddly, this .plist used to work before upgrading to Mavericks.

Thank you!

share|improve this question

php-fpm's error code 78 seems to correspond to EX_CONFIG (see one of the messages here), indicating some sort of configuration error. It's possible the error is preventing php-fpm from using any of your configured settings, including logging settings. You may be able to get more information by capturing the stdin and stdout from the php-fpm process by adding something like this to your .plist:

<key> StandardErrorPath</key>
share|improve this answer
Thanks for the tip, but unfortunately neither output redirect yielded results written to file upon attempting to load/start. – dimadima Nov 18 '13 at 16:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.