Re: Set-Cookie2

2003-08-14 Thread Jie Gao
On Tue, 5 Aug 2003, Stas Bekman wrote: Jie Gao wrote: Hi All, Any idea if Set-Cookie2: is going to be implemented in CGI.pm? Lincohn? Jie, AFAIK, this has nothing to do with mod_perl. See: http://stein.cshl.org/WWW/software/CGI/#bugs Sorry. Now let me ask a question that's related

Set-Cookie

2003-08-14 Thread Jie Gao
Hi All, Any idea if Set-Cookie2: is going to be implemented in CGI.pm? Lincohn? Regards, Jie

Re: Trouble with Apache::Request

2003-07-31 Thread Jie Gao
Hi All, perl-5.8.0 + mp1.99_10. --- I am having problem trying to get /perl-status work. It bombs out in Status.pm at the following location: -- if (eval {require Apache::Request}) { $newQ ||= sub {

Socket-based porotocol module: how to re-use connection?

2003-06-19 Thread Jie Gao
Hi All, I am playing with a socket-based protocol module based on Stas' MyApache::EchoSocket. I wonder what is needed to enable the function of re-using connections? In perl we can use this: $server = IO::Socket::INET-new(LocalHost = my.host.com, LocalPort =

get_server_port (was:Re: run_access_check)

2003-03-25 Thread Jie Gao
On Mon, 24 Mar 2003, Stas Bekman wrote: Jie Gao wrote: Hi All, I am getting the following error mesg: Can't locate object method run_access_checker via package Apache::RequestRec at /usr/local/perl-5.8.0_threaded/lib/site_perl/5.8.0/xxx/.pm for the section: sub handler

run_access_check

2003-03-23 Thread Jie Gao
Hi All, I am getting the following error mesg: Can't locate object method run_access_checker via package Apache::RequestRec at /usr/local/perl-5.8.0_threaded/lib/site_perl/5.8.0/xxx/.pm for the section: sub handler { my Apache::Connection $c = shift; my APR::Socket $socket =

cvs version make test errors

2003-03-20 Thread Jie Gao
Hi All, I got a version from cvs today and make test fails with: protocol/echo_filter...ok protocol/eliza.skipped all skipped: cannot find module 'Chatbot::Eliza' All tests successful, 3 tests skipped. Files=115, Tests=610, 230 wallclock secs (115.33 cusr + 30.32

Re: cvs version make test errors

2003-03-20 Thread Jie Gao
On Fri, 21 Mar 2003, Stas Bekman wrote: Date: Fri, 21 Mar 2003 14:09:11 +1100 From: Stas Bekman [EMAIL PROTECTED] To: Jie Gao [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: cvs version make test errors Jie Gao wrote: Hi All, I got a version from cvs today and make test fails

Invalid command 'PerlCleanupHandler'

2003-02-26 Thread Jie Gao
Hi All, On redhat 8 using mod_perl-1.99_05-3 I have the folloing in httpd.conf: PerlCleanupHandler sub { %ENV = () } in VirtualHost, and am getting: Invalid command 'PerlCleanupHandler', perhaps mis-spelled or defined by a module not included in the

Re: mod_perl fails tests

2002-12-17 Thread Jie Gao
On Tue, 17 Dec 2002 [EMAIL PROTECTED] wrote: I am having some trouble installing mod_perl on my redhat linux 8.0 box. I successfully installed apache 2.0.43 from source and placed it in the /usr/local/apache2 directory. In addition, I downloaded the latest version of mod_perl from cvs. I

re: solaris 2.6, mod_perl 1.27, apache 1.3.27, make test fails

2002-10-28 Thread Jie Gao
Do you have multiple versions of perl installed? Try a clean installation of perl and use the same compiler and same flags in building everything. Regards, Jie On Mon, 28 Oct 2002, John E. Mendenhall wrote: Date: Mon, 28 Oct 2002 12:44:07 -0800 (PST) From: John E. Mendenhall [EMAIL

Re: mod_perl mod_php

2002-08-29 Thread Jie Gao
On Thu, 29 Aug 2002, Jesse Erlbaum wrote: Well what you said is true. I actuallay had perl 5.6.1 but I tried to use an old httpd executable compiled with 5.6.0. Adding directories to INC would help me but each time before I would start httpd, I'd have to do that. Instead I recompiled

Re: mod_proxy_add_forward.c

2002-07-21 Thread Jie Gao
On Sat, 20 Jul 2002, Ask Bjoern Hansen wrote: As you may know then the proxy module in httpd 2.0 incorporates the X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Server functionality of mod_proxy_add_forward.c. What are the differences between them? I have: ProxyPass /my-bin/

Re: compatibility problem

2002-05-23 Thread Jie Gao
On Wed, 22 May 2002, Doug MacEachern wrote: On Thu, 23 May 2002, Jie Gao wrote: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 15349)] 0x4031575d in modperl_mgv_lookup (symbol=0x0) at modperl_mgv.c:134 134 if (!symbol-hash) { (gdb) bt #0

Re: compatibility problem

2002-05-22 Thread Jie Gao
On Mon, 20 May 2002, Doug MacEachern wrote: On Fri, 17 May 2002, Jie Gao wrote: use Apache::Constants qw(:common :response M_GET M_POST AUTH_REQUIRED REDIRECT); the :response group in 1.x consists of names which apache has deprecated in 1.3.x and removed in 2.0, for which there are HTTP_

Re: compatibility problem

2002-05-22 Thread Jie Gao
On Wed, 22 May 2002, Doug MacEachern wrote: On Thu, 23 May 2002, Jie Gao wrote: I am also getting: [Thu May 23 14:11:45 2002] [notice] child pid 32213 exit signal Segmentation fault (11) when running my 1.3 module. I couldn't find any coredump, though. Anyone can help? modperl-1

Re: compile time errors

2002-05-21 Thread Jie Gao
On Tue, 21 May 2002, m31 wrote: I'm sorry (i wass in a rush), the errors come up when I run make test, the `perl Makefile.pl` works fine. (on OSX 10.1.4 (Darwin 5.4), Perl/5.6.0, mod_perl/1.25, apache/1.3.23) $ make test ...some more stuff /usr/bin/perl t/TEST 0 Can't

Re: Trouble installing mod_perl module files

2002-05-21 Thread Jie Gao
On Tue, 21 May 2002, Vicki Brown wrote: I just installed Apache 1.3.22 (that's what's in the FreeBSD ports collection). We were previously running 1.3.14 I installed mod_perl-1.26 into this with perl Makefile.PL \

make test problem

2002-05-19 Thread Jie Gao
Hi All, uname -a: Linux xxx 2.4.17-02-shuckle #8 Thu Apr 18 13:15:58 EST 2002 i686 unknown I've found Apache 2.0.36 doesn't work with mod_perl-1.99_01 on redhat 7.1. With apache 2.0.35, I'm getting: make test ... /usr/bin/perl -Iblib/arch/Apache2 -Iblib/lib/Apache2 \ t/TEST -clean setting

Re: make test problem

2002-05-19 Thread Jie Gao
On Sun, 19 May 2002, Doug MacEachern wrote: On Mon, 20 May 2002, Jie Gao wrote: I've found Apache 2.0.36 doesn't work with mod_perl-1.99_01 on redhat 7.1. you can use modperl from cvs with .36 or wait for modperl 1.99_02 (sometime this week). Just got one from cvs and 'make test' hangs

compatibility problem

2002-05-17 Thread Jie Gao
Hi all, I've been trying to get httpd-2.0.35 + mod_perl-1.99_01 work with backward compatibility. MY startupl.pl: #! /usr/bin/perl use lib '/usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache2'; use strict; use Apache::compat (); use Apache2 (); use My::AuthCookieHandler; 1; and this script

Re: mod_perl-1.99_01 make test fails

2002-04-09 Thread Jie Gao
Sorry, I got the wrong version. :-( Jie On Tue, 9 Apr 2002, Jie Gao wrote: Date: Tue, 9 Apr 2002 16:25:24 +1000 (EST) From: Jie Gao [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: mod_perl-1.99_01 make test fails Hi Doug, Apache 2.0.35 + modperl_20020409042640 uname -a: Linux

Re: install test fails

2002-04-03 Thread Jie Gao
On Tue, 2 Apr 2002, terry mcintyre wrote: Redhat Linux 7.2 Apache 1.3.24 Perl 5.6.1 mod-perl-1.26 make test fails with result: /usr/bin/perl t/TEST 0 Can't locate object method new via package URI::URL (perhaps you forgot to load URI::URL?) at ../blib/lib/Apache/test.pm line 252.

Apache::Sandwich, etc

2001-11-11 Thread Jie Gao
Hi All, I am wondering if it is possible to add a footer to dynamic pages, server-wide, like the subject module does to static pages. One apparent way to me is to add another content handler, but I am not sure how that'll work. Any suggestion is appreciated. Jie

Re: mod_perl, pipes, and No child processes

2001-11-06 Thread Jie Gao
On Tue, 6 Nov 2001, Tom Servo wrote: Hello all. I'm writing an app that opens a pipe to sendmail, which if memory serves, forks off a child process of apache to do the pipe, then exits as soon as it's finished. I was doing this with MIME::Lite, and it's been working absolutely splendidly

[OT] Re: mod_perl, pipes, and No child processes

2001-11-06 Thread Jie Gao
On Tue, 6 Nov 2001, Tom Servo wrote: On Tue, 6 Nov 2001, Luciano Miguel Ferreira Rocha wrote: I was under the assumption that doing something similar to: my $returnval = $msg-send(); Would give a similar answer. I'll give the $? a shot though. I've noticed that from

Re: Can't load mod_perl in Solaris 8

2001-07-12 Thread Jie Gao
On Thu, 12 Jul 2001, Doug MacEachern wrote: pitty perl -V does not report usebincompat5005, if you are trying to build modperl as a dso, Makefile.PL should have warned you: Your current configuration will most likely trigger core dumps, suggestions: *) Do not configure mod_perl as a DSO

Perl section woe

2001-02-17 Thread Jie Gao
Hi All, P. 417 of Eagle book has this: Directive is repeated mutiple times If a directive is repeated multiple times with different arguments each time, you can represent it as an array of arrays. This example using the AddIcon directive shows how: @AddIcon = ( [

Re: Perl section woe

2001-02-17 Thread Jie Gao
On Sat, 17 Feb 2001, Erdmut Pfeifer wrote: On Sat, Feb 17, 2001 at 08:56:40PM +1100, Jie Gao wrote: %LocationMatch = ( '^/(myscript|cgi-bin)/' = { 'AuthName' = 'Elephant', 'AuthType' = 'Animals', 'AuthDBMUserFile' = '/mydir/userdbm

DECLINED: What's going on?

2001-02-16 Thread Jie Gao
Hi All, On p. 68 of the eagle book, the explanation of DECLINED says: The handler has decided it doesn't want to handle the request. Apache will act as if the subroutine were never called and either handle the phase internally or pass the request on to another module that has

location and directory directives

2001-02-14 Thread Jie Gao
Hi All, I have been trying to go through the document directories, find out all the .htaccess files (which have their own authen/author configurations), parse and merge the authorisation info with the mod_perl authentication/authorisation directives in the server config file via the Perl

Re: PerlRun problem: undefined variables (Was: can't find method uri)

2001-02-09 Thread Jie Gao
On Thu, 11 Jan 2001, Doug MacEachern wrote: On Thu, 4 Jan 2001, Jie Gao wrote: Another problem with PerlRun is that it seems to interfere with mod_perl handlers. I have an authentication/authorisation handler, which reads in from a file for someinformation. After a script under

Re: PerlRun problem: can't find method uri

2001-01-03 Thread Jie Gao
On Tue, 2 Jan 2001, Ken Williams wrote: Error: [Tue Jan 2 16:02:37 2001] [error] Can't locate object method "uri" via package "Apache::PerlRun" at /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Apache/PerlRun.pm line 212. Jie, Try this patch. Does it solve the problem?

PerlRun problem: can't find method uri

2001-01-01 Thread Jie Gao
Hi All, perl -V Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Platform: osname=solaris, osvers=2.7, archname=sun4-solaris uname='sunos groucho 5.7 generic_106541-12 sun4u sparc sunw,ultra-80 ' hint=recommended, useposix=true, d_sigaction=define

Re: is morning bug still relevant?

2000-12-14 Thread Jie Gao
On Thu, 14 Dec 2000, Tim Bunce wrote: On Thu, Dec 14, 2000 at 11:47:58AM +1100, Jie Gao wrote: On Thu, 14 Dec 2000, Stas Bekman wrote: I think that this item from the guide is not relevant anymore. Can I kill it? =head3 The Morning Bug Relational database server keeps

development time: Mod_perl vs mod_php

2000-12-12 Thread Jie Gao
On Tue, 12 Dec 2000 [EMAIL PROTECTED] wrote: What I really like to see compared is the development time of php vs perl code for a given problem. I've read ad nauseam about perl development time being shorter than C. How does php compare to perl in this regard, I wonder. I don't know about

Available for hire

2000-09-07 Thread Jie Gao
Hi All, I'm available for hire in the areas of Apache+mod-perl and UNIX Admin (Solaris, Tru64, Linux). Jie

Re: Persistent db connectivity

2000-08-15 Thread Jie Gao
On Tue, 15 Aug 2000, Pramod Sokke wrote: I mentioned that I'm using Apache::Sybase::CTlib and not Apache::DBI for persistent connectivity. Moreover, if the module is not declared and I try to connect in the startup file, the server won't even start. So that's obviously taken care of. My

Re: Problem with form data using mod_perl and CGI.pm

2000-08-13 Thread Jie Gao
On Sat, 12 Aug 2000, stevenl wrote: I am running Linux 2.2, Apache 1.3.12, mod_perl 1.24, and CGI.pm 2.70. If I declare a CGI variable using 'my' (see below) and use mod_perl, I encounter problems with POST data. On subsequent entries in the form, it continues to use the old data. The

Re: DBD::Sybase problem

2000-06-20 Thread Jie Gao
Hi All, Following up the attached message I posted a couple of weeks ago, I found if the database was taken down during the lifetime of the Web server, this problem would pop up, even if the db was taken up again. Cheers, Jie On Fri, 9 Jun 2000, Jie Gao wrote: Date: Fri, 9 Jun 2000 18:26

One cgi test fails w/ CGI open of tmpfile: Permission denied

2000-06-15 Thread Jie Gao
Hi All, I have had the subject problem just now. And there is no specific answer about a solution in the archive. The one that got me out of this problem is: chmod 1777 /var/tmp Jie -- make test output: $ TEST -v

start up message

2000-06-15 Thread Jie Gao
Hi All, -- config info --- Apache/1.3.12 (Unix) mod_perl/1.24 $ perl -V Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Platform: osname=solaris, osvers=2.7, archname=sun4-solaris uname='sunos duo 5.7

DBD::Sybase problem

2000-06-09 Thread Jie Gao
Hi All, DBD::Sybase v 1.22 DBI 1.13 Apache::DBI v 1.44 mod_perl/1.23 Apache/1.3.12 Solaris/Sparc 7 Using cached connnection with: Apache::DBI-connect_on_init("DBI:Sybase:$db_name", $db_user_name, $db_user_pwd); in start_up.pl. Server starts ok and all goes well; but after a few hours I get

Re: Memory usage for libareq uploads

2000-06-06 Thread Jie Gao
On Tue, 6 Jun 2000, Jeremy Howard wrote: ... Well, I'm facing this problem now. The parms() method (or parse() or anything else that calls parms()) chews up enormous amounts of memory when uploading large files. I like to give my webmail users freedom to upload pretty much whatever size

Registry scripts slower than handlers: Why?

2000-02-03 Thread Jie Gao
On Thu, 3 Feb 2000, Joshua Chamas wrote: I regrouped the HelloWorld benchmark data at http://www.chamas.com/bench/ recently, so that it gives you a more informative comparison of the relative startup costs of web environments on a per platform basis. Registry scripts run slower according to

Re: As long as we're at it...

2000-02-01 Thread Jie Gao
On Tue, 1 Feb 2000, Steve Reppucci wrote: As long as we're on the job thread: Will you guys indicate in your ads whether you take app. from OUTSIDE USA, please? Who knows if you can't get someone like Doug who's a Kiwi? :-) Jie

Re: Perlhandler - AUTH: Solved

1999-10-21 Thread Jie Gao
On Thu, 21 Oct 1999, Darko Krizic wrote: I just hacked a little PerlHandler (content handler) module that uses Basic auth. I found out that things like $r-note_basic_auth_failure; my($res, $sent_pw) = $r-get_basic_auth_pw; return AUTH_REQUIRED do not work correctly for a content