From: Shimon R. <sh...@ru...> - 2005-11-13 19:12:57
|
Hi Carl, I have used this configuration several times, on Apache 1.3 and 2, and haven't had any difficulties. The error message you're getting sounds like a parse error. Could it be tha= t your second host's Config.xml file is invalid? If you're unsure, try runnin= g it through a checker like xmllint. You can also check the syntactic validit= y of your perl files using "perl -c Foo.pm <http://Foo.pm>". If that's not it, you could try placing "print STDERR" messages in various places in the pagekit initialization (->startup) code and see how far it gets. I would guess that message is coming from a module that pagekit uses, rather than pagekit itself, but you might have to do some sleuthing to find out exactly where. Good luck! shimon. On 11/12/05, el...@us... <el...@us...> wrote: > > > Hi! > > I've just set up two virtual hosts running PageKit. > > (mydomain.net <http://mydomain.net> & mon.mydomain.net<http://mon.mydomai= n.net> > ) > > The pagekit files for the first (default) one are in www/pagekit, and for > the second one in www/mon/pagekit > > > > www/pagekit/ > +---------+ Config/ > +---------- - > | Content/ > +---------- - > | Model/ > +---------+ MyPageKit/ > | +---------- > | : Common.pm <http://Common.pm> > | : ModelDef.pm > | View/ > +---------- - > | contrib/ > +---------- - > > > www/mon/ > +---------+ pagekit/ > +---------+ Config/ > +---------- - > | Content/ > +---------- - > | Model/ > +---------+ MyPageKit2/ > | +---------- > | : Common.pm <http://Common.pm> > | : ModelMon.pm > | View/ > +---------- - > | contrib/ > +---------- - > > > I added some debug info and it seems as if both ModelDef and ModelMon, an= d > the two "Common" modules are initialized with correct root-directories: > > pkit_root: .../www/pagekit > pkit_root: .../www/mon/pagekit > > The default server works fine, but when I try the second one (mon) I get = a > 500 - Internal Server Error: > > [Sun Nov 13 01:22:46 2005] [error] [client 192.168.0.2<http://192.168.0.2= >] > Expected token not present > [Sun Nov 13 01:22:47 2005] [error] [client 192.168.0.2<http://192.168.0.2= >] > Expected token not present > > > ...and PageKit dies in sub _fatal_error > > > Is this setup supposed to work? Can the uri_prefix setting be involved? > Any ideas where I can find out more about the token message? (I am using > Apache2) > > /Carl > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Pagekit-users mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-users > > |