practical mod_perl

2007-08-15 Thread Luke Lu
Hi all Anyone who has the (chm/pdf), please give me a copy. Thanks Good luck. Luke

Build static mod_perl and apachev2.2.3 fail

2007-01-06 Thread LUKE
What is difference between apache v2.0.59 and v2.2.3? I can build static mod_perl and apache v2.2.3. Have anyone build static mod_perl and apache v2.0.59 successfully? -- Makefile.PL PREFIX=/usr/local/Portal/perlmods LIB=/usr/local/Portal/perlmods \ MP_USE_STATIC=1 MP_AP_PREFIX="/usr/local/mpa

mod_perl-specific Compiler Options

2007-01-05 Thread LUKE
What situation we need to modify the mod_perl's IO buffer size? http://perl.apache.org/docs/2.0/user/install/install.html#_DMP_IOBUFSIZE mod_perl-specific Compiler Options Change the default mod_perl's 8K IO buffer size, e.g. to 16K: MP_CCOPTS=-DMP_IOBUFSIZE=16384

The PerlProcessConnectionHandler on mod_perl 2.0.2 + apache v2.2.3

2006-12-09 Thread LUKE
mod_perl 2.0.2 + apache v2.2.3 from http://www.devside.net/server/webdeveloper httpd.conf ThreadsPerChild 1920 I have a project must upload files to win2003 server. So i do the job by implement Protocol (Connection) Handlers in mod_perl.

How to get virtualhost info in mod_perl?

2006-10-26 Thread LUKE
The http://rd-program.blogspot.com  and http://se-program.blogspot.com  have the same ip address (72.14.207.191).How can i know the browser connect to  apache server(in mod_perl) via which hostname?  

Re: mod_perl using IPC::ShareLite

2006-09-27 Thread LUKE
may be the linux ramdisk is another good choice. you can use memory like normal filesystem. - Original Message - From: "Frank Wiles" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Wednesday, September 27, 2006 9:45 PM Subject: Re: mod_perl using IPC::ShareLite > On Wed, 27 Sep 2

strange problem,please help

2006-08-18 Thread LUKE
Then mod_perl still run the old program after i modify the code. Even restart apache or OS . I still got the old result! Why?  I must run fsck ?? The problem is filesystem Error? I often modify the code,but have no this problem before. How to trace the problem?  

How to avoid memory leak?

2006-07-27 Thread LUKE
My system have seem memory leak problem. The MEM_USR raise . But how to debug?? Is the Apache::Leak for mod_perl v1.x module?     PS:apache Apache/2.0.54  + MOD_PERL 2 no database <> Compress::Zlib;Crypt::RC5;Digest::MD4 'md4_hex';Data::Dumper;Encode::TW;Fcntl qw(:DEFAULT :flock);File::Copy

(OT) LWP question

2006-03-28 Thread Luke Vanderfluit
odule that can do this? Thanks. Kind regards. -- Luke

Another program about Protocol Handers!

2006-02-20 Thread LUKE
I use the code to redir smtp. And test the connection from outlook. But i find that the . can not recv from socket($socket->recv($line, 1024)) . I use WPR PRO to sniffer the packet , the outlook send out . . = package SMTP; use stri

Re: Tesing Protocol Handlers got strange result!

2006-02-18 Thread LUKE
I confirm the apache version. The apache v2.0.54  have this problem. But apache v2.0.55 + mod_perl v2.02(win32 or linux) have no this problem.   - Original Message - From: LUKE To: modperl@perl.apache.org Sent: Saturday, February 18, 2006 2:25 PM Subject: Tesing

Tesing Protocol Handlers got strange result!

2006-02-17 Thread LUKE
Then code is from http://perl.apache.org/docs/2.0/user/handlers/protocols.html Command Server. When i start to test. It will not response Welcome Message until i type enter. Why?   The FTP Server or SMTP Server will response Welcome Message first. If i want to implement those protocol using A

How to overide the Date header??

2006-02-14 Thread LUKE
Apache will response Date info, But server and client have different clock and the cache(Expire Header) will become invalid. If i can get local pc datetime from _javascript_. and i can modify DATE header then the program will solve. But the Date header seem can not by modified. Why ?    

File handle in mod_perl

2006-01-16 Thread LUKE
I have some problem about file handle in mod_perlV2.02 + apache v2.055. I got some strange result today.And i check the program find that i forgot to close(filehande). But this case  to bring about some guestion! Will the code influence each other? When muti-user visit the same recourse a

Re: -M in modperl

2006-01-12 Thread LUKE
sorry apache2.0.55 - Original Message - From: "LUKE" <[EMAIL PROTECTED]> To: Sent: Friday, January 13, 2006 1:17 AM Subject: Re: -M in modperl > linux apache 2.55 mod_perl v2.02 > > The file will list,but it is not sort by file's mtime in mod_perl!

Re: -M in modperl

2006-01-12 Thread LUKE
linux apache 2.55 mod_perl v2.02 The file will list,but it is not sort by file's mtime in mod_perl! - Original Message - From: "LUKE" <[EMAIL PROTECTED]> To: Sent: Friday, January 13, 2006 1:06 AM Subject: Re: -M in modperl > The result is not sort by file

Re: -M in modperl

2006-01-12 Thread LUKE
The result is not sort by file's mtime! But if i run the code in cgi or shell. It is sort by file's mtime. - Original Message - From: "LUKE" <[EMAIL PROTECTED]> To: Sent: Friday, January 13, 2006 12:58 AM Subject: -M in modperl > opendir( DIR, "/pa

-M in modperl

2006-01-12 Thread LUKE
opendir( DIR, "/path" ); my @dots = grep(/recovery/,sort { -M $a <=> -M $b } readdir(DIR)); closedir(DIR); Can not work in mod_perl?? How to solve it??

Need use modules in my code?

2005-12-20 Thread LUKE
===http.conf=== LoadModule perl_module modules/mod_perl.soPerlRequire "/usr/local/perlmods/startfile.pl" ===startfile.pl=== use Compress::Zlib;     The two type of code will work.But what is the proper code?     #!/usr/bin/perl use Compress::Zlib; . print Compress::Zlib::memGzip($htmlstr);

what is difference with static and DSO mod_perl ?

2005-12-19 Thread LUKE
How to setup httpd.conf ? when i using static (non-DSO) mod_perl. DSO mod_perl httpd.conf === LoadModule perl_module modules/mod_perl.so PerlRequire "/usr/local/perlmods/startfile.pl" Will i need recomplie apache when i modify my (perl)code , when using non-DSO mod_perl?

The Last-Modified header issue!

2005-12-18 Thread LUKE
The apache v2.055 (mod_perl v2.02) will modify the Last-Modified's value automatically.   If the OS time is "Sun, 18 Dec 2005 14:25:01 GMT" . And print out the  Last-Modified header whith print "Last-Modified: Sun, 18 Dec 2005 14:28:01 GMT\n";   The apache will modify the value with "Sun,

radius authentication then basic

2005-11-15 Thread Luke Vanderfluit
I do this? -- Luke

Re: is apache using modperl?

2005-09-26 Thread luke
Hi. 26Sep2005 @ 09:40 Geoffrey Young thusly spake > > > Alexander Charbonnet wrote: > > Rename your Perl binary and see if it still works. :-) > > egads, no. > > >>How can I be sure that is being run by mod_perl and not by perl? > > http://perl.apache.org/docs/1.0/guide/install.html#How_can_

is apache using modperl?

2005-09-25 Thread luke
ol( li('peas'), li('peppers'), li('red'), li('green') ), hr, end_html; \___ How can I be sure that is being run by mod_perl and not by perl? Thanks. Kind regards. Luke. -- ._.. .| .| |.|/.|_ . .|__.|_|.|\.|_ . :61 421 276 282:

Re: The mod_perl protocol handler sample code have some problem!

2005-07-21 Thread LUKE
Thanks! But the problem is still exist. - Original Message - From: "Randy Kobes" <[EMAIL PROTECTED]> To: "薛共和" <[EMAIL PROTECTED]> Cc: Sent: Thursday, July 21, 2005 12:47 PM Subject: Re: The mod_perl protocol handler sample code have some problem! On Thu, 21 Jul 2005, [big5] [EMAIL PR

Re: Internal server error

2004-11-07 Thread Luke
Thanks for your response. However at the moment what I needed was perl to work on my webserver for testing purpose only on a global level. I found a way to enable perl using an apache directive and bypassed mod_perl altogether. So for the time being everything is fine. Thanks for you response

Internal server error

2004-11-06 Thread Luke
I have an intresting problem, I have a test server running windows 2k, Activestate perl and apache 2. I have loaded the perl module mod_perl.so as well as told it to use C:/Perl/bin/perlxx.dll. In the httpd.conf I have commented out the script alias and add ExecCGI to the options, then added A