Re: TransHandler causes Undefined subroutine #::handler called.
Hi there, On Tue, 20 Feb 2001, Russell Lundberg wrote: Apache 1.3.12 (EVERYTHING=1), mod_perl 1.24, Perl 5.005_2, Solaris 5.7. package Apache::Download; use Apache; sub handler { return DECLINED; } 1; [error] null: Undefined subroutine #::handler called. What's the file's name, where is it, what's in your configuration, do you have any other files/packages named the same in the search paths, (have you tried a different package name e.g. Apache::DNL1a2b3c which definitely won't conflict with anything else), do you have any other handlers running OK, have you read http://perl.apache.org/guide? 73, Ged. PS it might be worth upgrading those sources. OS patches?
Re: TransHandler causes Undefined subroutine #::handler called.
On Tue, 20 Feb 2001, Russell Lundberg wrote: I'm having problems with the PerlTransHandler handler. Every request generates the following error: [error] null: Undefined subroutine #::handler called. Here is the TransHandler: package Apache::Download; use Apache; sub handler { return DECLINED; } You need to show us the relevant part of your httpd.conf (or wherever the transhandler gets configured). Originally I wanted to use TransHandler to generate a file from thin air. User click a link to a file which does not exist, but the TransHandler would create it and send it to the client. Usually one would just generate the content in a PerlHandler (the content handler phase), possibly with a TransHandler to tell Apache to use the content handler module when it is needed. - ask -- ask bjoern hansen - http://ask.netcetera.dk/ more than 70M impressions per day, http://valueclick.com
Re: Unexpected PATHINFO behavior under SSL
On Mon, 19 Feb 2001, Jeff Beard wrote: This may be offtopic-ish but I'm hoping for some forbearance. This has ruined a perfectly good day. :) I have an application that gets it state information from PATHINFO. Runs fine without SSL but I setup a test env using Raven SSL then PATHINFO, and SCRIPT_NAME, start returning different data. For instance the program handler would be called /foo and I'll add /bar to the path to trigger a behavior. Under SSL, the SCRIPT_NAME is set to /foo/bar and PATHINFO is empty. Without SSL, SCRIPT_NAME is /foo and PATHINFO is bar. is this under Apache::Registry? Does it happen on with SSL connections or with both SSL connections and normal connections when Raven SSL is loaded/compiled in? If the latter then I would suspect that Raven SSL is patching something funny into Apache. (I've never tried Raven SSL. I use mod_ssl for SSL in Apache). In any case, you might have more luck with Covalent's support. This is Apache 1.3.12, mod_perl 1.24, Raven 1.5.3 on RH Linux 6.2. mod_perl was built with EVERYTHING=1. All modules were statically built. Perl 5.00503. - ask -- ask bjoern hansen - http://ask.netcetera.dk/ more than 70M impressions per day, http://valueclick.com
mod_perl and Apache 2.0 alpha on win32
Howdy. As mod_perl and Apache 1.3 won't thread on NT/2000, I'm asking if anyone has any experience with mod_perl and Apache 2.0 alpha. I've built apache which runs (though it doesn't like my old configuration file very much!), but can't get mod_perl running. Mod_perl builds OK (apparently) but I don't get an ApacheModulePerl.dll out at the end, I get a Leak.dll and a Symbol.dll. Has anyone else been here? Words of wisdom appreciated. Replies off-list if alpha software is considered off-topic, otherwise go ahead and share. Regards, Alistair
Re: mod_perl as DSO on AIX with perl-5.6
On Wed, Feb 07, 2001 at 06:29:04PM -0600, Christian Gilmore wrote: Recompiling with dl_dlopen.xs instead of dl_aix.xs caused 49 of the 180 self-tests to fail. I recompiled with debugging turned on and ran against GDB. Here's the result followed by the output of './perl -I./lib -V'. Jens, did you have success running with dl_dlopen.xs without other modification? Oops, gotcha. I had to do one change to a script in the perl distribution: --- perl-5.6.0/makedef.pl.orig Wed Feb 21 13:17:34 2001 +++ perl-5.6.0/makedef.pl Wed Feb 21 13:17:56 2001 @@ -165,7 +165,7 @@ ---EOP--- } elsif ($PLATFORM eq 'aix') { -print "#!\n"; +print "#! .\n"; } my %skip; -- Jens-Uwe Mager HELIOS Software GmbH Steinriede 3 30827 Garbsen Germany Phone: +49 5131 709320 FAX:+49 5131 709325 Internet: [EMAIL PROTECTED]
RE: Apache::DBI::connect problem, please help
Thank you, Geoff and Arun. I am doing it the way you suggest. My problem turned out to be a bad installation of Apache::DBI.pm. (it was just a copy of DBI.pm). -Original Message- From: Arun Theeban [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 11:39 PM To: Geoffrey Young; 'Brad Howerter'; '[EMAIL PROTECTED]' Subject: RE: Apache::DBI::connect problem, please help You have to put Apache::DBI before any of the DBI's you are using in httpd.conf file. In your cgi programs use only "DBI" not "Apache::DBI" module. a simple program would be. #! /usr/bin/perl print "Content-type:text/html\n\n"; $dbh=DBI-connect("DBI::Pg::dbname=emp","user","passwod"); print "body connected successfully /body"; $dbh-disconnect; if Apache::DBI was loaded before DBI, some of the fuctions would be overridden. Even if you give $dbh-disconnect,Apache::DBI will override funtion to nothing. -Arun --- Geoffrey Young [EMAIL PROTECTED] wrote: -Original Message- From: Brad Howerter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 12:57 PM To: '[EMAIL PROTECTED]' Subject: RE: Apache::DBI::connect problem, please help [snip] So Apache/DBI.pm must be installed incorrectly on my system. It's supposed to be different from the DBI.pm? yup, you need both. DBI is, well, DBI. Apache::DBI is a persistent framework under mod_perl that uses DBI. HTH --Geoff k __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
[OT] HTTP/1.1 client support using LWPng
Slightly off topic... I am considering using the LWPng (HTTP/1.1) client code for an app where we could gladly use both of the HTTP/1.1 features that it offers: persistent connections (the client and server are separated by 7 time zones and the TCP connect time is a horrible 125 ms ;=( , and pipelining of requests. The status of the code , according to Gisle Aas, is definitely alpha, and it hasn't been touched in a few years. Has anyone else used this module ? and how successfully ? Thanks -Simon - Simon Rosenthal ([EMAIL PROTECTED]) Web Systems Architect Northern Light Technology One Athenaeum Street. Suite 1700, Cambridge, MA 02142 Phone: (617)621-5296 : URL: http://www.northernlight.com "Northern Light - Just what you've been searching for"
[JOB] Perl web/database programmer needed
Within the next few weeks we expect to formally announce a position open immediately for an on-site web/database programmer (using mod_perl, mysql and probably Mason). We're located in the beautiful Fingerlakes region of upstate New York. Here's the description ... - Web/Database Programmer: To work in close partnership with the team lead to design and implement a flexible web-based platform for simulating economic markets. The platform will be used for a national electric power market experiment, and will serve as a foundation for many other economics experiments for research and teaching. Applicant must have experience in design and implementation of large complex database-driven web applications. Must have 5 years experience in object-oriented Perl programming, SQL database programming and web programming. Apache/mod_perl and mysql experience desired. Experience with embedded Perl technologies, Linux server administration, XML, Java, JavaScript and open source software are a plus. - ... e-mail me off-list if you are interested. -- Ray Zimmerman / e-mail: [EMAIL PROTECTED] / 428-B Phillips Hall Sr Research / phone: (607) 255-9645 / Cornell University Associate / FAX: (815) 377-3932 / Ithaca, NY 14853
undefined symbol: perl_get_cv
Hi, I recently download mod_perl 1.25 to go along side Apache 1.3.17, but I get the following error when running Apache: undefined symbol: perl_get_cv I'm running Debian Woody (unstable), with perl-5.6.0. Thanks, -reid
Odd Caching Bug
Hello, One of the developers I currently am working with has found an odd bug that can be replicated on several workstations. First my configuration : Apache 1.3.17 mod_perl 1.25 Mason (Ancient) Apache::DBI .88 Postgres 7 MaxRequestsPerChild 1 KeepAlive on We have two components that contain the following code. One of which changes a session variable (datestyle to 'ISO')on the postgres database. Theoretically the two components should return different results based on the specific datestyle settings ('ISO' and default). This only occurs when two browsers are opened independently that do not share the same session. When using ctrl-n on a windows client to open a new window it appears that they share session information and possibly the same tcp/ip connection(?). When reloading the components in the two windows eventually they both return the 'ISO' format date. After pausing for several minutes and reloading the component that DOES NOT explicitly set the 'ISO' format variable, it correctly returns the default date format. --COMPONENT 1-- %perl_init my $dbh = Edventions::Utilities-new-getDbHandle; ## Uses Apache::DBI to connect my $sql = q( select now() as today ); my $sth = $dbh-prepare( $sql ); $sth-execute; my $now = $sth-fetch-[0]; /%perl_init h1% $now % --COMPONENT 2-- %perl_init my $dbh = Utilities-new-getDatabaseHandle; ## Uses Apache::DBI to connect my $sql = q( set datestyle to 'ISO'; select now() as today ); my $sth = $dbh-prepare( $sql ); $sth-execute; my $now = $sth-fetch-[0]; /%perl_init h1% $now % Now when the apache directive KeepAlive is set to 'off' this problem does not occur. I am trying to figure out where the caching is occurring or if the database handle is not getting properly destroyed for each request. Any suggestions as to why this is occurring would be greatly appreciated. Thanks,
GET correctness
Hi. A thing I would like to have is a module that ensures GET correctness. It should at least prevent file and database writes when handling a GET request. Does such a beast exist? Thanx, Joachim -- "... ein Geschlecht erfinderischer Zwerge, die fuer alles gemietet werden koennen."- Bertolt Brecht - Leben des Galilei
Rotating Apache logs
Hi I've found out how to edit httpd.conf so that it will rotate the error and access logs. But you have to restart apache to read that which I'd rather not do. Is there a command-line use or the rotatelogs by means of which you can rotate the logs on the fly ? Terry
RE: undefined symbol: perl_get_cv
I think you need to compile the perl part of mod_perl with PERL_STACKED_HANDLERS=1 or EVERYTHING=1 -Original Message- From: Reid Sutherland [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:29 AM To: [EMAIL PROTECTED] Subject: undefined symbol: perl_get_cv Hi, I recently download mod_perl 1.25 to go along side Apache 1.3.17, but I get the following error when running Apache: undefined symbol: perl_get_cv I'm running Debian Woody (unstable), with perl-5.6.0. Thanks, -reid
[Fwd: TransHandler causes Undefined subroutine #::handler called.]
Thanks for your comments. I renamed the file/package with the same result. I will need to figure out the OS patches and maybe upgrade to current sources before trying again. Russell "G.W. Haywood" wrote: Hi there, On Tue, 20 Feb 2001, Russell Lundberg wrote: Apache 1.3.12 (EVERYTHING=1), mod_perl 1.24, Perl 5.005_2, Solaris 5.7. package Apache::Download; use Apache; sub handler { return DECLINED; } 1; [error] null: Undefined subroutine #::handler called. What's the file's name, where is it, what's in your configuration, do you have any other files/packages named the same in the search paths, (have you tried a different package name e.g. Apache::DNL1a2b3c which definitely won't conflict with anything else), do you have any other handlers running OK, have you read http://perl.apache.org/guide? 73, Ged. PS it might be worth upgrading those sources. OS patches? -- Russell Lundberg Director of Operations, Asia Pacific Signalsoft Corporation Mobile +66 1 807 8159 Fax: +1 720 221 6658 http://www.signalsoftcorp.com/ -- Russell Lundberg Director of Operations, Asia Pacific Signalsoft Corporation Mobile +66 1 807 8159 Fax: +1 720 221 6658 http://www.signalsoftcorp.com/
[Fwd: TransHandler causes Undefined subroutine #::handler called.]
Thanks for helping. Here is the line from httpd.conf: PerlTransHandler Apache::Download One version of the handler did as you say. I have tried several different approaches to make this work. I should point out that each of the versions worked fine on my Win98 laptop running Randy Kobes 0.6 binary (thank you, Sir!): Apache 1.3.12, Perl 5.6.0, mod_perl 1.23. Upgrading the sources as Ged Haywood suggests is probably my next step. Russell Ask Bjoern Hansen wrote: On Tue, 20 Feb 2001, Russell Lundberg wrote: I'm having problems with the PerlTransHandler handler. Every request generates the following error: [error] null: Undefined subroutine #::handler called. Here is the TransHandler: package Apache::Download; use Apache; sub handler { return DECLINED; } You need to show us the relevant part of your httpd.conf (or wherever the transhandler gets configured). Originally I wanted to use TransHandler to generate a file from thin air. User click a link to a file which does not exist, but the TransHandler would create it and send it to the client. Usually one would just generate the content in a PerlHandler (the content handler phase), possibly with a TransHandler to tell Apache to use the content handler module when it is needed. - ask -- ask bjoern hansen - http://ask.netcetera.dk/ more than 70M impressions per day, http://valueclick.com -- Russell Lundberg Director of Operations, Asia Pacific Signalsoft Corporation Mobile +66 1 807 8159 Fax: +1 720 221 6658 http://www.signalsoftcorp.com/ -- Russell Lundberg Director of Operations, Asia Pacific Signalsoft Corporation Mobile +66 1 807 8159 Fax: +1 720 221 6658 http://www.signalsoftcorp.com/
Re: [AIX] [gsar@ActiveState.com: v5.6.1 trial2 is available]
Hi guys, [AIX-4.3.2, IBM's C compiler, Apache apxs shared modules] How about putting [AIX] in the subject line? I've seen a number of people asking about AIX on the mod_perl List. 73, Ged.
RE: success with Apache::Compress
-Original Message- From: Justin To: [EMAIL PROTECTED] Sent: 2/21/01 5:19 PM Subject: success with Apache::Compress Hi, after looking at mod_gzip, Apache::Gzip, Apache::GzipChain and so on, I decided to try Apache::Compress, with some doubt that it was "worth it" There were a few hiccups, but it worked out great. [snip] * page sizes are MUCH smaller, in many/most cases... home page -- 50k -- 12k one 50 post forum thread -- 120k -- 22k large html table with finnicky cell colors etc -- 87k -- 8k well, I was going to wait until after TPC5 to release it, but you sound so excited :) I came up with Apache::Clean while preparing some slides: http://morpheus.laserlink.net/~gyoung/modules/Apache-Clean-0.01.tar.gz it's just a simple interface into Paul Lindner's nifty HTML::Clean, but set up as a PerlHandler that can stand on it's own or be used with the latest Apache::Filter. Just in case you want to eek out that last bit of bandwidth - I saw about another 10% drop when combining Apache::Clean with Apache::Compress Anyway, I'll probably put it on CPAN tomorrow... --Geoff * load times from the users perspective, even on a DSL line, feel twice as fast. On a modem, for some examples above, it would feel 5x faster! my subjective feel under MSIE on just a 300mhz laptop, but connected to a 784kbps DSL line, was that pages appear twice as fast.. * my bandwidth bill drops by 2/3rd (would be much more but html was not 100% of bandwidth, plus I'm conservative about switching it on for more browsers).. AWESOME.. -Justin
cvs commit: modperl-2.0/lib/ModPerl Code.pm
dougm 01/02/21 19:49:22 Modified:lib/Apache Build.pm lib/ModPerl Code.pm Log: make noedit_warning routines more usable elsewhere Revision ChangesPath 1.31 +9 -2 modperl-2.0/lib/Apache/Build.pm Index: Build.pm === RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- Build.pm 2001/02/08 19:30:44 1.30 +++ Build.pm 2001/02/22 03:49:22 1.31 @@ -333,6 +333,13 @@ chmod 0755, $file; } +my $noedit_warning_hash; + +#we are use'd by ModPerl::Code, so delay this until after compilation +CHECK { +$noedit_warning_hash = ModPerl::Code::noedit_warning_hash(__PACKAGE__); +} + sub save { my($self, $file) = @_; @@ -347,7 +354,7 @@ #work around autosplit braindeadness my $package = 'package Apache::BuildConfig'; -print $fh ModPerl::Code::noedit_warning_hash(); +print $fh $noedit_warning_hash; print $fh EOF; $package; @@ -641,7 +648,7 @@ open my $fh, '', $mf or die "open $mf: $!"; -print $fh ModPerl::Code::noedit_warning_hash(); +print $fh $noedit_warning_hash; $self-make_tools($fh); 1.41 +23 -11modperl-2.0/lib/ModPerl/Code.pm Index: Code.pm === RCS file: /home/cvs/modperl-2.0/lib/ModPerl/Code.pm,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- Code.pm 2001/02/18 21:57:50 1.40 +++ Code.pm 2001/02/22 03:49:22 1.41 @@ -469,10 +469,20 @@ [(map { "$_.c" } @g_c_names), (map { "$_.h" } @g_h_names)]; } -sub noedit_warning { -my $v = join '/', __PACKAGE__, $VERSION; -return EOF; +my %warnings; +sub classname { +my $self = shift || __PACKAGE__; +ref($self) || $self; +} + +sub noedit_warning_c { +my $class = classname(shift); +my $warning = \$warnings{C}-{$class}; +return $$warning if $$warning; +my $v = join '/', $class, $class-VERSION; +$$warning = EOF; + /* * *** WARNING ** * This file generated by $v @@ -482,14 +492,16 @@ EOF } - -my $noedit_warning = noedit_warning(); -my $noedit_warning_hash = noedit_warning_hash(); +#this is named hash after the `#' character +#rather than named perl, since #comments are used +#non-Perl files, e.g. Makefile, typemap, etc. sub noedit_warning_hash { -return $noedit_warning_hash if $noedit_warning_hash; -(my $warning = noedit_warning()) =~ s/^/\# /mg; -$warning; +my $class = classname(shift); +my $warning = \$warnings{hash}-{$class}; +return $$warning if $$warning; +($$warning = noedit_warning_c($class)) =~ s/^/\# /mg; +$$warning; } sub init_file { @@ -512,7 +524,7 @@ warn "generating...$file\n"; unlink $file; open my $fh, '', $file or die "open $file: $!"; -print $fh @preamble, $noedit_warning; +print $fh @preamble, noedit_warning_c(); $self-{fh}-{$name} = $fh; } @@ -576,7 +588,7 @@ my $package = 'package Apache2'; -print $fh ModPerl::Code::noedit_warning_hash(); +print $fh noedit_warning_hash(); print $fh EOF; $package;