MT under mod_perl
I just got mod_perl running and my Movable Type is now executing under mod_perl.
It's a *lot* faster.. 3 times at least.
Here's the apache config I put in..
<IfModule mod_perl.c>
<Location /mtype>
SetHandler perl-script
PerlHandler Apache::PerlRun
Options +ExecCGI
</Location>
</IfModule>
Now this isn't the best way to do this.. since it involes moving all static pages (images, docs, stylesheets) out of the mtype location.. I'm looking into doing it in a more elegant way.
Huge difference in speed!
Comments
Since all the MT files have a .cgi extension, just tell mod_perl to only handle *.cgi files. That would seem to get around the problem of having to shuffle files around.
Of course, I'd have to hack around a bit to figure out the right incantation to make that work. And I've got this silly little book to be writing...
Posted by: Jeremy Zawodny | September 2, 2002 10:24 PM
Jeremy wrote:
> Of course, I have this book I should be writing.
Is it called "Spamming your book via weblogs"? :-)
Posted by: Steve Friedl | September 2, 2002 10:51 PM
No.
But this is spamming.
My book's web site is: http://advanced-mysql.com/
:-)
Posted by: Jeremy Zawodny | September 2, 2002 11:06 PM
Almost nobody reads this blog anyway :)
Posted by: kasia | September 2, 2002 11:07 PM
School starts tomorrow, I'll post it on the school bulletin board ;)
Posted by: Lynne | September 3, 2002 09:04 AM
Hey, I'm not just almost nobody. I am nobody!
Posted by: Dan de Isaacs | September 3, 2002 11:51 AM
If you install MT as a mod_perl handler, its even faster. In fact, it runs ludicrously quickly, considering how sluggish it can be as a CGI app.
(found your blog while googling for mod_throttle. lots of great info here, thanks!)
Posted by: Oopsz | November 26, 2003 04:27 PM