[MTOS-dev] Modperl 2 support?

Alvar Freude alvar at a-blast.org
Thu Dec 13 17:00:01 PST 2007


Hi,

-- Vincent Veselosky <veselosky at gmail.com> wrote:

> Is anyone currently working on MT support for mod_perl 2? If not, I
> would consider taking a crack at it myself. From a quick grep through
> the code, it looks like in the MT code itself the Modperl-specific
> stuff is pretty well isolated. Can't speak about the external modules,
> but I hope they won't get in the way.

MT 4 does not work out of the box even with mod_perl 1!

I tried it and after several tests I had a running system, but not 
everything was working.

It would be very good, it MT works with mod_perl, because in a good 
environment it eats less memory then FastCGI and can be very fast (when 
no slow SQL or an ORM wrapper with dozens of SQL queries is used ;-) ).



To get MT partly working with mod_perl 1:

use most modules in a startup.pl (including plugins!), to get them shared 
between all Apache processes. MT uses often "require" for loading them at 
runtime, which is really no good idea with mod_perl, because then their 
memory is not shared!

And in the httpd.conf (or better: an include file!) put the following:


<Perl>
  $ENV{MT_CONFIG} = '/path/to/mt/mt-config.cgi';
  eval "use MT::Bootstrap App => 'MT::App::CMS'";
</Perl>


There you also should define all the Apache Handlers and set the names of 
the scripts in mt-config.cgi.


I had some troubles and deactivated it. :(


Ciao
  Alvar


-- 
** Alvar C.H. Freude, http://alvar.a-blast.org/
** http://www.assoziations-blaster.de/
** http://www.wen-waehlen.de/
** http://odem.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://www.sixapart.com/pipermail/mtos-dev/attachments/20071214/84991cc5/attachment.bin 


More information about the MTOS-dev mailing list