Re: Apache::Session / untie(%session)

2005-07-07 Thread Perrin Harkins
On Thu, 2005-07-07 at 17:40 -0400, Gustavo Delfino wrote: > untie(%session) That triggers a write to your database if you've modified the session data. > mysql: 4.1.10a That doesn't sound very safe to me. I'd either upgrade it to the latest official release (4.1.12 I think) or downgrade to the

Re: Apache::Session / untie(%session)

2005-07-07 Thread Philip M. Gollucci
Gustavo Delfino wrote: I have been happly using mod_perl for more than a year. My application uses the Apache::Session package. One day, July 4 to be specific, my httpd_perl childs stated dying. The error log say: [notice] child pid (...) exit signal Segmentation fault (11) Can you submit

Apache::Session / untie(%session)

2005-07-07 Thread Gustavo Delfino
I have been happly using mod_perl for more than a year. My application uses the Apache::Session package. One day, July 4 to be specific, my httpd_perl childs stated dying. The error log say: [notice] child pid (...) exit signal Segmentation fault (11) After putting a lot of prints to STDERR,

MP2 books (was Re: Lost my )

2005-07-07 Thread Malcolm J Harwood
On Sunday 03 July 2005 08:14 pm, Thomas Hilbig wrote: > The actual CGI script uses the standard Lincoln Stein > library under MP2, and not yet taking advantage of MP2 > code (requestor). Rewriting to pure MP2 is a task for > this summer, once I can find a good MP2 book that > skips the whole MP1-

Re: Nasty ENV-Setting on Freebsd [was Re: DBI problem]

2005-07-07 Thread Philip M. Gollucci
Tom Schindl wrote: So if one of the free-bsd maintainers is reading this list it would be nice if: a) /etc/profile is patched and PERL5LIB is removed or set to a meaningful value which doesn't hurt anyone. b) before starting apache resetting the PERL5LIB on FBSD 6-current cat /etc/profile

Re: Failure calling BOOT: code

2005-07-07 Thread Marc Tardif
Stas Bekman wrote: Marc Tardif wrote: [...] The problem is that if I uncomment the require line in the handler, I get the following error message in /tmp/mod_perl.error.log: Error loading Mozilla::LDAP::API: perldap_init failed The solution might be related to the following XS code in API.

[mp2] Failure calling BOOT: code

2005-07-07 Thread Marc Tardif
-8<-- Start Bug Report 8<-- 1. Problem Description: This is the software installed on my system: Red Hat Enterprise Linux ES release 4 httpd-2.0.54 mod_perl-2.0.1 This is the configuration in my httpd.conf file: LoadModule perl_module modules/mod

Re: TicketTool port for mod_perl_2.0

2005-07-07 Thread Malcolm J Harwood
On Thursday 07 July 2005 09:52 am, Ray Licon wrote: > my $ServerName = Apache->server->server_hostname; > The problem I'm having is with the differences between > mod_perl_2.x and the mod_perl_1.x release (which > apparently this code was based on). Does anyone know > how to get the server_hostn

TicketTool port for mod_perl_2.0

