Re: Authentication design

2003-06-10 Thread Perrin Harkins
On Tue, 2003-06-10 at 23:43, Michael L. Artz wrote: > Well, I figured that the AuthenHandler already parsed the authentication > cookie and declared it valid, so I didn't really see a point the in > doing it at the beginning of every script. $r->user just seemed more > intuitive to me. Well, I

Problem with mod_ssl and mod_perl on Windows

2003-06-10 Thread Mustafa Tan
Hi, I was trying to setup Apache (with mod_perl and mod_ssl) on Windows ME, and I had a weird problem. Before the problem, let me talk about more about some details. I have installed Apache from http://perl.apache.org/dist/win32-bin/. I installed the perl 5.6 version, which is perl-win32-bin.exe.

[ANNOUNCE] OpenInteract 1.99_00, first 2.0 beta

2003-06-10 Thread Chris Winters
I am happy to announce the first beta of OpenInteract 2.0, 1.99_00. This is a major rewrite of the OpenInteract web application framework with substantial feature enhancements. A few highlights: * Runs under more environments than Apache/mod_perl 1.x since the request and response responsibilit

Re: Authentication design

2003-06-10 Thread Michael L. Artz
Perrin Harkins wrote: I'm not certain it won't work to use $r->user, but I don't see the point when you already have a unique identifier in the cookie. Well, I figured that the AuthenHandler already parsed the authentication cookie and declared it valid, so I didn't really see a point the in

Re: undefined symbol: PL_stack_base

2003-06-10 Thread Stas Bekman
Nicolas MONNET wrote: Hi, I can't seem to find what's going wrong, I'm trying to run mod_perl on Gentoo, but I get this: # /etc/init.d/apache start * Starting apache... Syntax error on line 58 of /etc/apache/conf/apache.conf: Cannot load /etc/apache/extramodules/libperl.so into server: /etc/apache

Re: Authentication design

2003-06-10 Thread Perrin Harkins
On Tue, 2003-06-10 at 21:47, Michael L. Artz wrote: > I thought that this was a good way to go since I could protect my entire > application with a single module and a couple lines in the config file, > as opposed to bundling that authentication code into the beginning of > *every* registry scri

Re: Simple DAV Server?

2003-06-10 Thread Trevor Phillips
On Wednesday 11 June 2003 05:13, you wrote: > Trevor Phillips wrote: > >I'm quite suprised at the limited amount of custom DAV server uses. I > > mean, here's a protocol for editing content over HTTP, which to me > > screams as an ideal solution for, say, editing full HTML content within a > > DB/C

Site running mod_perl

2003-06-10 Thread Batara Kesuma
Hi, Find Job! http://www.find-job.net is the biggest computer and internet related employment site in Japan. And I just want to let you know that our site now is running on mod_perl completely. We have around 75000 registered users and 1 registered companies. Our pageview is around 4 million p

Re: font width to pixel width in perl - but also offtopic in javascript

2003-06-10 Thread Jonathan Gardner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 04 June 2003 06:46, Martin Moss wrote: > Hi All, > > I'm sure this can't be an issue that hasn't been tackled, but I couldn't > find anything in the archives so:- > > I'm trying to find a way in which I can calculate the pixel width of a >

Re: Authentication design

2003-06-10 Thread Jonathan Gardner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 03 June 2003 18:59, Michael L. Artz wrote: > I am trying to design/implement a fairly simple authentication scheme > using cookies and such, but wanted to air my design questions before I > run into too many issues. > It sounds like you are

undefined symbol: PL_stack_base

2003-06-10 Thread Nicolas MONNET
Hi, I can't seem to find what's going wrong, I'm trying to run mod_perl on Gentoo, but I get this: # /etc/init.d/apache start * Starting apache... Syntax error on line 58 of /etc/apache/conf/apache.conf: Cannot load /etc/apache/extramodules/libperl.so into server: /etc/apache/extramodules/libperl

Simple DAV Server?

2003-06-10 Thread Trevor Phillips
I'm quite suprised at the limited amount of custom DAV server uses. I mean, here's a protocol for editing content over HTTP, which to me screams as an ideal solution for, say, editing full HTML content within a DB/CMS. I mean, I've been working as Technical Support at a uni for Web Services, and

Re: [PATCH] Apache::DBI - AutoCommit => 1 and begin_work

2003-06-10 Thread Stas Bekman
Patrick Mulvany wrote: Hi, Came accross an issue when trying to reduce creation of handles on a site. Currently Apache::DBI makes the assumption that it AutoCommit => 1 then the handle does not need cleaning up. This is not neccessariliy true as begin_work switches of the AutoCommit for one trans

