You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
(18) |
May
(53) |
Jun
(76) |
Jul
(13) |
Aug
(11) |
Sep
(3) |
Oct
(26) |
Nov
(12) |
Dec
(14) |
2002 |
Jan
(5) |
Feb
(21) |
Mar
(34) |
Apr
(34) |
May
(11) |
Jun
(5) |
Jul
(4) |
Aug
(58) |
Sep
(50) |
Oct
(32) |
Nov
(56) |
Dec
(3) |
2003 |
Jan
(7) |
Feb
(21) |
Mar
(9) |
Apr
(2) |
May
(2) |
Jun
(29) |
Jul
(7) |
Aug
(5) |
Sep
(15) |
Oct
(18) |
Nov
(6) |
Dec
(10) |
2004 |
Jan
(14) |
Feb
(6) |
Mar
(17) |
Apr
(33) |
May
(13) |
Jun
(9) |
Jul
(22) |
Aug
(15) |
Sep
(9) |
Oct
(7) |
Nov
(19) |
Dec
(7) |
2005 |
Jan
(2) |
Feb
(4) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(10) |
Dec
|
2006 |
Jan
(4) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(4) |
Jul
(10) |
Aug
(1) |
Sep
(2) |
Oct
(2) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(16) |
Sep
(6) |
Oct
(2) |
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Erik <eri...@bo...> - 2005-11-23 13:23:19
|
Hi I have played with pagekit for some time now. And now I would be able to have a site that use UTF8 internally. But how to I do that. The easy part is to have all files in UTF-8 and save to the DB in UTF-8 and so on. But pagekit are smart and sends the page in the encoding the browser prefers. That is not any problem. But who do I handle the input from a form? I mean how do I know what char encoding the web-browser are sending in? I can't trust the outgoing encoding because that is trivial to change in ant browser. Afaik there are no serten way to tell what encoding by just looking at the string. What are you doing to fix this? Om my previous site i "converted" all to Latin-1. But that was just a ugly hack. utf8:Is_utf8() and Encode::is_uft8() won't help they say false on every string passed by apache. :/ One way is to block pagekit and send everything in UTF-8 because most often the browser will send the return in UTF-8... but that solution aren't bullet prof. The user can still send in eg Latin-1 or the browser do not handle UTF-8 (rare). Any ideas? --=20 /erikg=20 =20 Erik G=FCnther eri...@bo... System Developer Bokus AB +46 (0)40 - 35 21 19 icq: 160744619 = =20 =20 Fortune: 'Course, I haven't weighed in yet. :-) -- Larry Wall in <199...@wa...> |
From: Shimon R. <sh...@ru...> - 2005-11-14 00:42:35
|
Carl, Great, I'm glad you solved your problem. You mentioned running an interactive Perl debugger with mod_perl -- do you have any suggestions for where I can learn about this? I've always use "print" debugging in pagekit apps, but frankly this is kinda lame and I'd be much happier if I could hav= e something akin to the remote debugging that Java webapps allow -- you can ask the java VM to listen on a specified port and connect to it using a debugger such as the one in the Eclipse IDE. If I could connect to Perl's interpreter in a similar fashion for debugging mod_perl apps, that would be really sweet. A google search turns up http://perl.apache.org/docs/1.0/guide/debug.html#Interactive_mod_perl_Debug= ging Does anyone know if that is a good document? Thanks, shimon. On 11/13/05, el...@us... <el...@us...> wrote: > > > 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 <http://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> <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 i= t > > 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> <http://mydomain.net> & > mon.mydomain.net <http://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> <http://Common.pm> > >> | : ModelDef.pm > >> | View/ > >> +---------- - > >> | contrib/ > >> +---------- - > >> > >> > >> www/mon/ > >> +---------+ pagekit/ > >> +---------+ Config/ > >> +---------- - > >> | Content/ > >> +---------- - > >> | Model/ > >> +---------+ MyPageKit2/ > >> | +---------- > >> | : Common.pm <http://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> > <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> > <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 > >> > >> > > > > > ------------------------------------------------------- > 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 > > |
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 >> >> > |
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 > > |
From: <el...@us...> - 2005-11-13 00:49:02
|
Hi! I've just set up two virtual hosts running PageKit. (mydomain.net & 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 | : ModelDef.pm | View/ +---------- - | contrib/ +---------- - www/mon/ +---------+ pagekit/ +---------+ Config/ +---------- - | Content/ +---------- - | Model/ +---------+ MyPageKit2/ | +---------- | : 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] Expected token not present [Sun Nov 13 01:22:47 2005] [error] [client 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 |
From: Boris Z. <bz...@2b...> - 2005-08-29 20:40:59
|
Hi, here is a first try to port Apache::PageKit to the new mod_perl2 API. Try it. http://eg.2bz.de/Apache2-PageKit-2.14_14.tar.gz You need perl 5.8, apache2, mod_perl2 and at least libapreq2.06-dev. Good luck. -- Boris |
From: Shimon R. <sh...@ru...> - 2005-08-19 03:18:35
|
Has anyone tried creating a custom LAMPPIX bootable CD with a PageKit site? LAMPPIX (http://lamppix.tinowagner.com/) is a linux distribution based on Knoppix. Like knoppix, it is designed to boot from CD and autodetect a bunch of different hardware. But lamppix also includes apache and mysql/postgresql databases, and is designed to create bootable demos of LAMP-based web applications. I like the idea of a bootable demo CD a lot, but haven't had much time to experiment with it. Has anyone else tried making a LAMPPIX or similar bootable demo CD? Have you gotten PageKit on it? (I'm also hoping that perhaps this will give someone a good reason to try it out and let me know how it goes... :) Thanks! shimon. P.S. I just released a new PageKit-based web application at http://voo2do.com. It's an ajax-ish todo list manager and has had a surprising popularity surge since I announced it two days ago. |
From: Boris Z. <bo...@2b...> - 2005-05-24 21:51:51
|
Hi Evan, sorry for the delay, I had no chance to read the list lately. Are you sure the page is delivered in the wrong charset? It looks to me, that your client preferes another charset, or is only able to serve the default (iso-8859-1). You setup look correct to me. All clients told the server what charset they can handle. If this header is not present iso-8859-1 is assumed. If pagekit is able to convert the page to a charset that the client can handle, it does that. That might explain why you end up with a charset iso-8859-1. Here is a little prove: The page http://eg.2bz.de/charset includes char that are handled different for iso-8859-1 and utf8. I download the page with wget: wget --header='Accept-Charset: iso-8859-1' http://eg.2bz.de/charset and a second time with wget --header='Accept-Charset:utf-8' http://eg.2bz.de/charset this result in two files, delivered in different charsets as the client requests. -rw-r--r-- 1 boris users 121 2005-05-24 23:54 charset -rw-r--r-- 1 boris users 146 2005-05-24 23:54 charset.1 0000: 3c 68 74 6d 6c 3e 0a 3c 62 6f 64 79 3e 0a 3c 68 <html>.<body>.<h 0010: 31 3e 69 6e 64 65 78 2e 74 6d 70 6c 3a 20 73 74 1>index.tmpl: st 0020: 72 61 26 23 32 32 33 3b 65 20 20 20 73 74 72 61 raße stra 0030: df 65 20 f6 f6 e4 f6 fc e4 fc f6 fc fc 20 20 3c .e .......... < 0040: 2f 68 31 3e 0a 3c 62 72 3e 0a 3c 68 31 3e 73 74 /h1>.<br>.<h1>st 0050: 72 61 df 65 20 df df f6 e4 f6 e4 f6 fc e4 f6 e4 ra.e ........... 0060: fc fc 20 3c 2f 68 31 3e 0a 3c 2f 62 6f 64 79 3e .. </h1>.</body> 0070: 0a 3c 2f 68 74 6d 6c 3e 0a .</html>. 0000: 3c 68 74 6d 6c 3e 0a 3c 62 6f 64 79 3e 0a 3c 68 <html>.<body>.<h 0010: 31 3e 69 6e 64 65 78 2e 74 6d 70 6c 3a 20 73 74 1>index.tmpl: st 0020: 72 61 26 23 32 32 33 3b 65 20 20 20 73 74 72 61 raße stra 0030: c3 9f 65 20 c3 b6 c3 b6 c3 a4 c3 b6 c3 bc c3 a4 ..e ............ 0040: c3 bc c3 b6 c3 bc c3 bc 20 20 3c 2f 68 31 3e 0a ........ </h1>. 0050: 3c 62 72 3e 0a 3c 68 31 3e 73 74 72 61 c3 9f 65 <br>.<h1>stra..e 0060: 20 c3 9f c3 9f c3 b6 c3 a4 c3 b6 c3 a4 c3 b6 c3 ............... 0070: bc c3 a4 c3 b6 c3 a4 c3 bc c3 bc 20 3c 2f 68 31 ........... </h1 0080: 3e 0a 3c 2f 62 6f 64 79 3e 0a 3c 2f 68 74 6d 6c >.</body>.</html 0090: 3e 0a >. I guess your testclient does not include a header or prefere iso-8859-1 and pagekit kindly provide that ;-) Am Dienstag, 10. Mai 2005 06:12 schrieb Evan Miller: > Hello, > > I am trying to have the server declare UTF-8 as the charset when it > serves up a page, but I can't get it to change from ISO-8859-1. Here is > the relevant part of my Config.xml: > > <GLOBAL > default_page="index" > gzip_output = "static" > login_page="login1" > model_base_class="WSOKit::Common" > model_dispatch_prefix="WSOKit::Model" > recent_login_timeout="10" > session_expires="+1y" > default_input_charset="utf-8" > default_output_charset="utf-8" > /> > > I've also tried "utf8" for the charset name, as well as the capitalized > forms, but no luck. Even when I set Apache's default character set to > UTF-8, PageKit pages are still served as ISO-8859-1. Any ideas? > > Evan > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > Pagekit-users mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-users -- Boris -- Boris |
From: Evan M. <Eva...@wi...> - 2005-05-10 04:13:31
|
Hello, I am trying to have the server declare UTF-8 as the charset when it serves up a page, but I can't get it to change from ISO-8859-1. Here is the relevant part of my Config.xml: <GLOBAL default_page="index" gzip_output = "static" login_page="login1" model_base_class="WSOKit::Common" model_dispatch_prefix="WSOKit::Model" recent_login_timeout="10" session_expires="+1y" default_input_charset="utf-8" default_output_charset="utf-8" /> I've also tried "utf8" for the charset name, as well as the capitalized forms, but no luck. Even when I set Apache's default character set to UTF-8, PageKit pages are still served as ISO-8859-1. Any ideas? Evan |
From: Neateye <nit...@ao...> - 2005-05-08 23:05:21
|
Call out Gouranga be happy!!! Gouranga Gouranga Gouranga .... That which brings the highest happiness!! |
From: Boris Z. <bz...@2b...> - 2005-03-26 19:21:52
|
Hi, I upload Apache::PageKit 1.18 and Apache::PageKit 2.14_14. Both have only a very minor change in the testsuit. No need to update. I just want that new users survive the testsuit ;-) http://eg.2bz.de/Apache-PageKit-1.18.tar.gz http://eg.2bz.de/Apache-PageKit-2.14_14.tar.gz 1.18 - Allow testsuit to catch up with Changes in Apache::Test. POST's can be redirected on the fly. Otherwise the tests 05, 06 and 07 fail. ( Boris Zentner ) -- Boris |
From: Boris Z. <bz...@2b...> - 2005-02-16 08:19:52
|
Hi, not much new, just address shimon's session problem a bit. The new global option use_recent_login_timeout is a big benefit if you do _not_ use require_login = "recent" anywhere and you set use_recent_login_timeout = "no" . Probably further version have yes, no and auto so you do not keep track of the require_login option in the average case. 2.14_13 - Add: new config option use_recent_login_timeout in the global section of Config.xml. Defaults to yes. ( Boris Zentner, Shimon Rura ) - Adjust Makefile.PL to support ExtUtils::MakeMaker > 6.21 ( Boris Zentner, Mike Castle ) http://eg.2bz.de/Apache-PageKit-2.14_13.tar.gz -- Boris |
From: Boris Z. <bz...@2b...> - 2005-02-14 15:11:20
|
Hi, here is a quick intro on how Apache::PageKit is working. Written in german. Hopefully someone like to read it. http://eg.2bz.de/html/article_borisz68.html -- Boris |
From: Boris Z. <bo...@2b...> - 2005-02-02 01:39:09
|
Hi Collin, It looks that you update a application from mod_perl 1 to mod_perl 2. In mod_perl 2, there is no Apache::Constants anymore ;-). Is is renames to Apache::Const. Findout what you are doing there. Mostlikely it is use Apache::Constants qw/REDIRECT DONE OK/; or similar. Replace that line with use Apache::Const qw/REDIRECT DONE OK/; propably thats enough. Am Dienstag, 1. Februar 2005 05:12 schrieb Collin Starkweather: > I am trying to install Apache::PageKit on Apache2 on a Gentoo box. I > seem to be in the home stretch but have hit a stumbling block. > > I installed mod_perl 1.99.17-r1 and libapreq2 2.04.03 and > Apache::PageKit 2.14_12. However, when I try to start Apache2, I get > > -- > # APACHE2_OPTS='-DPERL' /etc/init.d/apache2 start > * Apache2 has detected a syntax error in your configuration files: > Syntax error on line 73 of /usr/lib/apache2/conf/vhosts/vhosts.conf: > Failed to load PageKit::Common (Can't locate Apache/Constants.pm in > @INC (@INC contains: > /app/apache2/site/www.collinstarkweather.com/pagekit/Model > /home/httpd/perl /usr/lib/perl5/site_perl/5.8.5/i686-linux > /usr/lib/perl5/site_perl/5.8.5/Apache2 /usr/lib/perl5/site_perl/5.8.5 > ... blah blah blah ... > /usr/lib/perl5/site_perl/5.8.5/Apache2/Apache/PageKit.pm line 156.\n > # > -- > > I feel like I am missing something fundamental. If I try to install > Apache::Constants with `perl -MCPAN -e 'install Apache::Constants`, > installation of mod_perl-1.29 commences, which is not what I want. Is > Apache::Constants supposed to be bundled with mod_perl? > > Thanks, > > -Collin > > P.S. Output of `make test` (summary: All test successful) is below my > sig in case it is helpful. -- Boris |
From: Collin S. <col...@co...> - 2005-02-01 20:29:57
|
I am trying to install Apache::PageKit on Apache2 on a Gentoo box. I seem to be in the home stretch but have hit a stumbling block. I installed mod_perl 1.99.17-r1 and libapreq2 2.04.03 and Apache::PageKit 2.14_12. However, when I try to start Apache2, I get -- # APACHE2_OPTS='-DPERL' /etc/init.d/apache2 start * Apache2 has detected a syntax error in your configuration files: Syntax error on line 73 of /usr/lib/apache2/conf/vhosts/vhosts.conf: Failed to load PageKit::Common (Can't locate Apache/Constants.pm in @INC (@INC contains: /app/apache2/site/www.collinstarkweather.com/pagekit/Model /home/httpd/perl /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl/5.8.5/Apache2 /usr/lib/perl5/site_perl/5.8.5 ... blah blah blah ... /usr/lib/perl5/site_perl/5.8.5/Apache2/Apache/PageKit.pm line 156.\n # -- I feel like I am missing something fundamental. If I try to install Apache::Constants with `perl -MCPAN -e 'install Apache::Constants`, installation of mod_perl-1.29 commences, which is not what I want. Is Apache::Constants supposed to be bundled with mod_perl? Thanks, -Collin P.S. Output of `make test` (summary: All test successful) is below my sig in case it is helpful. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Collin Starkweather, Ph.D. col...@co... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ starky@www Apache-PageKit-2.14_12 $ make test /usr/bin/perl5.8.5 -Iblib/arch/Apache2 -Iblib/lib/Apache2 \ t/TEST -clean [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl5.8.5 /home/starky/junk/Apache-PageKit-2.14_12/t/TEST -clean --documentroot '/home/starky/junk/Apache-PageKit-2.14_12/eg' Can't locate t/conf/apache_test_config.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl/5.8.5/Apache2 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i686-linux/Apache2 /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/5.8.5/i686-linux /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.2/i686-linux /usr/lib/perl5/vendor_perl/5.8.2/i686-linux /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/apache2) at /usr/lib/perl5/vendor_perl/5.8.5/i686-linux/Apache/TestRun.pm line 771. APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= APACHE_TEST_APXS= \ /usr/bin/perl5.8.5 -Iblib/arch/Apache2 -Iblib/lib/Apache2 \ t/TEST -bugreport -verbose=0 [warning] setting ulimit to allow core files ulimit -c unlimited; /usr/bin/perl5.8.5 /home/starky/junk/Apache-PageKit-2.14_12/t/TEST -bugreport -verbose=0 --documentroot '/home/starky/junk/Apache-PageKit-2.14_12/eg' Can't locate t/conf/apache_test_config.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl/5.8.5/Apache2 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i686-linux/Apache2 /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/5.8.5/i686-linux /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.2/i686-linux /usr/lib/perl5/vendor_perl/5.8.2/i686-linux /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/apache2) at /usr/lib/perl5/vendor_perl/5.8.5/i686-linux/Apache/TestRun.pm line 771. /usr/sbin/apache2 -d /home/starky/junk/Apache-PageKit-2.14_12/t -f /home/starky/junk/Apache-PageKit-2.14_12/t/conf/httpd.conf -D APACHE2 using Apache/2.0.52 (prefork MPM) waiting 60 seconds for server to start: ....... waiting 60 seconds for server to start: ok (waited 5 secs) server localhost:8529 started t/01_dummy....................ok t/02_language.................ok t/03_charset..................ok t/04_anon_cookies.............ok t/05_account..................ok t/06_login....................ok t/07_restricted...............ok t/08_fresh_cookie_redirect....ok t/09_charset_tmpl.............ok t/10_pkit_comment.............ok All tests successful. Files=10, Tests=67, 13 wallclock secs (10.28 cusr + 0.59 csys = 10.87 CPU) [warning] server localhost:8529 shutdown starky@www Apache-PageKit-2.14_12 $ |
From: Boris Z. <bz...@2b...> - 2005-01-04 02:34:06
|
Hi again, unfortunely I included a small, but important typo in the 1.16 release. So here is a new try. 1.17 - Fix: a new typo in Makefile.PL -+binmode $template_fh, ':encoding($default_input_charset)'; ++binmode $template_fh, ":encoding($default_input_charset)"; ( Boris Zentner ) Sorry -- Boris |
From: Boris Z. <bz...@2b...> - 2005-01-01 22:18:40
|
Hi, No Big deal, just fix some typos. 1.16 ! The param method returns a empty list in list context if the param was not defined. Older PageKits returned undef ( Boris Zentner ) - Fix: add missing : in binmode $fh, ":encoding(...)"; ( Boris Zentner ) - Fix: typo in scripts/pkit_rename_app.pl ( Boris Zentner ) -- Boris |
From: Boris Z. <bz...@2b...> - 2004-12-25 18:18:05
|
Hi, I write an article for new Apache::PageKit users in german. I hope some of you like to read the Article before it is published. Please do me a flavor and read the text to make it better. Do not wait, just drop me a mail and read it as one of the first. Im ready on 29.12.2004. -- Boris |
From: Boris Z. <bz...@2b...> - 2004-12-25 18:06:47
|
Hi, I just upload Apache-PageKit-2.14_12 to http://eg.2bz.de/Apache-PageKit-2.14_12.tar.gz. It works with the mod_perl >= 1.9916 and libapreq2-2.04_03-dev. http://eg.2bz.de/download The only change is that Apache::ErrorReport should work again with mod_perl2. -- Boris |
From: Erik <eri...@bo...> - 2004-12-22 10:06:15
|
l=F6r 2004-10-09 klockan 15:10 +0200 skrev Boris Zentner: > Hi, > from time to time I think on a version of PageKit that works with CGI=20 > and LWP instead of mod_perl, has anybody a opinion on such a module? It=20 > may work where mod_perl is not avail or when another persistent module=20 > is used like mod_cgi or pperl or whatever. Also CGI::PageKit could=20 > serve pages without Apache. I thought of it as a dropin replacement for=20 > pagekit, just that you get a CGI object instead of apr. Currently this=20 > is only a idea to waste some time. What do you think? >=20 It would be nice to have FCGI::Pagekit. Pagekit in a FCGI environment. It would give the benefits of persistent Pagekit (as in mod_perl) and the benefits of a standalone app that one can slowly immigrate to. When you already have large site it is quite hard to immigrate to Pagekit due to the fact that so match code need to be converted and often there are no time to convert the hole site at once. But small parts can be converted at time to time.=20 I'm actually at braking point where I need the Pagekit in FastCGI environment or at least part of PageKit. Pagekit in a only-CGI environment would be to slow. But then if Pagekit exist in a CGI environment its a Small thing to convert it to a FCGI-environment. Its already multi-usage-safe (due to mod_perl). We have converted several CGI to FastCGI by just adding a loop and remove exit from the code. Like this: my $request =3D FCGI::Request(); my $unload_file =3D '.unload'; my $mtime =3D (stat $unload_file)[9]; while($request->Accept() >=3D 0) { eval { main_body(); }; warn $@ if($@); } continue { exit if (stat $unload_file)[9] > $mtime; } sub main_body { #old CGI-code } =20 The .unload file are for restarting the FastCGI progs by just touching it (touch .unload). And in Apache we only have a FastCGI handler for .fcgi. So we can have two copies (.fcgi and .cgi) of the prog one that are handle by FastCGI and one that are normal CGI (slower of cause, but good for development). --=20 /erikg=20 =20 Erik G=FCnther eri...@bo... System Developer Bokus AB +46 (0)40 - 35 21 19 icq: 160744619 = =20 =20 Fortune: <taniwha> Zoid: we're nuts, but we're productive nuts:) * taniwha wonders what productive nuts taste like |
From: Boris Z. <bo...@2b...> - 2004-12-17 17:53:59
|
Hi Shimon, Am Freitag, 17. Dezember 2004 16:20 hast Du geschrieben: > On Fri, Dec 17, 2004 at 12:58:50PM +0100, Boris Zentner wrote: > > The session's are a tricky thing. But are you really sure that you did > > not use sessions at all? > > > > Off Hand, PageKit does not create a session unless you use the session. > > If you are logged in, the user must have a session, since at least the > > last_activity_time is stored in the session. > > In one site, I don't have user logins, and don't call $model->session ever. > So, I'm pretty sure I never use sessions. In another site, I have logins There you should not see any sessions. > but don't store any data in $model->session. I don't make use of the > last_activity_time there - none of the pages or sections require a recent > login. But you could use it on a page, pagekit can not know and store the time into the session. ( perhaps we can store the last_activity_time in the pkit_user table. And/Or make the last_activity thing a config option. ) > > > > - Can I manually disable instantiation of session if I don't use it? > > > (Or is pagekit using it internally for some reason?) > > > > > > > > > - Could PageKit be made a little smarter in order to eliminate my > > > reason for considering that option? > > > > try > > > > sub pkit_session_setup { > > {} > > } > > > > in Common.pm to trash the session. This might give lots of warnings, but > > perhaps it works. Please let me know. > > This gave me the following warning in the apache error log: > > failed to set up session - session_store_class and session_lock_class must > be defined at /usr/lib/perl5/site_perl/5.8.3/Apache/PageKit.pm line 1258. > Thats ok, just comment out the warning and mensure the time four your requests. Is there a large speedup now? > This warning was printed twice per page request - I'm not sure why (there > are at least three PKIT_COMPONENTs, but only one HTTP request, involved in > the pages I tried, if that's useful). > I take a look, why you see two calls to pkit_session_setup. > For additional info, I added a Carp::confess to that the subroutine that > contains line 1258 of PageKit.pm. The output is below. I don't have time > to trace this call stack now, but perhaps it will be useful to Boris in > understanding why the session setup got called although I didn't use the > session. It is ok to call the pkit_session_setup, if you are a logged user. With pkit_session_setup returning a empty hash, we make the session only valid for this request and it is not slower than using a hash in perl. Please mensure if sub pkit_session_setup { {} } is a large speedup. And Ignore or comment out the warning. > > thanks, > shimon. > > [Fri Dec 17 10:16:27 2004] [error] [client 66.249.64.197] setup_session at > /usr/lib/perl5/site_perl/5.8.3/Apache/PageKit.pm line > 1253\n\tApache::PageKit::setup_session('Apache::PageKit=HASH(0xa59dc34)','u >ndef') > > called at /usr/lib/perl5/site_perl/5.8.3/Apache/PageKit.pm line > 529\n\tApache::PageKit::prepare_page('Apache::PageKit=HASH(0xa59dc34)') > > called at /usr/lib/perl5/site_perl/5.8.3/Apache/PageKit.pm line 216\n\teval > {...} > > called at /usr/lib/perl5/site_perl/5.8.3/Apache/PageKit.pm line > 210\n\tApache::PageKit::handler('Apache::PageKit','Apache::RequestRec=SCALA >R(0xa59dd60)') > > called at -e line 0\n\teval {...} called at -e line 0\n -- Boris |
From: Boris Z. <bo...@2b...> - 2004-12-17 11:31:10
|
Hi Shimon, Am Donnerstag, 16. Dezember 2004 22:41 schrieb sh...@ru...: > Hi, > > Does anyone know of a way to disable instantiation of the > (Apache::SessionX) session object for each pagekit request? I have an > application that does not use session at all, but each page request incurs > the performance hit of instantiating one of these and loading data off disk > or off DB. The session's are a tricky thing. But are you really sure that you did not use sessions at all? Off Hand, PageKit does not create a session unless you use the session. If you are logged in, the user must have a session, since at least the last_activity_time is stored in the session. > > Perhaps a better solution would be "lazy" instantiation of SessionX - only > instantiate it on the first call to $model->session. That way, if any > request does not require access to the session, it will not incur the > startup cost, without the programmer having to actually think about this. > > (Instantiating a session can be slow because it means loading data from > disk or DB.) > > So in short: > > - Can I manually disable instantiation of session if I don't use it? (Or > is pagekit using it internally for some reason?) > > - Could PageKit be made a little smarter in order to eliminate my reason > for considering that option? > try sub pkit_session_setup { {} } in Common.pm to trash the session. This might give lots of warnings, but perhaps it works. Please let me know. > thanks, > shimon. -- Boris |
From: <sh...@ru...> - 2004-12-16 21:41:05
|
Hi, Does anyone know of a way to disable instantiation of the (Apache::SessionX) session object for each pagekit request? I have an application that does not use session at all, but each page request incurs the performance hit of instantiating one of these and loading data off disk or off DB. Perhaps a better solution would be "lazy" instantiation of SessionX - only instantiate it on the first call to $model->session. That way, if any request does not require access to the session, it will not incur the startup cost, without the programmer having to actually think about this. (Instantiating a session can be slow because it means loading data from disk or DB.) So in short: - Can I manually disable instantiation of session if I don't use it? (Or is pagekit using it internally for some reason?) - Could PageKit be made a little smarter in order to eliminate my reason for considering that option? thanks, shimon. |
From: Boris Z. <bz...@2b...> - 2004-12-09 19:34:24
|
Hi, now on http://eg.2bz.de/Apache-PageKit-2.14_11.tar.gz Only minor changes 2.14_11 ! The param method returns a empty list in list context if the param was not defined. Older PageKits returned undef ( Boris Zentner ) - Fix: add missing : in binmode $fh, ":encoding(...)"; ( Boris Zentner ) - Fix: typo in scripts/pkit_rename_app.pl ( Boris Zentner ) -- Boris |
From: Boris Z. <bz...@2b...> - 2004-11-21 17:50:18
|
Hi Alex, Am 21.11.2004 um 10:35 schrieb Alex Deva: > Thanks. I'll try it first thing Monday morning. > Which reminds me. I've been thinking about setting up a development > environment on my iBook G3 (my Darwin came with Apache 1.3.29 and perl > 5.6.0) > > Is there anything I should know about, prior to installing all the > required modules and fighting with httpd.conf a lot? :) I'm especially > worried about updating (or installing, i haven't checked it) libxml2 > and libxsl2 (on RedHat it was easy, you just updated with rpm). Any > other required modules that might have issues running on a Mac with > MacOS 10.2.8? > > Thanks anyone for any advice. > I had no trouble to set up perl 5.8.[145], apache2 mod_perl2 and all required modules for Apache::PageKit. But I use Panther ( 10.3.[56] ). I Installed all custom libraries with fink. http://fink.sourceforge.net/index.php?phpLang=en Also I really love camelbones, even there is no package for your ( 10.2.8 ) but you may request one. See the top of this page: http://camelbones.sourceforge.net/download/fat-install.php > On Friday, November 19, 2004, at 07:39 PM, Boris Zentner wrote: > >> >> Hi Alex, >> >> Am Freitag, 19. November 2004 15:40 schrieb Alex Deva: >>> The env var seems to not be set all the time. This might be because >>> I'm >>> reaching the page via http redirect, and you never know (or do you?) >>> >>> Boris, the correctly spelled method is "header_in" and it works like >>> so: >>> >>> my $referer = $apr->header_in('Referer'); >>> >> >> This works only with apache1. >> >> apache2 and apache1 should support >> my $href = $apr->headers_in; >> >> here is a example: >> >> Maybe you did not see the header, since the client must not send the >> referer >> header. >> >> #### Modelcode ###### >> >> # show all headers >> >> sub alex { >> my $model = shift; >> my $href = $model->apr->headers_in; >> $model->output( >> headers => [ map { +{ name => $_, value => $href->{$_} } } sort >> keys >> %$href >> ] ); >> } >> >> >> ######### alex.tmpl ######### >> <html> >> <body> >> <model_loop headers> >> <model_var name> <model_var value><br> >> </model_loop> >> </body> >> </html> >> >> >> ####### output ( ignore ) ########### >> >> Accept */* >> Accept-Encoding gzip, deflate;q=1.0, identity;q=0.5, *;q=0 >> Accept-Language de-de, ja;q=0.77, en;q=0.92, nl-nl;q=0.88, nl;q=0.85, >> ja-jp;q=0.81, de;q=0.96, fr;q=0.73, es;q=0.69, it-it;q=0.65, >> it;q=0.62, >> sv-se;q=0.58, sv;q=0.54, no-no;q=0.50, no;q=0.46, da-dk;q=0.42, >> da;q=0.38, >> fi-fi;q=0.35, fi;q=0.31 >> Connection keep-alive >> Cookie pkit_session_id=fdb814523909709a3a697ee14fbcc1a0 >> Host localhost:8529 >> User-Agent Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) >> AppleWebKit/125.5.5 >> (KHTML, like Gecko) Safari/125.11 >> >>> (I've just found that out, I didn't know about it, thank you!) >>> >>> but... still no result. >>> >>> Thanks anyway. >>> >>> [...] -- Boris |