Re: [PATCH] in memory $Application object for Apache::ASP

2000-03-29 Thread Joshua Chamas
Joel Reed wrote: this may be a dumb patch to Apache::ASP (at least it is my first). Rationale: i have the following issues with the current implementation of $Application 1. everything you store in $Application-{foo} must be serializable my MLDBM. (right?) i have

Re: Another problem compiling Apache-Scoreboard-0.08

2000-03-29 Thread Stas Bekman
On Tue, 21 Mar 2000, Charles Day wrote: Stas, Trying to get Apache::VMonitor up, I'm getting the same error Gustav saw with Apache::Scoreboard, but I'm running your gcc and Linux 2.2.12. Did you ever figure this one out? Get the latest Apache::Scoreboard 0.10 Reading specs from

Problem re-directing STDOUT in system() calls

2000-03-29 Thread Steve Hay
Hi, I've had this problem before, but never got to the bottom of it. I'm cursed with a situation in which I need to run some .exe file from a (mod)perl script. The program concerned is a console application so it just writes its output on STDOUT. I need to re-direct that output to a temporary

Re: More segfault problems

2000-03-29 Thread Shevek
I configured on the quick and dirty with DO_HTTPD=1 APACHE_SRC=/usr/local/src/apache_1.3.12 USE_APACI=1 PREP_HTTPD=1 I can't find any documentation for what RULE_EXPAT does, the only occurrence at all is in Apache src/Configure, where it seels to compile in the expat lite library. I have since

Re: [new module] proposal Apache::DebugHeaders

2000-03-29 Thread Matt Sergeant
On Wed, 29 Mar 2000, Francesc Guasch wrote: A very easy way of create Makefile.PL and module files and directories is typing this: h2xs -X -n My::Object Please don't do that for mod_perl. You get autoloading that way, which means mod_perl can't load the methods at start time, which means

Re: Modperl 1.22 and Perl 5.6.0

2000-03-29 Thread Jeffrey W. Baker
On Tue, 28 Mar 2000, Doug MacEachern wrote: On Fri, 24 Mar 2000, Ken Kosierowski wrote: What is the best way to compile the new Perl 5.6.0 with Modperl 1.22? same way you compile 5.005 with mod_perl Should I use the 5.005 compatible flags or start from scratch and recompile the

Re: [new module] proposal Apache::DebugHeaders

2000-03-29 Thread Ask Bjoern Hansen
On Tue, 28 Mar 2000, Geoffrey Young wrote: ok, this isn't all that clever, but recently I got tired of writing loops of warnings to debug headers_in and headers_out over and over again... Then you should look at the Apache::DumpHeaders module. :) Major feature is that it can be configured

RE: [new module] proposal Apache::DebugHeaders

2000-03-29 Thread Geoffrey Young
actually, http://perl.apache.org/src/apache-modlist.html recommends h2xs -AX -n Apache::YourPackageName what's the -C option - it isn't in my perldoc h2xs? --Geoff -Original Message- From: Matt Sergeant [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 29, 2000 4:40 AM To:

[Patch] Apache::DB on Win32

2000-03-29 Thread Gerald Richter
Hi Doug, the following patch allows Apache::DB to be used on Win32 Systems: In DB.xs wrap the SIGINT call at the last line inside a conditional, like: #ifndef WIN32 if (ApacheSIGINT) (*ApacheSIGINT)(SIGINT); #endif Gerald -

RE: [new module] proposal Apache::DebugHeaders

2000-03-29 Thread Geoffrey Young
-Original Message- From: Ask Bjoern Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 29, 2000 6:30 AM To: Geoffrey Young Cc: '[EMAIL PROTECTED]' Subject: Re: [new module] proposal Apache::DebugHeaders On Tue, 28 Mar 2000, Geoffrey Young wrote: ok, this isn't all

ANNOUNCE: Apache::GTopLimit

2000-03-29 Thread Stas Bekman
Well, this module has been around for awhile, since mod_perl-1.22 is distributed as a separate package. Please allow a few hours before CPAN mirrors will get their copy before trying to download it. The uploaded file Apache-GTopLimit-0.01.tar.gz has entered CPAN as file:

Re: [PATCH] in memory $Application object for Apache::ASP

