Six Apart Developer Wiki

The Movable Type and Professional Network Wiki has been moved to wiki.movabletype.org.

Recent Changes

FastCGINotes

[Login] Change #7 by OpenID Identitydrry at 2007-02-16 16:33:52.

Brad's Notes

Neil's instructions can be simplified further by taking advantage of the latest version of the MT "Bootstrap" module which supports FastCGI natively. The latest version can be found in Movable Type 3.34.

If you are running MT Enterprise or MT 3.33, you can download Bootstrap.pm separately and install it to: MT_DIR/lib/MT/Bootstrap.pm.

This version of Bootstrap.pm eliminates the need to alter any of your .cgi files as described in many previous tutorials. All you need to do is rename them with a .fcgi extension (or .fpl, depending on your server environment) and configure the web server to handle scripts with that extension via FastCGI.

Finally, configure MT to use the appropriate script names for each of the following:

AdminScript         mt.fcgi
ActivityFeedScript  mt-feed.fcgi
CommentScript       mt-comments.fcgi
TrackbackScript     mt-tb.fcgi
SearchScript        mt-search.fcgi
XMLRPCScript        mt-xmlrpc.fcgi
AtomScript          mt-atom.fcgi
UpgradeScript       mt-upgrade.fcgi

You are only required to specify the scripts above that you want to run as FastCGI scripts and do not need to specify those which you don't use. For example, if you don't use XML-RPC or Atom, you can omit XMLRPCScript and AtomScript. Specifying AdminScript, CommentScript, TrackbackScript and SearchScript are highly recommended if you use all of those features.

Ian's Notes

Just to add to Brad's notes - Make sure you've installed the CPAN module FCGI. Also, if you're running SuExec on Apache 2, include 'FastCgiWrapper on' ...within the 'IfModule fastcgi_module' addition to httpd.conf.

[Login] Change #7 by OpenID Identitydrry at 2007-02-16 16:33:52.
Six Apart
Makers of weblog software and services for individuals, organizations and businesses.