Re: httpd error_log: Subroutine redefined

2004-03-12 Thread Stas Bekman
B. Fongo wrote: Hey! I made some changes on a module I wrote myself yesterday, and restarted the web server. Immediately afterward, the messages below appear on the log file - that was ok. But I now realized that, Apache is filling my log again and again with the message below (without modifying

httpd error_log: Subroutine redefined

2004-03-12 Thread B. Fongo
Hey!   I made some changes on a module I wrote myself yesterday, and restarted the web server. Immediately afterward, the messages below appear on the log file – that was ok. But I now realized that, Apache is filling my log again and again with the message below (without modifying any th

*sniff*

2004-03-12 Thread Jason Boerner - The Virtu
Can anyone help me with what i have to do to install and run Apache::ASP on Windows XP Pro? What i have done is...download and ran Perl-win32-bin.exe This comes with and installs Apache server as well it seems.  So then i configured my directories of where i'd like the two modules to go (per

Re: [mp2] PerlPreConnectionHandler and subrequests detection?

2004-03-12 Thread Stas Bekman
John D.Lima wrote: I have a PerlPreConnectionHandler running on a proxy vhost (w/ mod_proxy), acting much like the User Guide example that blocks clients by their IP. I'd like it to behave differently if the connection of due to a subrequest or not. > For clarity (?): my PerlPreConnectionHandler wo

Re: [mp2] $ENV{MOD_PERL}

2004-03-12 Thread Stas Bekman
Geoffrey Young wrote: It should be there. If it's not, then we need to be able to reproduce it and you need to help us to do that. I just tested with the skeleton and saw $ENV{MOD_PERL} right away. May be after it'll be repeated 10,000 times on this list people will remember to actually do so ;

Re: [mp2] $ENV{MOD_PERL}

2004-03-12 Thread Geoffrey Young
> It should be there. If it's not, then we need to be able to reproduce it > and you need to help us to do that. I just tested with the skeleton and saw $ENV{MOD_PERL} right away. > May be after > it'll be repeated 10,000 times on this list people will remember to > actually do so ;) > Even bet

Re: httpd.conf directives for mod_perl under Apache2

2004-03-12 Thread Stas Bekman
Charlie Smith wrote: I'm going to rename this subject so as not to get confused with Nathan's. Previous subject was perl to mod_perl transition problems. New name is httpd.conf directives for mod_perl under Apache2. I've compiled MP2 as a DSO under Apache2 on RedHat 8 on an 2.8Gz IBM. Curren

[mp2] $ENV{MOD_PERL}

2004-03-12 Thread Stas Bekman
Charlie Smith wrote: I'm going to rename this subject so as not to get confused with Nathan's. Heh, and you still post about 5 unrelated questions in one thread ;) so I had to change the subject again. $ENV{GATEWAY_INTERFACE} is no longer special under mp2: http://perl.apache.org/docs/2.0/user/

Re: CGI header mod_perl 1.99_13

2004-03-12 Thread Stas Bekman
Arnaud Blancher wrote: hi all, i test all my scripts which this version of mod perl and i have the message : [notice] child pid 3541 exit signal Segmentation fault (11) in the error_log all the times but not the first one when i call the script if i remove print header(); and put print "Content-Ty

Re: Apache::AuthCookie LOGIN action, where / is protected

2004-03-12 Thread Rafael Caceres
Elizabeth, You have to setup the use of the login form like so: AuthType Your::Authtype AuthName YourName SetHandler perl-script PerlHandler Your::Authtype->login_screen Regards, Rafael Caceres On Fri, 2004-03-12 at 17:08, Elizabeth Cortell wrote: > I have a question for experienced

Re: httpd.conf directives for mod_perl under Apache2

2004-03-12 Thread Charlie Smith
  Yes, I did try the config shown in the docs.  See snipets below.  In Apache 1, the differences were, of cource PerlModule Apache   and PerlModule Apache::Registry and those lines listed under 'old' below:   PerlModule Apache2PerlModule ModPerl::Registry     Options Indexes FollowSymLink

Re: httpd.conf directives for mod_perl under Apache2

2004-03-12 Thread Geoffrey Young
> also, as I mentioned in a recent post, you can always check out the bug > skeleton for a simple but common registry setup. you can also drop a simple > script in and see it run. > > http://perl.apache.org/~geoff/bug-reporting-skeleton-mp1.tar.gz oops, for mp2 you'll want http://perl.apache.o

