Re: Working directory: CGI vs. mod_perl

2005-08-04 Thread Jan Eden
Philippe M. Chiasson wrote on 03.08.2005: >Jan Eden wrote: >>[...] SetHandler perl-script PerlResponseHandler >>ModPerl::RegistryPreFork > >Case sensitivity issue here it's >ModPerl::RegistryPerfork, lower case f If this is not embarrassing

Re: Working directory: CGI vs. mod_perl

2005-08-03 Thread Jan Eden
Philip M. Gollucci wrote on 01.08.2005: >>Jan Eden schrieb: >> >>>Hi, >>> >>>I just noticed that the working directory for scripts executed via >>>a mod_perl handler is /. >>> >>>Is there a way to change that? Some of the script

Re: Working directory: CGI vs. mod_perl

2005-08-01 Thread Jan Eden
Hi Tom, Tom Schindl wrote on 01.08.2005: >-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > >If you are running mp2 that's true simply because of the fact that >chdir in perl is not thread-safe :-( > >If you are running in prefork(which is only available on *nix) you >could chdir yourself at the to

Working directory: CGI vs. mod_perl

2005-08-01 Thread Jan Eden
Hi, I just noticed that the working directory for scripts executed via a mod_perl handler is /. Is there a way to change that? Some of the scripts I use rely on the directory they are stored in is the current working directory. Thanks, Jan -- Mac OS X. Because making Unix user-friendly is ea

Re: [UPGRADE]: Apache::DBI 0.96 for mod_perl 2.0 RC5

2005-06-24 Thread Jan Eden
Dan Sully wrote on 24.06.2005: >* Jan Eden shaped the electrons to say... > >>>Ask - Can this version be released to CPAN? >>> >>>Apache::DBI as shipped from CPAN is completely useless on MP2. >>> >> >>It is not. With the help of this list, I

Re: [UPGRADE]: Apache::DBI 0.96 for mod_perl 2.0 RC5

2005-06-24 Thread Jan Eden
Dan Sully wrote on 23.06.2005: >* Philip M. Gollucci shaped the electrons to say... > >>http://p6m7g8.net/Apache-DBI-0.96.tar.gz was supposed to be >>http://p6m7g8.net/Apache-DBI/Apache-DBI-0.96.tar.gz >> >>I symlinked it in my site so both should be valid now. > >Ask - Can this version be release

Re: Apache::DBI and mod_perl

2005-06-24 Thread Jan Eden
Octavian Rasnita wrote on 24.06.2005: >As far as I know, the scope of Apache::DBI is to keep a permanent >connection with the database, but if the script disconnects after >each request, why using Apache::DBI? Apache::DBI overrides the DBI disconnect method, effectively keeping the connection al

Re: Apache::DBI and mod_perl

2005-06-24 Thread Jan Eden
Sean Davis wrote on 24.06.2005: >>After going through all this, I did an ApacheBench with/without >>Apache::DBI being used (1000 requests, 10 concurrent), and it >>turned out that Apache::DBI is actually slowing down delivery from >>13 requests/second to 7.78 (on my local test machine). > >Were an

Re: Apache::DBI and mod_perl

2005-06-24 Thread Jan Eden
Perrin Harkins wrote on 24.06.2005: >On Fri, 2005-06-24 at 10:02 +0200, Jan Eden wrote: >>What is the overload message supposed to tell me? > >That you called disconnect but Apache::DBI prevented the handle from >being disconnected. > >The "overload" message

Re: Apache::DBI and mod_perl

2005-06-24 Thread Jan Eden
Philippe M. Chiasson wrote on 23.06.2005: >Perrin Harkins wrote: >>On Thu, 2005-06-23 at 11:29 +0200, Jan Eden wrote: >> >>>Everything works - but how can I know if Apache::DBI really keeps >>>my database connection alive? >> >>Turn on the debug

Re: Switch and mod_perl

2005-06-24 Thread Jan Eden
Dorian Taylor wrote on 24.06.2005: >On Thu, Jun 23, 2005 at 03:19:22PM -0400, Perrin Harkins wrote: >> On Thu, 2005-06-23 at 10:46 +0200, Jan Eden wrote: >> > could it be that mod_perl doesn't play nice with the Switch module? >> >> Isn't it a source

Apache::DBI and mod_perl

2005-06-23 Thread Jan Eden
Hi, please accept my apologies for spamming this list - I need to get mod_perl up and running quickly and will be more quiet in the future. The README of Apache::DBI tells me to configure mod_perl using perl Makefile.PL PERL_CHILD_INIT=1 PERL_AUTHEN=1 PERL_AUTHZ=1 PERL_CLE

Re: mod_perl configuration trouble

2005-06-23 Thread Jan Eden
Geoffrey Young wrote on 22.06.2005: > >>But this does not solve my real problem, i.e. that the modules are >>not found when running my scripts. >> >>[Wed Jun 22 18:04:12 2005] [error] Can't locate Apache/RequestRec.pm > >you initially said you were using mod_perl 2.0.1. if that's true >it's Apach

Switch and mod_perl

2005-06-23 Thread Jan Eden
Hi again, could it be that mod_perl doesn't play nice with the Switch module? When executing my script as cgi, it works, but with mod_perl, I get: String found where operator expected at /Users/jan/Sites/janeden/perl/edit.pl line 81, near "case 'Absenden'" (Do you need to predeclare cas

Re: mod_perl configuration trouble

2005-06-22 Thread Jan Eden
Jan Eden wrote on 22.06.2005: >Geoffrey Young wrote on 22.06.2005: > >> >>>..[Wed Jun 22 17:20:49 2005] [error] Insecure directory in >>>$ENV{PATH} while >>running with -T switch >> >>clean up your path and you should be ok - this is keeping >&g

Re: mod_perl configuration trouble

2005-06-22 Thread Jan Eden
Geoffrey Young wrote on 22.06.2005: > >> ..[Wed Jun 22 17:20:49 2005] [error] Insecure directory in $ENV{PATH} while >running with -T switch > >clean up your path and you should be ok - this is keeping Apache::Test* >from loading properly. in other words, it's not that it can't find the >module

Re: mod_perl configuration trouble

2005-06-22 Thread Jan Eden
Joe Cullin wrote on 22.06.2005: >Also, PerlHandler was replaced with PerlResponseHandler in 2.0. > >PerlResponseHandler ModPerl::Registry > >It's kind of tough learning mod_perl right now, because all the >books give 1.0 examples, and 2.0 seems to have a lot of small >differences. The docs at per

Re: mod_perl configuration trouble

2005-06-22 Thread Jan Eden
Geoffrey Young wrote on 22.06.2005: >Jan Eden wrote: >>Hi, >> >>I recently installed mod_perl 2.0.1 as a DSO to Apache 2.0.53 (on >>OS X 10.3.9). The simple example from the docs works: >> >>Can't locate loadable object for module Apache::Const

mod_perl configuration trouble

2005-06-22 Thread Jan Eden
Hi, I recently installed mod_perl 2.0.1 as a DSO to Apache 2.0.53 (on OS X 10.3.9). The simple example from the docs works: Alias /perl/ /home/httpd/httpd-2.0/perl/ SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI