« Table of Contents
Movable Type can run under mod_perl in either Registry mode or as a set of full-fledged handlers. NOTE that in order to run under mod_perl, you must have Apache::Request and Apache::Cookie installed; these modules comprise the libapreq distribution, which can be downloaded from here:
Setting up MT under Registry is just like setting up any other CGI script under Registry; add the following to your httpd.conf:
PerlModule Apache::Registry <Location /path/to/mt> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI </Location>
You will need to host your docs, images, and styles.css files in another directory outside of /path/to/mt, just as if you had placed MT into the cgi-bin. See Troubleshooting for more details.
If you want even more speed, consider running Movable Type to run as a mod_perl handler. You will need to set up two handlers: one for the main application, and one for your front-end comments.
<Perl> use lib '/path/to/mt/lib'; </Perl> PerlModule MT::App::CMS <Location /mt/app> SetHandler perl-script PerlHandler MT::App::CMS PerlSetVar MTConfig /path/to/mt.cfg </Location> PerlModule MT::App::Comments <Location /mt/comments> SetHandler perl-script PerlHandler MT::App::Comments PerlSetVar MTConfig /path/to/mt.cfg </Location>
TemplatePath /path/to/mt/tmpl DataSource /path/to/db CGIPath http://my.server.com/mt/ StaticWebPath /mt-static/ ImportPath /path/to/mt/import
StaticWebPath should correspond to the URI you set when setting up your
images, docs, and styles.css (in Step 1).
Main Index Template,
Individual entry archive template,
Comment Listing Template,
Comment Preview Template, and
Comment Error Template.