Apache::AuthCookie LOGIN action, where / is protected

2004-03-12 Thread Elizabeth Cortell
I have a question for experienced Apache::AuthCookie users. The module's test suite protects directories below the docroot and sets the action of the login form to /LOGIN, an unprotected location. This setup does not work for me as I need to protect the entire docroot. Since LOGIN itself is p

Re: httpd.conf directives for mod_perl under Apache2

2004-03-12 Thread Geoffrey Young
Perrin Harkins wrote: > [ please keep it on the list ] > > On Fri, 2004-03-12 at 17:02, Charlie Smith wrote: > >>I guess I never know how to configure mod_perl without using the Files >>tag, although experimented quite a bit trying to find out. I've >>searched the docs you mention and tried s

Re: httpd.conf directives for mod_perl under Apache2

2004-03-12 Thread Perrin Harkins
[ please keep it on the list ] On Fri, 2004-03-12 at 17:02, Charlie Smith wrote: > I guess I never know how to configure mod_perl without using the Files > tag, although experimented quite a bit trying to find out. I've > searched the docs you mention and tried some things, but still no > ENV{MO

Re: [mp1] debugging: DBI commits delayed until server shutduwn

2004-03-12 Thread Mark Stosberg
On 2004-03-12, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Fri, 2004-03-12 at 16:11, Mark Stosberg wrote: >> I'm out of any ideas. Any wild guesses appreciated. :) > > Your CGI::Session object is not going out of scope, so it doesn't get > destroyed until you shut down the server. You are so i

Re: [mp1] debugging: DBI commits delayed until server shutduwn

2004-03-12 Thread Perrin Harkins
On Fri, 2004-03-12 at 16:11, Mark Stosberg wrote: > I'm out of any ideas. Any wild guesses appreciated. :) Your CGI::Session object is not going out of scope, so it doesn't get destroyed until you shut down the server. - Perrin -- Report problems: http://perl.apache.org/bugs/ Mail list info:

Total newbie question

2004-03-12 Thread Stelian Iancu
Hi! I am trying to setup mod_perl on my server. I have apache 1.3.29 and mod_perl 1.27-r4 (on a Gentoo box). Here is the relevant section of commonapache.conf: PerlModule Apache::Registry #set Apache::Registry Mode for /perl Alias SetHandler perl-script PerlHandl

[mp1] debugging: DBI commits delayed until server shutduwn

2004-03-12 Thread Mark Stosberg
Hello, I've got myself into a modperl pickle that I can't figure out. As best as I understand what's happening, some database inserts are being delayed until server shutdown time, instead happening during the scripts normal execution time. I'm inserting a row into a session table. I figured out

Re: httpd.conf directives for mod_perl under Apache2

2004-03-12 Thread petersm
Charlie Smith <[EMAIL PROTECTED]> wrote > > LoadModule ssl_module modules/mod_ssl.so > > > Why is the tag used here and where would it be defined. Same > question would apply for all the other IfDefine tages in the httpd.conf file. > REPLY: I'll answer part of this one myself. I commented

Re: Mod_perl blog recommendations

2004-03-12 Thread Paul Lindner
On Fri, Mar 12, 2004 at 12:05:07PM +, Fred Moyer wrote: > Hello mod_perl list, > > I'm looking for simple mod_perl blog which uses the PostgreSQL > database. Doesn't have to be fancy, basic requirements are posting news > updates without using html tags and ease of use. > > Any ideas? Movab

Re: httpd.conf directives for mod_perl under Apache2

2004-03-12 Thread Charlie Smith
I'm going to rename this subject so as not to get confused with Nathan's.   Previous subject was perl to mod_perl transition problems.  New name is httpd.conf directives for mod_perl under Apache2.   I've compiled MP2 as a DSO under Apache2 on RedHat 8 on an 2.8Gz IBM.   Current questions are

Mod_perl blog recommendations

2004-03-12 Thread Fred Moyer
Hello mod_perl list, I'm looking for simple mod_perl blog which uses the PostgreSQL database. Doesn't have to be fancy, basic requirements are posting news updates without using html tags and ease of use. Any ideas? Thanks, Fred -- Report problems: http://perl.apache.org/bugs/ Mail list info

Re: perl to modperl transition problems

2004-03-12 Thread Nath
Bah, I can't believe I overlooked that. I completely forgot about the continuous session vs. open/closed one. I just reset the hash to empty each round to clean up its history. Just like to thank you Perrin for your assistance. Much appreciated! Cheers, Nate -- Report problems: http://perl

Re: perl to modperl transition problems

2004-03-12 Thread Perrin Harkins
On Fri, 2004-03-12 at 14:29, Nath wrote: > > It's a closure problem. > - How do I fix that? Pass your variables to your subs. Or use globals, but passing variables to your subs is a good practice and you really should be doing it anyway. my $foo = some_sub(); bar($foo); sub bar { my $foo =

Re: perl to modperl transition problems

2004-03-12 Thread Nath
> It's a closure problem. - How do I fix that? Is this something mod_perl does or apache does from using mod_perl? If I switch back to standard perl, the problem doesn't exist. -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiqu

Re: perl to modperl transition problems

2004-03-12 Thread Charlie Smith
Thanks for the prompt reply.  I used the ENV{MOD_PERL} as suggested - actually printed out all of the ENV vars.   No listing for MOD_PERL except in the SERVER_SIGNATURE Apache/2.0.48 (Unix) mod_perl/1.99_13 Perl/v5.8.0 DAV/2 .  So, I guess it's not really running yet.   Is the tag still need

Re: perl to modperl transition problems

2004-03-12 Thread Perrin Harkins
On Fri, 2004-03-12 at 13:37, Nath wrote: > This is odd since those older values should have been erased instead of > being stored and reused again. It's a closure problem. You have something that does this: my $foo = some_sub(); sub bar { print $foo; } The value printed for $foo will never

perl to modperl transition problems

2004-03-12 Thread Nath
Yeah actually, that's what I just tried out and seems to be the problem. Apparently when I query the string and break it up, the queries are being stored for future use. When I printed out the query results each time, I always get the same values: First try: http://www.nutty.ca/perl/index.cgi?page

Re: perl to modperl transition problems

2004-03-12 Thread Perrin Harkins
On Fri, 2004-03-12 at 13:13, Nath wrote: > > Sounds like client-side caching. Take a look at the headers you are > > sending. > - I'm not sure about this. How would the headers differ from using > ActivePerl vs mod_perl? >From using mod_cgi vs. using mod_perl. mod_cgi parses your headers and add

Re: perl to modperl transition problems

2004-03-12 Thread Nath
> > There's just one more problem that seems to be lurking on my website. I > > think this might have something to do with mod_perl's caching scheme. > > The first thing you need to understand is that mod_perl has no caching > scheme. It is just perl and apache. - My bad, I must have misread somet

Re: snmp session and alarm

2004-03-12 Thread James.Q.L
--- Stas Bekman <[EMAIL PROTECTED]> wrote: > James.Q.L wrote: > > my apology. > > > > i was thinking that was a problem with mod_perl somewhere in my code since the > > same snmp query > > result is the same as the next one. > > It's possible, but you haven't even mentioned that you were runnin

Re: perl to modperl transition problems

2004-03-12 Thread Perrin Harkins
On Fri, 2004-03-12 at 11:41, Nath wrote: > There's just one more problem that seems to be lurking on my website. I > think this might have something to do with mod_perl's caching scheme. The first thing you need to understand is that mod_perl has no caching scheme. It is just perl and apache. Yo

perl to modperl transition problems

2004-03-12 Thread Nath
There's just one more problem that seems to be lurking on my website. I think this might have something to do with mod_perl's caching scheme. Basically I have scripts like a photo album and calendar on my site. Both of these scripts rely on information being passed via the URL header. So like photo

[mp2] PerlPreConnectionHandler and subrequests detection?

2004-03-12 Thread John D . Lima
I have a PerlPreConnectionHandler running on a proxy vhost (w/ mod_proxy), acting much like the User Guide example that blocks clients by their IP. I'd like it to behave differently if the connection of due to a subrequest or not. For clarity (?): my PerlPreConnectionHandler works great on brows

CGI header mod_perl 1.99_13

2004-03-12 Thread Arnaud Blancher
hi all, i test all my scripts which this version of mod perl and i have the message : [notice] child pid 3541 exit signal Segmentation fault (11) in the error_log all the times but not the first one when i call the script if i remove print header(); and put print "Content-Type: text/plain\n\n"; it