2005-07-07 Thread Ray Licon
All - I'm now trying to get Lincoln Stein's Apache::TicketTool module to run (as described in Writing Apache Modules with Perl and C (http://www.modperl.com/book/chapters/ch6.html#Cookie_Based_Access_Control) My Dynamic mod_perl2.0.1 was built on solaris 2.8. >From apache error_log: [Wed Jul 06

Nasty ENV-Setting on Freebsd [was Re: DBI problem]

2005-07-07 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just to close this thread a give a solution to users running into the same problem: What was the problem: - - Because one of the entries in the INC-Path was "/usr/local/lib/perl5/site_perl/5.8.7/mach/Bundle" at a very early positio

Re: DBI problem

2005-07-07 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Schindl schrieb: > Niklas Saers schrieb: > >>>Forgot to post to the list. A little thing I forgot in the private > > > [...] > > >>>Include: >>>/my/include/modperl;/usr/local/lib/perl5/site_perl/5.8.7/mach/Bundle;/usr/local/lib/perl5/site_per

Re: DBI problem

2005-07-07 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Niklas Saers schrieb: > Hi again, Tom, > no problem running it as a CGI: > > Include: > /usr/local/lib/perl5/site_perl/5.8.7/mach;/usr/local/lib/perl5/site_perl/5.8.7;/usr/local/lib/perl5/site_perl;/usr/local/lib/perl5/5.8.7/BSDPAN;/usr/local/lib/per

Re: DBI problem

2005-07-07 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Niklas Saers schrieb: > Forgot to post to the list. A little thing I forgot in the private [...] > Include: > /my/include/modperl;/usr/local/lib/perl5/site_perl/5.8.7/mach/Bundle;/usr/local/lib/perl5/site_perl/5.8.7/mach;/usr/local/lib/perl5/site_pe

Re: DBI problem

2005-07-07 Thread Niklas Saers
Hi again, Tom, no problem running it as a CGI: Include: /usr/local/lib/perl5/site_perl/5.8.7/mach;/usr/local/lib/perl5/site_perl/5.8.7;/usr/local/lib/perl5/site_perl;/usr/local/lib/perl5/5.8.7/BSDPAN;/usr/local/lib/perl5/5.8.7/mach;/usr/local/lib/perl5/5.8.7;. Loaded Libs: warnings/register.pm;C

Re: DBI problem

2005-07-07 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Niklas Saers schrieb: > Forgot to post to the list. A little thing I forgot in the private [...] > Its worth noting that $DBI::VERSION doesn't print anything. That's really really strange. > /usr/local/lib/perl5/site_perl/5.8.7/mach is in my path bu

Re: DBI problem

2005-07-07 Thread Niklas Saers
Forgot to post to the list. A little thing I forgot in the private mail, adding "PerlModule Apache::DBI DBD::Mysql" in my httpd.conf gave me the following warning: [error] Can't locate object method "require_version" via package "DBI" (perhaps you forgot to load "DBI"?) at /usr/local/lib/perl5/sit

Apache2::Request handling errors

2005-07-07 Thread Stephen Quinney
Hi there, I am using Apache2::Request with a POST_MAX setting as in the pod: my $req = Apache::Request->new($r, POST_MAX => "1M"); What I am trying to work out is which is considered the best/recommended way to catch and handle the error that occurs if someone tries to upload anything larger tha

Re: Modification of read only value attempted

2005-07-07 Thread Stas Bekman
Malte Ubl wrote: [...] Our code is not using any specials variables though except %SIG for alarm. I've used $$ just as an example, any variable can be affected. How does a variable become read-only? Is that something that can be done on C/XS Level? Yes. By setting the READONLY flag on the

Re: Modification of read only value attempted

2005-07-07 Thread Malte Ubl
Stas Bekman wrote: Malte Ubl wrote: Can you reproduce the problem at will? Unfortunately not. Although I have seen the problem on our development system (where I was testing), the problem is not reproducable. As I said the live system doesn't behave deterministically either. The condition

Re: DBI problem

2005-07-07 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Niklas Saers schrieb: > Hi guys, > thank you very much for helping out. :-) > > John, I have installed the modules and the script runs when running it > as a CGI. What I don't know is if the driver has been installed for > mod_perl as I don't know how

Re: DBI problem

2005-07-07 Thread Niklas Saers
Hi guys, thank you very much for helping out. :-) John, I have installed the modules and the script runs when running it as a CGI. What I don't know is if the driver has been installed for mod_perl as I don't know how much mod_perls include paths differ from regular perl. Could you tell me how I f

Re: Modification of read only value attempted

2005-07-07 Thread Stas Bekman
Malte Ubl wrote: Can you reproduce the problem at will? Unfortunately not. Although I have seen the problem on our development system (where I was testing), the problem is not reproducable. As I said the live system doesn't behave deterministically either. The conditions under which is fail

Re: Broken pipe & Connection reset by peer

2005-07-07 Thread Stas Bekman
[Wendy, please do not email modperl-help /at/ perl.apache.org, it has nothing to do with the mod_perl, but used when you have problems with the the list itself] Wendy Tan wrote: I got numerous entries as following in the log. I have read mailing archives regarding this topic. To sum it up, i

Re: Modification of read only value attempted

2005-07-07 Thread Malte Ubl
Stas Bekman wrote: The application servers of our mod_perl site occasionally (once every 2-3 weeks) start spitting out these error messages: [Sun Jul 3 14:58:01 2005] [error] Modification of a read-only value attempted at /usr/local/lib/perl5/site_perl/5.8.6/i686-linux/Apache/PerlRun.pm lin

Re: DBI problem

2005-07-07 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Too few input to help you: a) Show us your config? Are you running it as an Registry-Script? b) What version of mod_perl are you using? c) Modify include path with: 1. In httpd.conf(see http://perl.apache.org/docs/2.0/user/config/config.html):