I spent a little while yesterday attempting to work out how to get FastCGI installed. Unfortunately, because I’m using Apache 2.2, this wasn’t straightforward. In fact, I’d pretty much given up. Later on, I found this patch on the fastcgi-devel list, which purports to work (and looks like it will, given my experiences yesterday).

All this is just so that I can sensibly run Typo, a rails app. There are other ways to do it, but they’re less preferrable. I could use plain CGI, but that’s dog-slow. I could set up lighttpd, but I’d rather not, seeing as I’m already running Apache for so many other services. I suppose that I could run the standalone script/server tool and use mod_proxy to connect to it. But I that means that I then have to ensure that the process stays up the whole time and gets started correctly. Overall, FastCGI seems like the best choice.

So, today I’ll have a go at plumbing that patch into the FreeBSD port.

Comments 5

  1. Dan Kubb wrote:

    Have you looked at the SCGI Rails Runner?

    I found it super-easy to set up compared with FastCGI, although I didn’t do it with Apache. On a test system I was able to easily set up Apache 2.2 reverse proxying to lighttpd, which used SCGI to run rails.

    Posted 21 Dec 2005 at 09:43
  2. Dominic Mitchell wrote:

    That’s a good idea. Unfortunately. I’m coming up against similiar compilation difficulties for mod_scgi right now. 🙁

    I guess I’ll just go back to trying to make FastCGI work.

    Posted 21 Dec 2005 at 12:54
  3. Baz L wrote:

    This link might have helped.

    Posted 21 Dec 2005 at 14:02
  4. Dominic Mitchell wrote:

    Unfortunately, that Fedora example doesn’t help because I’m on Apache 2.2 (and consequently APR 1).

    Yes, I’m a glutton for punishment. 🙂

    Posted 21 Dec 2005 at 15:06
  5. Ken wrote:

    dominic…. i hear you.. i’ve tried about fastcgi for 3 days straight and i’ve just about had it. although i was able to get apache + scgi up and running, I then couldn’t figure out how to v-host with the scgi service in windows.. alas i revert back to trying to get fastcgi going. If you discover anything please alert a fellow soilder in the same battle.

    Posted 02 Jan 2006 at 19:49