Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FCGI Wrap on OS X #42

Open
gzzz opened this issue Jul 22, 2017 · 2 comments
Open

FCGI Wrap on OS X #42

gzzz opened this issue Jul 22, 2017 · 2 comments

Comments

@gzzz
Copy link

gzzz commented Jul 22, 2017

Can FCGI Wrap work with NGinx on OS X?
I've installed FCGI Wrap from Homebrew, but there is no plist file to use for service start.

How properly create socket and start service without init.d script?

@ScalaWilliam
Copy link

Is this project actually alive?

@gzzz
Copy link
Author

gzzz commented Jul 23, 2017

Is this project actually alive?

Well, I'am using it on Debian.

Figured out how to launch fcgiwrap with spawn-fcgi:

sudo /usr/local/sbin/spawn-fcgi -F 1 -P /var/run/fcgiwrap.pid -s /var/run/fcgiwrap.socket -u user -U user -G group /usr/local/sbin/fcgiwrap

Now trying to create plist for launchctl and launching fcgiwrap at system startup with nginx.

<?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>Label</key>
    <string>homebrew.mxcl.fcgiwrap</string>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <false/>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/sbin/spawn-fcgi</string>
        <string>-F</string>
        <string>1</string>
        <string>-P</string>
        <string>/var/run/fcgiwrap.pid</string>
        <string>-s</string>
        <string>/var/run/fcgiwrap.socket</string>
        <string>-u</string>
        <string>user</string>
        <string>-U</string>
        <string>user</string>
        <string>-G</string>
        <string>group</string>
        <string>/usr/local/sbin/fcgiwrap</string>
    </array>
    <key>WorkingDirectory</key>
    <string>/usr/local</string>
  </dict>
</plist>

But at now launchctl doesn't launch it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants