Re: mod_perl: Configuration info at run-time

2000-06-13 Thread Matt Sergeant
On Mon, 12 Jun 2000, Richard L. Goerwitz wrote: In response to my query about how to get a list of virtual servers, Matt Sergeant wrote: It's server-next(): for (my $s = Apache-server; $s; $s = $s-next()) { print "Virtual host: ", $s-server_hostname, "\n"; } Here's a

Where do I put my code?

2000-06-13 Thread Ariel Manzur
Hi.. I need apache to do this: always ask for authentication, accept any username/password as valid, and set an enviroment variable with the password, so I can retrieve it on a CGI script later. I wrote this code: Perl my $r = Apache-request; my $username = $r-connection-user; my($ret,

Re: mod_perl, Perl 5.6 .0 DBI

2000-06-13 Thread Rolf Stoll
On Mon, Jun 12, 2000 at 09:48:25AM +0200, Rolf Stoll wrote: With mod_perl I get a: [notice] child pid 652 exit signal Segmentation fault (11) as soon as i try to make a $dbh = DBI-connect(...); For me, I solved the problem by configuring PHP4 with --with-mysql=/usr/local, which forced it

Re: Apache::Session weirdness

2000-06-13 Thread Jure Simsic
I see. That explains it.. Perhaps it would be nice just to put a note about this in the Apache::Session documentation.. Jure Ken Miller wrote: At 03:13 AM 6/10/00 +0200, Jure Simsic wrote: I'm tryng to use Apache::Session and store a bunch of data into a (complex) hash (using FileStore).

Expanding a URI

2000-06-13 Thread Kenneth Lee
Hi all, I'm writing a fixup handler which do some statistics for each request base on the URI. The problem is when I open "/", I have no way to know the file sent to the client in the Response Phase is "/index.html" or whatever it was mapped. $r-filename gives me "/www/htdocs", i.e

Perl Handler not called from Directory

2000-06-13 Thread Richard Hadley
Hi, I have written a PerlHandler that executes when called from within a Location tag. But doesn't even get called when I change the tag to being a Directory tag. e.g Location SetHandler perl-script PerlHandler Apache::MyModule /Location Works fine Directory SetHandler perl-script PerlHandler

Re: mod_perl: Configuration info at run-time

2000-06-13 Thread Richard L. Goerwitz
To get a list of virtual servers - for (my $s = Apache-server; $s; $s = $s-next()) { print "Virtual host: ", $s-server_hostname, "\n"; } Is there any reasonable way to use the list of servers (successive values of $s above) to determine what mod_perl PerlSetVar directives

Re: mod_perl: Configuration info at run-time

2000-06-13 Thread Matt Sergeant
On Tue, 13 Jun 2000, Richard L. Goerwitz wrote: To get a list of virtual servers - for (my $s = Apache-server; $s; $s = $s-next()) { print "Virtual host: ", $s-server_hostname, "\n"; } Is there any reasonable way to use the list of servers (successive values of $s

Re: perl vs java

2000-06-13 Thread Roger Espel Llima
Now, now...that is unfair. I was referring to writing in pure Perl vs pure Java. Of course, C apis and pre-written daemon integration makes the glue language a moot point (and favors Perl actually). Well, mine is pure perl. it can speak the protocol to integrate with a pre-written C irc

Re: Apache::Session weirdness

2000-06-13 Thread Perrin Harkins
On Tue, 13 Jun 2000, Jure Simsic wrote: I see. That explains it.. Perhaps it would be nice just to put a note about this in the Apache::Session documentation.. It's already there: "Note that Apache::Session does only a shallow check to see if anything has changed. If nothing

Apache::AuthCookie

2000-06-13 Thread MOORHOUSE, John NW Group Risk
Having problem with the above, anyone any idea It doesn't seem to create the cookie I added the log_error above err_header_out in login() $r-log_error("SET COOKIE " . $self-_cookie_string($r, "$auth_type\_$auth_name", $ses_key)) if ($debug = 2); $r-err_header_out("Set-Cookie" =

Cookie ordering

2000-06-13 Thread morpheus
I read something a while back in the archives about people having problems with setting cookies via err_headers_out. I need to arrange cookies in a particular order using ap_table_add(r-err_headers_out, "Set-Cookie", list); Does anyone have a recommendation on how to ensure that the Set-Cookie

Re: Where do I put my code?

2000-06-13 Thread Ariel Manzur
Hi.. this is very helpful.. thanks.. :-) Now, I have one last question. Where do I put the "pachage Test::AuthAny" code? At 09:24 13/06/2000 -0400, darren chamberlain wrote: I need apache to do this: always ask for authentication, accept any username/password as valid, and set an enviroment

handlers on CPAN

2000-06-13 Thread J. J. Horner
do handlers belong on CPAN? Thanks, JJ -- J. J. Horner Apache, Perl, Unix, Linux [EMAIL PROTECTED] http://www.knoxlug.org/

Re: mod_perl: Configuration info at run-time

2000-06-13 Thread Richard L. Goerwitz
Matt Sergeant wrote: for ($s = Apache-server; $s; $s = $s-next) { my ($server, $port) = ($s-server_hostname, $s-port); $r-print('server: ', $server, "\n"); $r-print('port: ', $port, "\n"); my $subreq = $r-lookup_uri("http://$server:$port/");

Logging response times

2000-06-13 Thread Eric Jain
I currently log "time - $r-request_time" in my PerlLogHandler. This seems to works well, but I'm sure there is a better method, which also is able to log more detailed than just in seconds... -- Eric Jain

How do I get modperl and php to coexist?

2000-06-13 Thread Rob Tanner
With both modperl and php3 installed in apache (static build), modperl works fine and php simply doesn't work. When I try a GET on a *.php3 page, my browser wants to save it. That symptom addressed in the php faq (#6.8) which states that the php module is not getting invoked and has some

Re: How do I get modperl and php to coexist?

2000-06-13 Thread Ime Smits
| works fine and php simply doesn't work. When I try a GET on a *.php3 page, | my browser wants to save it. That symptom addressed in the php faq (#6.8) Look for a line like AddType application/x-httpd-php3 .php3 .php .phtml in your httpd.conf. If it ain't there, that's propably your

RE: How do I get modperl and php to coexist?

2000-06-13 Thread Rob Tanner
It's Caldera's 2.3 Linux distribution. I'm not sure off the top of my head (and I'm not near my machine) what the kernel level -- it's a v2 something (2.2.0.10 or something like that??) -- Rob --On Tuesday, June 13, 2000 1:35 PM -0700 Karyn Ulriksen [EMAIL PROTECTED] wrote: Which OS OS

Re: How do I get modperl and php to coexist?

2000-06-13 Thread Rob Tanner
That would be too easy. 'Fraid it's there. -- Rob --On Tuesday, June 13, 2000 11:07 PM +0200 Ime Smits [EMAIL PROTECTED] wrote: | works fine and php simply doesn't work. When I try a GET on a *.php3 page, | my browser wants to save it. That symptom addressed in the php faq (#6.8) Look

RE: How do I get modperl and php to coexist?

2000-06-13 Thread Karyn Ulriksen
Let's start with the basics, If you run 'httpd -l', doesn mod_php show up in the list of compiled in modules that it spits out? If yes, Apache did compile with PHP with at least minimum PHP services. If no, Apache did not compile in PHP. If you cd to "apache distribution

Re: [OT] Re: sendMail in cgi program

2000-06-13 Thread Ian Kallen
Well, you _can _ do this $var="END"; This is my variable's multiline text, complete tith tabs\t\t and extra newline\n\n, etc END four spaces in the opening and closing quote. I usually use qq{ } depending on how much I care about whitespace formatting.

Re: [OT] Making apps (un)available solution

2000-06-13 Thread Frank Wiles
.--[ Erich L. Markert wrote (2000/06/13 at 15:24:26) ]-- | | I'm trying to figure out the best way to make apps (un)available without | having to edit the apache config files. | | Any suggestions would be appreciated. | `-

RE: Problem compiling with HPUX 11 64-bit OS

2000-06-13 Thread Scott Phan
Gavin, I still have problems when compiling Apache. However, I managed to retrieve an Apache 1.3.12 version that works on hpux 11 64-bit OS at this address: http://hpux.connect.org.uk/hppd/hpux/Networking/WWW/apache-1.3.12/ But when I integrate it with mod_perl version 1.24, the httpd doesn’t

Re: Apache::Session weirdness

2000-06-13 Thread Dave Baker
On Sat, Jun 10, 2000 at 07:30:04AM -0600, Ken Miller wrote: The session hash reference is a tied var. When you follow a reference past the first level, the tied methods don't get invoked. When you update the top level (as you did with the time()) you cause the tied methods to be invoked,

RE: non-DSO mod_perl, Embperl, and AIX not working

2000-06-13 Thread Greg Estep
When 'make' invokes 'ld' with the following command: ld -o blib/arch/auto/HTML/Embperl/Embperl.so -bhalt:4 -bM:SRE -bI:/usr/local/lib/ perl5/5.6.0/aix/CORE/perl.exp -bE:Embperl.exp -b noentry -lC -lc -L/usr/local/lib Embperl.o epmain.o epio.o epchar.o epcmd.o eputil.o epeval.o epdbg.o

Modperl Test Problem and Redhat6.2 Apache::DBI strange thing. Thanks.

2000-06-13 Thread Steven Zhu
Hi All: Thank you all for taking time to read this message. I got two things that i really don't understand. 1. I got RedHat6.2. I tried to install modperl. Apache1.3.12 and modperl 1.24. I installed every prerequired package. Configuration is fine and compiling is fine without any errors. But

Re: Apache on Nt

2000-06-13 Thread Martin Morrison
SP5 works fine. Martin josephbifano wrote: Hi, I have Apache running on a windows NT workstation and need to get Mod_perl and HTML::MASON working so I can do development on it. I can not get mod_perl to load. I have tried several things with no luck. I am using sp5 and one of the

Re: Where do I put my code?

2000-06-13 Thread Ariel Manzur
Is there any way to know if the module is runnung? I put the .pm file inside /usr/lib/perl5/site_perl/5.005/i386-linux (that's where Apache.pm is) and then put: AuthType Basic AuthName "Name of the Authentcation Realm" require valid-user

Re: perl vs java

2000-06-13 Thread Shane Nay
On Tue, 13 Jun 2000, you wrote: Now, now...that is unfair. I was referring to writing in pure Perl vs pure Java. Admittedly it's not completely fair :-). I admitted that I would do (have done) it in c. Given a choice between C and perl that is. But as you say in the next paragraph, Perl is

cvs commit: modperl-2.0/src/modules/perl mod_perl.c mod_perl.h modperl_callback.c modperl_config.c modperl_config.h modperl_types.h

2000-06-13 Thread dougm
dougm 00/06/13 14:05:55 Modified:lib/ModPerl Code.pm pod modperl_dev.pod src/modules/perl mod_perl.c mod_perl.h modperl_callback.c modperl_config.c modperl_config.h modperl_types.h Log: first cut of PerlOptions directive