[MTOS-dev] mod-perl 1 problem with Bootstrap module

Dave Morgan dave at 1001111.com
Mon Feb 18 11:59:15 PST 2008


Hi All,

As mentioned before we are working on getting MTOS to run under  
mod_perl 1
We are not using handlers, just the mod-perl Registry. From  
httpd.conf, the cgi-bin
directory config is:

# mod-perl
                 SetHandler perl-script
                 PerlHandler Apache::Registry
                 Options +ExecCGIe behaviour

SendPerlHeader is not required.

Code changes:
In App.pm line 731 change
	$q->$r->args
to
	$q->args

In mt-check.cgi lines 26 and 59 change:
	my to our

At this point we are having problems in that after the first few  
calls to mt.cgi (1-5, not a repeatable number)
all subsequent calls to mt.cgi will not execute the Bootstrap module  
code.

Any ideas? We are very close to getting this to work, I just need to  
understand the behaviour.
Our startup.pl is below.

TIA
Dave

Our minimum startup.pl is

#####################################################################
#!/usr/bin/perl
require Exporter;
use strict;

$ENV{PATH} = '/usr/bin:/bin:/usr/sbin:/sbin:/opt/bin';

$ENV{"DSOURCE"}="dbi:Pg:dbname=accounting;host=dbserver";
$ENV{"DATACLERK"}="mtype";
$ENV{"PSSWD"}="test";

use Apache::Request;
use Apache::Registry ();
use Apache::DBI ();
use DBD::Pg();

Apache::DBI->connect_on_init($ENV{"DSOURCE"}, $ENV{"DATACLERK"}, $ENV 
{"PSSWD"},
                 { PrintError => 1, #warn() on errors
                   RaiseError => 0, # don't die on error
                   AutoCommit => 1, # commit executes immediately
                 }
);

use Apache::Cookie;
use CGI ();
CGI->compile(':standard');

use lib '/home/tomcat/MT/MT-4.1b2-en/lib/MT';
use lib '/home/tomcat/MT/MT-4.1b2-en/lib';
use lib '/home/tomcat/MT/MT-4.1b2-en/extlib';
use lib '/home/tomcat/MT/MT-4.1b2-en/plugins';

use Data::ObjectDriver;
use Data::ObjectDriver::BaseObject;

use MT;
use MT::App;
use MT::Asset;
use MT::Association;
use MT::Atom;
use MT::AtomServer;
use MT::Auth;
use MT::Author;
# use MT::BackupRestore;
use MT::BasicAuthor;
use MT::BasicSession;
# use MT::Blocklist;
use MT::Blog;
use MT::Bootstrap;
use MT::Builder;
use MT::Callback;
use MT::Category;
use MT::Comment;
use MT::Component;
use MT::Config;
use MT::ConfigMgr;
use MT::Core;
use MT::DefaultTemplates;
use MT::Entry;
use MT::ErrorHandler;
use MT::FileInfo;
use MT::FileMgr;
use MT::Folder;
use MT::I18N;
use MT::Image;
use MT::Import;
use MT::ImportExport;
use MT::IPBanList;
use MT::JunkFilter;
use MT::L10N;
use MT::Log;
use MT::Mail;
use MT::Memcached;
use MT::Notification;
use MT::Object;
use MT::ObjectAsset;
use MT::ObjectDriverFactory;
use MT::ObjectScore;
use MT::ObjectTag;
use MT::Page;
use MT::Permission;
use MT::Placement;
use MT::Plugin;
use MT::PluginData;
use MT::Promise;
use MT::Request;
use MT::Role;
use MT::Sanitize;
use MT::Scorable;
use MT::Serialize;
use MT::Session;
use MT::Tag;
use MT::Task;
use MT::TaskMgr;
use MT::TBPing;
use MT::Template;
use MT::TemplateMap;
use MT::TheSchwartz;
use MT::Trackback;
use MT::Util;
use MT::WeblogPublisher;
use MT::XMLRPC;
use MT::XMLRPCServer;
use MT::App::ActivityFeeds;
use MT::App::CMS;
use MT::App::Comments;
use MT::App::NotifyList;
use MT::App::Search;
use MT::App::Trackback;
use MT::App::Wizard;
use MT::Asset::Audio;
use MT::Asset::Image;
use MT::Asset::Video;
use MT::Auth::MT;
use MT::Auth::BasicAuth;
use MT::Auth::LiveJournal;
use MT::Auth::OpenID;
use MT::Auth::TypeKey;
use MT::Auth::Vox;
use MT::FileMgr::Local;
use MT::Plugin::JunkFilter;
use MT::Plugin::L10N;
use MT::Template::Context;
use MT::Template::ContextHandlers;
use MT::TheSchwartz::Error;
use MT::TheSchwartz::ExitStatus;
use MT::TheSchwartz::FuncMap;
use MT::TheSchwartz::Job;
use MT::Util::Archive;
use MT::Util::Captcha;
use MT::Util::Archive::Zip;
# use MT::Util::Archive::Tgz;
use MT::Worker::Publish;
use MT::Worker::Sync;

use MultiBlog;
use spamlookup;

1;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.sixapart.com/pipermail/mtos-dev/attachments/20080218/493f00c7/attachment-0001.html 


More information about the MTOS-dev mailing list