September 02, 2002
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!

Posted September 02, 2002 08:46 PM in Apache , Blogging , Geek Stuff
TrackBack URL for this entry: http://www.unix-girl.com/mt/mt-tb.cgi/84
Comments
On September 2, 2002 10:24 PM Jeremy Zawodny added:

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...

#
On September 2, 2002 10:51 PM Steve Friedl added:

Jeremy wrote:
> Of course, I have this book I should be writing.

Is it called "Spamming your book via weblogs"? :-)

#
On September 2, 2002 11:06 PM Jeremy Zawodny added:

No.

But this is spamming.

My book's web site is: http://advanced-mysql.com/

:-)

#
On September 2, 2002 11:07 PM kasia added:

Almost nobody reads this blog anyway :)

#
On September 3, 2002 09:04 AM Lynne added:

School starts tomorrow, I'll post it on the school bulletin board ;)

#
On September 3, 2002 11:51 AM Dan de Isaacs added:

Hey, I'm not just almost nobody. I am nobody!

#
On November 26, 2003 04:27 PM Oopsz added:

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!)

#
Trackbacks
Steve's weblog:mod_perl rocks
Well, my webmistress got mod_perl working on our server, so now Movable Type is much faster - wow! The old
(read more)
September 2, 2002 10:42 PM
Ask Bjørn Hansen:Movable Type under mod_perl
Kasia configured her Movable Type installation to run under mod_perl. I've done that too since I installed the 2.0 beta I got Ben to give me ("I get beta; you get patches?"). :-) Yes, it rocks. If Kasia had followed the detailed documentation for prope...
(read more)
September 4, 2002 07:01 PM