I’ve got MovableType 2.0 running under mod_perl, with good performance enhancements. But I needed to make a couple of changes to my server that apparently aren’t needed in a more vanilla setup.
The machine running MT is on Mandrake 8.1 which installs an Advanced Extranet configuration of Apache that I’ve updated with the latest security fixes, of course. It splits the server into two logically separate servers, one that handles normal requests for performance, and another that handles the mod_perl requests. The expected configuration setup as documented by MT is fine, but I also had to tweak the portion of the httpd.conf file dealing with the URL rewrite of the requests that are redirected to the httpd-perl instance:
RewriteRule ^(.*\/mt\/.*\.cgi)$ http://localhost:8200$1 [P]
I also needed to add a statement to get the MT libraries located by the Perl @INC list, though I haven’t heard back on whether this is specific to my configuration, or required for any MT/mod_perl setup. The documentation says that @INC is frozen when the server starts up, so it would see like this affects everyone because mt.cgi tries to modify that list. This goes in httpd-perl.conf:
PerlSetEnv PERL5LIB /var/mt/lib
Wow, thanks a lot! I’ve been battering my head against MT all day trying to get it to play nicely with mod_perl, and here’s the solution, all nicely done for me.
I have the same issue with it not being able to find the MT libraries.
Comment by Seldo — 6/6/2003 @ 7:19 pm