From: <el...@us...> - 2005-11-13 21:52:59
|
Hi Shimon, Good to know someone else has used the same kind of configuration. I have not found the root cause, but I have solved my problem for now. After copying my pagekit-directories back and forth trying different vhost-configurations I finally realised it had something to do with the name of the vhost!! I now have a number of vhosts running pagekit, but using the name mon.mydomain.net is failing! :-] I have tripple-checked my /etc/hosts... xmllint was a nice tip. (my profession is in ASIC-design, I guess there are some similarities to our HDL-lint tools.) Also found out it is not that complicated to run an interactive perl-debugger in combination with mod_perl, havent tried it yet though. Thanks! /Carl On Sun, 13 Nov 2005, Shimon Rura wrote: > Date: Sun, 13 Nov 2005 14:12:51 -0500 > From: Shimon Rura <sh...@ru...> > To: "el...@us..." <el...@us...> > Cc: pagekit-users <pag...@li...> > Subject: Re: [Pagekit-users] Error using virtual hosts (Expected token not > present) > > 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 that > your second host's Config.xml file is invalid? If you're unsure, try running > it through a checker like xmllint. You can also check the syntactic validity > 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.mydomain.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, and >> 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 >> >> > |