Re: Authentication design

2003-06-10 Thread Michael L. Artz
Jonathan Gardner wrote: It sounds like you are mixing HTTP-level authentication with application-level authentication. Well, sorta. I am actually using a custom module very similar to the one found in the cookbook (and AuthCookie, I think), i.e. create a PerlAuthenHandler that sets the custom

Re: is anybody using mp2 in production?

2003-06-10 Thread Stas Bekman
Sreeji K Das wrote: That's cool & is yet another example of the power of mod_perl. And you're right about the documentation. I was blown away by the amount of docs. available at perl.apache.org; thanks to all the hard work of Stas Beckman !! ;) We had been using mod_perl & had been having a very s

Re: is anybody using mp2 in production?

2003-06-10 Thread Stas Bekman
Thanks for all the long and short success stories. It's good to see that mod_perl 2.0 is alive and kicking ;) We have a special location for success stories on perl.apache.org: http://perl.apache.org/outstanding/sites.html http://perl.apache.org/outstanding/success_stories/index.html If you want

Re: EXPAT?

2003-06-10 Thread Stas Bekman
Forrest Aldrich wrote: I did a test compile of mod_perl as a DSO, and ran into a problem with another module I use (mod_dav). It requires EXPAT to be defined in the ap_auto_config.h file. However, I found this in the mod_perl Makefile.PL: # Do not disable the rule EXPAT for Stronghold,

Re: Compling mod_perl as a static module....(shared=max)

2003-06-10 Thread Stas Bekman
Forrest Aldrich wrote: This is what I found: > --enable-shared=max tells the script to include mod_so (needed for dynamic modules, or DSOs) and compile all the standard modules as dynamic modules < So I will need to find some way around this for the other things I rely upon. but

Re: is anybody using mp2 in production?

2003-06-10 Thread Carl Brewer
I'm using mp2 with Template::Toolkit for a number of production sites on NetBSD. Apart from it whinging at test time, it seems just fine :) Carl

Re: [mp2] win2000 + Apache::DBI + Oracle

