FastCGI is a language-independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs.
-- http://www.fastcgi.com/
Install FastCGIEngineContrib to use FastCGI with Foswiki.
Dreamhost's pages on FastCGI: