Installed FastCGI

Update Feb 10, 2008: See this post where it is now successfully installed! W00t!

Update Nov 10, 2006: FastCGI isn’t stable. So I am disabling it. I’d sometimes see a 30 second timeout error right next to a 2 second load time. It just isn’t stable. :-( Sometimes it would crap out on an upload, sometimes on downloads…

The whole site should be much faster now that I’ve set up FastCGI on my Dreamhost account :-)

Here’s how I had configured it:Put the following at the beginning of the .htaccess file of the directory I wanted to run FastCGI on. IE: in ./lee.org for the whole site or in ./lee.org/blog for just the blog:
Options +ExecCGI
AddHandler php5-fastcgi .php
Action php5-fastcgi /php5-wrapper.fcgi

Create a file called php5-wrapper.fcgi and put it at ./lee.org. Make it executable by the user. Put the following in it:

#!/bin/sh
export PHP_FCGI_CHILDREN=3
exec /usr/local/dh/cgi-system/php5.cgi

Click the checkbox in the Domain section of the Dreamhost Panel saying “FastCGI”.

That’s it.

One Comment

  1. […] installed PHP_FastCGI on the blog and the Flaming Lotus Girls wiki. I had tried installing it a year ago but it proved unstable. New instructions were put on the Dreamhost wiki and it’s been running […]

Leave a Comment

Do not write "http://" or "https://" in your comment, it will be blocked. It may take a few days for me to manually approve your first comment.