2003-06-10 Thread Stas Bekman
Patrick Mulvany wrote: > On Tue, Jun 10, 2003 at 04:27:17PM +1000, Stas Bekman wrote: >> connect_on_init() should probably be not used. > > > connect_on_init() pushs to a list of connection strings to start on child > creation. &childinit should be called as a PerlChildInitHandler (not sure > when

Re: modules that work with both modperl1 and 2

2003-06-10 Thread Stas Bekman
Shannon Eric Peevey wrote: Stas Bekman wrote: This source code was the saving grace for me. If we could add the link to: http://search.cpan.org/src/STAS/Apache-Peek-1.01/t/response/TestApachePeek/basic.pm into the documentation, that would be great. No need to, I've already merged it into the

Test please ignore

2003-06-10 Thread Ryan Farrington
Mail server crashed... Testing...

Re: Compling mod_perl as a static module....

2003-06-10 Thread Ged Haywood
Hi there, On Tue, 10 Jun 2003, Forrest Aldrich wrote: > I wonder if this will affect anything else, especially other > things that require DSO support. ? Have you got the Eagle Book? You need --enable-module=so in your configure arguments to put mod_so into Apache, mod_so allows Apache to l

Re: Compling mod_perl as a static module....

2003-06-10 Thread Ged Haywood
Hi Forrest, On Tue, 10 Jun 2003, Forrest Aldrich wrote: > "seems" to have worked [snip] > # /usr/apache/bin/httpd -l > Compiled-in modules: >http_core.c >mod_so.c >mod_dosevasive.c >mod_perl.c [snip] :) > building mod_perl is such a pain [snip] > thoughts on this one? It isn't

Re: Simple DAV Server?

2003-06-10 Thread Shannon Eric Peevey
Trevor Phillips wrote: I'm quite suprised at the limited amount of custom DAV server uses. I mean, here's a protocol for editing content over HTTP, which to me screams as an ideal solution for, say, editing full HTML content within a DB/CMS. I think the problem with webDAV, as a protocol thro

Re: Compling mod_perl as a static module....

2003-06-10 Thread Forrest Aldrich
Okay, here's what I've done which "seems" to have worked with a statically-linked mod_perl. o untar all distributions into a working directory o ./configure apache with all the usual options I use (i have a script that has this): ./configure --with-perl=/usr/local/bin/perl --enable-module=rewr

Re: is anybody using mp2 in production?

2003-06-10 Thread Udlei Nattis
Hi, sorry my english i development one big ecommerce system in mp2 and i very happy is fast and stable Sreeji K Das wrote: ... ... I'd be interested in what you thought of the switch after going live, we were never sure (but getting there now) if we should have started with MP2 or not, never

Re: Compling mod_perl as a static module....

2003-06-10 Thread Forrest Aldrich
At 02:55 PM 6/10/2003, Ged Haywood wrote: [ ... ] Try taking out --enable-shared=max [ ... ] This caused the compilation process to bomb: ./libhttpd.so: warning: mktemp() possibly used unsafely; consider using mkstemp() /usr/local/lib/perl5/5.8.0/mach/auto/DynaLoader/DynaLoader.a(DynaLoader.o)

Re: Compling mod_perl as a static module....(shared=max)

2003-06-10 Thread Forrest Aldrich
This is what I found: > --enable-shared=max tells the script to include mod_so (needed for dynamic modules, or DSOs) and compile all the standard modules as dynamic modules < So I will need to find some way around this for the other things I rely upon. but it seems that mod_perl's

Re: Compling mod_perl as a static module....

2003-06-10 Thread Forrest Aldrich
Ged, This seems to have done the trick, in-so-far-as the configure process... it now reports: + mod_perl build type: OBJ + setting up mod_perl build environment + id: mod_perl/1.27_01-dev + id: Perl/v5.8.0 (freebsd) [/usr/local/bin/perl] + adjusting Apache build env

EXPAT?

2003-06-10 Thread Forrest Aldrich
I did a test compile of mod_perl as a DSO, and ran into a problem with another module I use (mod_dav). It requires EXPAT to be defined in the ap_auto_config.h file. However, I found this in the mod_perl Makefile.PL: # Do not disable the rule EXPAT for Stronghold, since this # r

Re: Site running mod_perl

2003-06-10 Thread Batara Kesuma
Hi Ged, > Are you able to give us any numbers for the improvements, even > if they are approximate? When we were using plain CGI: Page view: 3.5 million / mo Load average: 0.6 - 1.2 mod_perl PerlRun: Page view: 4 million / mo Load average: 0.2 - 0.5 I couldn't find the benchmark result on requ

Installing Apache::AuthCookie

2003-06-10 Thread Jay Strauss
Hi, I'm running into a problem during the make test while installing the current version of Apache::AuthCookie. I'm not sure where to go. I looked at tests 10 and 15: Test 10 is supposed to fail: and it did Test 15 is supposed to be FORBIDDEN Should I go ahead and do "make install"? Jay I i

Re: Compling mod_perl as a static module....

2003-06-10 Thread Ged Haywood
Hi there, On Tue, 10 Jun 2003, Forrest Aldrich wrote: > The configure process goes through and shows that it's selected a DSO > compilation, and that's not what I want so I just stopped it. > > The configure process complains about PERL_SSI and says it cannot include > that with a DSO, etc. B

perlwarn break our CGIs

2003-06-10 Thread JY - June Young
Title: Message   Hi, all, We are at a stage of converting CGI to run under mod_perl. In order to help debugging our CGI code under mod_perl, we turned PerlWarn On. Unfortunately, after turning on PerlWarn, our CGIs that already run well under mod_perl get broken with the message "page ca

Re: Site running mod_perl

2003-06-10 Thread Ged Haywood
Hello there, On Wed, 11 Jun 2003, Batara Kesuma wrote: > Find Job! http://www.find-job.net is the biggest computer and internet > related employment site in Japan. > [snip] > The speed improvement is significant, and the CPUs load > average are lower than when we were running plain CGI. Thank yo

[PATCH] Apache::DBI - AutoCommit => 1 and begin_work

2003-06-10 Thread Patrick Mulvany
Hi, Came accross an issue when trying to reduce creation of handles on a site. Currently Apache::DBI makes the assumption that it AutoCommit => 1 then the handle does not need cleaning up. This is not neccessariliy true as begin_work switches of the AutoCommit for one transaction. To be safe t

Re: error running mysql test

2003-06-10 Thread Ken Y. Clark
On Tue, 10 Jun 2003, Abd El-Hameed Mohammed wrote: > Date: Tue, 10 Jun 2003 19:36:30 +0300 > From: Abd El-Hameed Mohammed <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: error running mysql test > > Dear all >I had installed mysql. Things comes right till i tried to execute " perl > run

error running mysql test

2003-06-10 Thread Abd El-Hameed Mohammed
Dear all I had installed mysql. Things comes right till i tried to execute " perl run-all-tests" i got the following error /usr/local/bin/perl: relocation error: /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/auto/DBD/mysql/mysql.so: undefined symbol: mysql_init Any ideas? hamid

Site running mod_perl

2003-06-10 Thread Batara Kesuma
Hi, Find Job! http://www.find-job.net is the biggest computer and internet related employment site in Japan. And I just want to let you know that our site now is running on mod_perl completely. We have around 75000 registered users and 1 registered companies. Our pageview is around 4 million p

Re: modules that work with both modperl1 and 2

2003-06-10 Thread Shannon Eric Peevey
Stas Bekman wrote: speeves wrote: Stas Bekman wrote: [...] http://search.cpan.org/src/STAS/Apache-Peek-1.01/t/response/TestApachePeek/basic.pm This source code was the saving grace for me. If we could add the link to: http://search.cpan.org/src/STAS/Apache-Peek-1.01/t/response/TestApache

Re: [mp2] make test fails with 1.99_10-dev sources on redhat

2003-06-10 Thread Haroon Rafique
On Today at 9:46am, SB=>Stas Bekman <[EMAIL PROTECTED]> wrote: SB> SB> Actually it was Sunday (future!) and it's winter (past?) here in SB> Melbourne ;) I figured we were a few continents away. SB> SB> Then, if it's indeed your globally installed Apache::Filter and not SB> the local one, dump

Re: [mp2] make test fails with 1.99_10-dev sources on redhat

2003-06-10 Thread Perrin Harkins
On Tue, 2003-06-10 at 05:08, Mithun Bhattacharya wrote: > What exactly is broken in RedHat 8.0/9.0 - RedHat's build of perl, > perl's support for unicode or perl's support for locales ? Short answer: the Perl build is fine if you change the locale to what it was in previous version of Red Hat (en_

Re: [mp2] make test fails with 1.99_10-dev sources on redhat

2003-06-10 Thread Haroon Rafique
On Today at 12:38am, PH=>Perrin Harkins <[EMAIL PROTECTED]> wrote: PH> On Mon, 2003-06-09 at 09:55, Haroon Rafique wrote: PH> > Now onto serious stuff. /usr/bin/perl here is the system-wide perl PH> > install that came bundled with Redhat. PH> PH> Just a thought: did you fix the locale on that ma

Re: [mp2] win2000 + Apache::DBI + Oracle

2003-06-10 Thread Paul Simon
--- Stas Bekman <[EMAIL PROTECTED]> wrote: > Perrin Harkins wrote: > > On Tue, 2003-06-10 at 01:45, Stas Bekman wrote: > > > >>mp2+winFU => winnt MPM => no forking, only threads > => Apache::DBI is useless > >>there. not only useless, but also wasteful, since > it's going to do work that > >>ha

Re: [mp2] win2000 + Apache::DBI + Oracle

2003-06-10 Thread Patrick Mulvany
On Tue, Jun 10, 2003 at 04:27:17PM +1000, Stas Bekman wrote: > Perrin Harkins wrote: > >On Tue, 2003-06-10 at 01:45, Stas Bekman wrote: > > > >>mp2+winFU => winnt MPM => no forking, only threads => Apache::DBI is > >>useless there. not only useless, but also wasteful, since it's going to > >>do w

Re: [mp2] make test fails with 1.99_10-dev sources on redhat

2003-06-10 Thread Mithun Bhattacharya
What exactly is broken in RedHat 8.0/9.0 - RedHat's build of perl, perl's support for unicode or perl's support for locales ? I dont think the LANG variable is wrong as such is it ? I have to currently upgrade a couple of production servers running mod_perl and I am finding it difficult to decide

Re: is anybody using mp2 in production?

2003-06-10 Thread Sreeji K Das
>... >... > > I'd be interested in what you thought of the switch > after going live, we > were never sure (but getting there now) if we should > have started with MP2 > or not, never got a chance to see MP1 in action. We have found MP1 to be stable. (We had a lot of issues with PerlFreshRestart &

Re: Perl Run and Load Average

2003-06-10 Thread Batara Kesuma
Hi all, Thank you for all your suggestions. Now the load average on my server is back to normal again :) It is around 0.2 - 0.5 now with the same pageviews. Ok not just normal, actually the load average is even lower than when I was using CGI (which was around 0.6 - 1.2). The changes I made: red

Re: Compling mod_perl as a static module....

2003-06-10 Thread Forrest Aldrich
The configure process goes through and shows that it's selected a DSO compilation, and that's not what I want so I just stopped it. The configure process complains about PERL_SSI and says it cannot include that with a DSO, etc. But again, I'm not trying to compile a DSO. I wonder if some other