2000-03-29 Thread Joel Reed
On Mar 29, [EMAIL PROTECTED] hacked the bitstream to say... Joshua Joel Reed wrote: Joshua Joshua this may be a dumb patch to Apache::ASP (at least it is my first). Joshua Joshua Rationale: Joshua Joshua i have the following issues with the current implementation of $Application Joshua

Re: [PATCH] in memory $Application object for Apache::ASP

2000-03-29 Thread Joel Reed
On Mar 29, [EMAIL PROTECTED] hacked the bitstream to say... modperl Joshua What you don't get here is interprocess communication modperl Joshua which is what the use of $Application is geared for, that modperl Joshua the data is stored is some process neutral location, so modperl Joshua web

Re: Problem re-directing STDOUT in system() calls

2000-03-29 Thread Steve Hay
"Andrei A. Voropaev" wrote: See the guide. Under modperl the output from system will not go to the user unless your perl was compiled with sfio. The reason for that I guess is that under modperl STDOUT is tied to a package, while system commands expect file descriptor. The easiest way to

RE: [new module] proposal Apache::DebugHeaders

2000-03-29 Thread Matt Sergeant
On Wed, 29 Mar 2000, Geoffrey Young wrote: actually, http://perl.apache.org/src/apache-modlist.html recommends h2xs -AX -n Apache::YourPackageName what's the -C option - it isn't in my perldoc h2xs? It was supposed to be -c, shoot the typist :) Not really relevant with -X, but I always

Re: [OT slightly] mod_perl developers (do they exist?)

2000-03-29 Thread Andy Johnson
Well, I don't know if the rest of you actually exist, but I do, and I'm looking for a job!

porting DBI to Apache::DBI

2000-03-29 Thread James Array
Haloo I'm confusing of how to port DBI CGI to Apache::DBI mod_perl with Apache::Registry for the most efficient: if my normal DBI CGI is: use strict; use DBI; my $dbh=DBI-connect("database","login","password","mysql"); .. $dbh-disconnect;

RE: perl 5.6/mod_perl 1.22/apache 1.3.12

2000-03-29 Thread Charles Day
Success! after 4 days. 3 full pages of warnings during the 1.22 Makefile, I guess I never tried installing mod_perl after this, I kept trying 1.21 with 5.6 and 1.3.12, a, moron. Thanks Doug for taking the blinders off me. Charles -Original Message- From: Doug MacEachern

Re: [PATCH 5.6.0] local $SIG{FOO} restoration

2000-03-29 Thread Hugo
In [EMAIL PROTECTED], Doug MacEachern writes: :when 'local $SIG{ALRM} = sub {...}' goes out of scope, magic_setsig() sets :the SIGALRM handler to SIG_DFL, rather than the original handler. this :causes quite a bit of trouble running inside of apache, since 'local :$SIG{ALRM}' unhooks the apache

Re: [PATCH] hack for $App obj in memory take 2 (config opt)

2000-03-29 Thread Joshua Chamas
Joel Reed wrote: i'm not sure if anyone will ever find this useful but this makes $Application a per-process global var if you prefer that. this is probably terribly coded but it works for what i need (i'm definitely not a perl guru). please suggest improvement if you can ;) need

Re: [PATCH] in memory $Application object for Apache::ASP

2000-03-29 Thread Joshua Chamas
Joel Reed wrote: modperl yes this is the killer with making my stuff work for both iis/asp modperl. modperl do you have any suggestions for an api consistent solution? maybe i could modperl hack up something where $Application data was obtainable thru IPC? the modperl killer is the

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread Jeffrey W. Baker
On Wed, 29 Mar 2000, Jerome MOUREAUX wrote: Hi All, I experience a trouble with Perl script using DBI running under Mod_perl and Registry If you have an idea from where the problem may come Here is the error : DBI-connect failed: ORA-12154: TNS:could not resolve service name

Re: porting DBI to Apache::DBI

2000-03-29 Thread James G Smith
"James Array" [EMAIL PROTECTED] wrote: Haloo I'm confusing of how to port DBI CGI to Apache::DBI mod_perl with Apache::Registry for the most efficient: if my normal DBI CGI is: use strict; use DBI; my $dbh=DBI-connect("database","login","password","mysql"); .. $dbh-disconnect;

SUCCESS: SGI Irix freeware perl + apache 1.3.12, dynamicallylinked.

2000-03-29 Thread Chan Wilson
Posting in the hopes it helps others out. Caveat empor thou, i've only tested bare functionality nothing more so far! After various headpounding exercises trying to get mod_perl integrated into the Irix freeware perl5.00503 and freeware apache (1.3.9), I've found the magic incantation that made

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread David S . Kenzik
The ORACLE_HOME ___environment___ variable is set where? I see no indication of it being set in any of your examples or config. I do see PerlSetVar setting it-- don't confuse that with the environment! PerlSetVar is a specific way to set variables so mod_perl can read them via the dir_config()

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread Jerome MOUREAUX
Thanks Jeffrey but: - the tnsname.ora is OK as tnsping works fine as well as the same script run from the command line. - the case is only important for Oracle in the string dbi:Oracle:SID (the line in startup.pl in commented it was just a previous try) I'm really running out of idea about

SOCK_RAW

2000-03-29 Thread Iniaki Fernandez Villanueva
Hi, I must use SOCK_RAW within a mod-perl module to implement with ip-tunneling dynamic load balancing on a cluster. Unfortunately i think that this is impossible whith Apache 1.3's API because of Apache's core handles connections (Apache modules can use SOCK_STREAM after a client connection,

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread Jerome MOUREAUX
David, The ORACLE_HOME is set in the httpd.conf with a PerlSetEnv directive. (it appears in the extract I sent). (I've checked that is OK in the scripts by printing out $ENV{ORACLE_HOME} ) The SID is not case sensitive (I tried some combination when I was trying to figure out what happen)

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread David S . Kenzik
My mistake, Jerome. PerlSetVar != PerlSetEnv I read that as PerlSetVar. Sorry to confuse the issue. I hope it's a simple permissions problem. Good luck! David S . Kenzik said... Jerome MOUREAUX said... David, The ORACLE_HOME is set in the httpd.conf with a PerlSetEnv

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread Perrin Harkins
On Wed, 29 Mar 2000, Jerome MOUREAUX wrote: Alias /indicators2/perl "/disc1/sherpa_a/indicators2/perl" [...] PerlSetEnv ORACLE_HOME /disc1/sherpa/oracle Do you really have a /disc1/sherpa directory and a /disc1/sherpa_a directory? - Perrin

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread David S . Kenzik
A final effort... From the command line it works. Perhaps your ORACLE_USERID, etc. is already set? Within your Registry script, that's probably not the case unless you've explicitly told it otherwise. So let's change your DSN around a bit: my $dbh = DBI-connect('dbi:Oracle:',

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread John D Groenveld
Write a small registry script to print %ENV and confirm ORACLE_HOME is set to /disc1/sherpa/oracle. In your shell, # cat eof/tmp/test.sh \$ORACLE_HOME/bin/tnsping YourTNSAlias eof # su - nobody -c 'env ORACLE_HOME=/path/to/oracle sh /tmp/test.sh' John [EMAIL PROTECTED]

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread Perrin Harkins
On Wed, 29 Mar 2000, Jerome MOUREAUX wrote: My scripts run well if I launch it from the command line. Have you tried running them from the command line as the user who the webserver runs as? There may be something in your user environment that allows them to work which is not set up for this

Re: ORA-12154: TNS:could not resolve service name with DBIunder Apache

2000-03-29 Thread Tom Barron
Hi, Jerome. I know you said that your tnsnames.ora is okay because tnsping works. However, the ORACLE error in the subject line indicates that ORACLE is choking on whatever database name it's receiving from perl. Try tnsping'ing or connecting to a database that you know doesn't exist in your

SOCK_RAW

2000-03-29 Thread Iniaki Fernandez Villanueva
Hi, I must use SOCK_RAW within a mod-perl module to implement with ip-tunneling dynamic load balancing on a cluster. Unfortunately i think that this is impossible whith Apache 1.3's API because of Apache's core handles connections (Apache modules can use SOCK_STREAM after a client connection,

POST data ending up in access_log

2000-03-29 Thread Sanjay Madan
i sometimes have problems sending POST data. most of the time, everything works fine. however, sometimes, i see something like the following in my access_log: --- snip 8--- ... "GET /transact HTTP/1.1" 200 3412 ... "POST /transact HTTP/1.1" 200 3412 ... "key1=val1key2=val2key3=val3POST

Re: ORA-12154: TNS:could not resolve service name with DBI under Apache

2000-03-29 Thread Alan E. Derhaag
Jerome MOUREAUX [EMAIL PROTECTED] writes: David, The ORACLE_HOME is set in the httpd.conf with a PerlSetEnv directive. (it appears in the extract I sent). (I've checked that is OK in the scripts by printing out $ENV{ORACLE_HOME} ) The SID is not case sensitive (I tried some combination

getting mod_perl working

2000-03-29 Thread Quadrilateral I was
I've been trying to get ePerl installed on a redhat system, and I seem to have narrowed it down to a problem with mod_perl and/or apache. Whenever I add a PerlModule statement to httpd.conf and try to restart httpd, it won't run. Doesn't give me any error messages--it just refuses to work.

Re: getting mod_perl working

2000-03-29 Thread Cliff Rayman
Anything in the error_log? cliff rayman genwax.com Quadrilateral I was wrote: I've been trying to get ePerl installed on a redhat system, and I seem to have narrowed it down to a problem with mod_perl and/or apache. Whenever I add a PerlModule statement to httpd.conf and try to restart

getting Image::Magick

2000-03-29 Thread Sam Carleton
I am trying to get Image::Magick compiled and installed. I am using CPAN and am getting this error: --- AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick) /usr/local/bin/perl -I/usr/local/lib/perl5/5.6.0/i686-linux

File uploading?

2000-03-29 Thread Frank Wiles
Hello Everyone, I've been beating my head up against file uploading via the browser, in mod_perl. The example in the Eagle book doesn't seem to be working for me. This is the latest error I'm getting: [Wed Mar 29 20:36:07 2000] [error] Can't locate object method "new" via package

Re: performance mongers: since when is using CGI.pm or Apache::Registrydishonorable?

2000-03-29 Thread C. Jon Larsen
CGI.pm is a great piece of code, but its very monolithic. Lincoln/Doug's libapreq module is probably much faster (I have never run benchmarks) than CGI.pm, so it makes sense for those who like the Q-param type interface (I do) for working with CGI environment variables, but don't need all the

Re: performance mongers: since when is using CGI.pm or Apache::Registry dishonorable?

2000-03-29 Thread Matt Arnold
I came across poorly in my original message. Some of my wording (e.g. l33t, h@x0r, sux, etc.) was a poor attempt at trying to make the message entertaining. :-( Shrug I feel badly that my poor wording and/or extreme tone is getting in the way of the intent. I sincerely want to learn the

Re: performance mongers: since when is using CGI.pm or Apache::Registry dishonorable?

2000-03-29 Thread Ken Williams
[EMAIL PROTECTED] (Matt Arnold) wrote: 1. An Apache handler doesn't mean CGI.pm *ISN'T* in use 2. Just because you don't use Apache::Registry doesn't mean you're not doing CGI emulation (*gasp*) 3. Using Apache::Registry doesn't necessarily mean CGI.pm is at use 4. Using CGI.pm is smart (aka

Re: performance mongers: since when is using CGI.pm or Apache::Registry dishonorable?

2000-03-29 Thread Ken Williams
[EMAIL PROTECTED] (Matt Arnold) wrote: I came across poorly in my original message. Some of my wording (e.g. l33t, h@x0r, sux, etc.) was a poor attempt at trying to make the message entertaining. :-( Shrug I feel badly that my poor wording and/or extreme tone is getting in the way of the

Error in Installation

2000-03-29 Thread Ramesh Vadlapatla
Hello! I get the below errors when I try to install(perl Makefile.PL) modperl. Could someone help me out? Thanks, Ramesh Using config file: /opt/users/ramesh/software/mod_perl-1.22/src/Configuration Creating Makefile + configured for Linux platform + setting C compiler to gcc + setting C

Re: possible bug: mod_perl 1.22 (Perl 5.6 / Apache 1.3.12)

2000-03-29 Thread JoshNarins
Support for strings represented as a vector of ordinals Literals of the form Cv1.2.3.4 are now parsed as a string composed of characters with the specified ordinals. This is an alternative, more readable way to construct (possibly unicode) strings instead of interpolating characters, as in

Re: loading of mod_perl

2000-03-29 Thread shang
Randy: Thanks for replying my message. First of all, my Perl os working and I can run some perl program in cgi-bin directory from browser. The c:\perl\bin is of course in the path. My Perl version is : v5.6.0 built for MSWin32-x86-multi-thread. Apache version is the lastest 1_3_12 (Win32)