Sean’s Obsessions

  • Archives

05 May

Speeding Up Movable Type Without mod_perl

Fedora uses Apache 2 and mod_perl2, which is completely incompatible with Movable Type. Even under Apache::compat, there are a lot of problems which I got tired of debugging.

Since I’m using it for SmokePing, I already had CGI::Speedy installed, and figured I’d try it with Movable Type. The only thing to change is the shebang line in mt.cgi (and the others, I suppose), from

#!/usr/bin/perl -w

to

#!/usr/bin/speedy -w

Instant performance increase. I didn’t take any measurements, but it’s noticeable.

BTW, SpeedyCGI can be installed from CPAN:

# perl -MCPAN -e ‘install CGI::SpeedyCGI’

I’ve also done this to mt-comments.cgi and mt-tb.cgi and all tests appear to work well. I’ve also changed the shebang line to

#!/usr/bin/speedy -w — -M5 -g

to limit speedy to using 5 worker tasks, and to have all the CGIs share one set of worker tasks. My machine doesn’t have a lot of memory, and traffic is low, so YMMV.

2 Responses to “Speeding Up Movable Type Without mod_perl”

  1. 1
    blog.hardcore.lt/ve Says:

    SpeedyCGI

    išskaičiau , kad mačija ir sudėjau šitą — SpeedyCGI. hm. gal ferma komentarus ir greičiau paišo :). sorry, loky :)…

  2. 2
    Dimmu Says:

    This does not work with MT3.11

© 2008 Sean’s Obsessions | Entries (RSS) and Comments (RSS)

Powered by Wordpress, design by Web4Sudoku, based on Pinkline byGPS Gazette