Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Help wanted] FastCGI with kfcgi on macOS #40
I need some help using FastCGI with
Actually I don't even know which server I'm using! macOS ships with a built-in server, but I'm not sure whether it's Apache or httpd, since both names seem to refer to the same thing.
I tried consulting the document but was soon overwhelmed by the huge amount of info: which module should I use,
The tutorial mentioned is for OpenBSD's httpd. I don't have any information on Mac OS X's Apache. You might want to start by searching for running CGI scripts on Mac OS X, then FastCGI---which will be much more complicated. kcgi's FastCGI scripts should work with kfcgi or the default Apache runner.
referenced this issue
Jun 13, 2018
I don't know it's a good news or a bad one. Either way, I believe I've configured NGINX on macOS to work with the FastCGI protocol, but the result is a kernel panic. (Edit: you can fix this by passing
First, you need to build and install the application:
Note that I dropped
Next, install NGINX with
Now you can start NGINX by simply typing
Nonetheless, as mentioned before, I got a kernel panic when visiting
In this case, the application I used is the minimal example provided by your tutorial:
When I run
I'll leave support enabled in case it's fixed, but just put up a PSA on the kcgi site that it might crash and shouldn't be trusted. You can always try basic CGI scripts---but first see if something like the abort test case, where a validator abort()s, crashes the system as it did in the regression suite; and if it does, just... make sure your systems never abort. :( Either way, you get full credit for this discovery. Thank you so much for your research!
As for FastCGI, variable mode (-r) might make a difference, but I doubt it. My uninformed guess is that Mac pukes because of something regarding socketpair IPC.
You're welcome :)
Yeah I have no problems playing with CGI, not counting the
PS: just a quick question, what does the
(I'm reopening this issue because it appears that you won't receive a notification when I comment under a closed issue.)