Cleanuphandler

2007-08-27 Thread Cure
In my mason template I have the following code.

$r-set_handlers( PerlCleanupHandler = [ do_cleanup ]);

But for some reason the main script waits for the function do_cleanup
to finish.  I thought the function would be process in the Cleanup Phase?

The borwser will set their until the function do_cleanup is done processing.

Thanks



 


Re: [mp2] porting older mp2 code to 2.0.0 - I'm stuck with params from apreq!

2005-05-22 Thread Cure




Carl Brewer wrote:
Carl
Brewer wrote:
  
  
  
  Apache2::RequestUtil-request($r).;



If
I'd looked in :
  
docs/html/group__apreq__xs__request.html
  
  
I'd have seen that all I needed to do was to
  
change
  
  
use Apache::Request;
  
to
  
use Apache2::Request;
  
  
and
  
my $req = Apache::Request-new($r);
  
to
  
my $req = Apache2::Request-new($r);
  
  
and it would have just worked!
  
  
  
Mea Culpa
  
  
Carl
  
  
  






libapreq2 2.05

2005-04-26 Thread Cure




When I try to install libapreq2-2.05-dev in freebsd, I get the
following error --

 parser.c:84: error: syntax error before
'*' tokenBRparser.c:84: warning: data definition has no type or
storage classBR*** Error code 1BRBRStop in
/usr/home/rack/perl/libapreq2-2.05-dev/library.BR*** Error code
1BR


I got the file from http://people.apache.org/~joes/




Paul




Path issue

2005-04-25 Thread Cure
I'm currently in the processof porting mod_perl 1.0 code to run under 
mod_perl 2.0.

Alot of my mod_perl libraries are in 
--/usr/local/lib/perl5/site_perl/5.8.6/mach/Apache2/Apache/

So when I try to load module Apache::porting .   I get the following 
error --

[Mon Apr 25 12:06:38 2005] [error] Can't locate Apache2/porting.pm in 
@INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.6/mach/Apache2 
/usr/local/lib/perl5/site_perl/5.8.6/mach 
/usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl 
/usr/local/lib/perl5/5.8.6/BSDPAN /usr/local/lib/perl5/5.8.6/mach 
/usr/local/lib/perl5/5.8.6 . /usr/local) at (eval 5) line 3.\n

I'm currently using apache-2.0.54 + mod_perl2-2.0.0r3,1
Cure


Re: Path issue

2005-04-25 Thread Cure
Tom Schindl wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
when running the old mod-perl rcs which means older than rc5 you'll have
to load Apache2 e.g. in startup.pl which will add the
/usr/local/lib/perl5/site_perl/5.8.6/mach/Apache2/ in your @INC.
But I'd suggest not to do that. In rc5 there has been a major change and
all module now reside in Apache2/* and not any more in Apache2/Apache/*.
Upgrade your installation first and if you have problems come back.
There are receipts how to nuke your current rc3 installation in the
archives.
e.g. quoting Stas:
- ---8---
find /usr/lib/perl5 -name 'Apache2*' -exec rm -rf {} \;
- ---8---
Tom
Cure schrieb:
| I'm currently in the processof porting mod_perl 1.0 code to run under
| mod_perl 2.0.
|
| Alot of my mod_perl libraries are in
| --/usr/local/lib/perl5/site_perl/5.8.6/mach/Apache2/Apache/
|
| So when I try to load module Apache::porting .   I get the following
| error --
|
|
| [Mon Apr 25 12:06:38 2005] [error] Can't locate Apache2/porting.pm in
| @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.6/mach/Apache2
| /usr/local/lib/perl5/site_perl/5.8.6/mach
| /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl
| /usr/local/lib/perl5/5.8.6/BSDPAN /usr/local/lib/perl5/5.8.6/mach
| /usr/local/lib/perl5/5.8.6 . /usr/local) at (eval 5) line 3.\n
|
|
| I'm currently using apache-2.0.54 + mod_perl2-2.0.0r3,1
|
|
| Cure
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCbSdZkVPeOFLgZFIRAoI7AKCTKx2wLqJvTFED0YX6FgHhm2CH2ACfe7Za
Q7/TTvmqKizq9A3C96x8ez8=
=g8TF
-END PGP SIGNATURE-

I will upgrade.   Where can I found libapreq 2 on cpan ?
Paul


connections

2005-04-25 Thread Cure
I have the following info in my startup file --
Apache::DBI-connect_on_init(DBI:mysql:database=mmg;host=HOST,user,pass);
-- That worked perfect in mod_perl1, now that I'm using mod_perl2 I get 
the following info in my error log when starting apache --

[Mon Apr 25 17:45:50 2005] startup.perl: Apache.pm was not loaded
If I put use Apache::compat in the startup, then the error message goes 
away.

Not sure how to solve this issue.
Cure


Mod_Perl

2005-04-25 Thread Cure
I wanted to use Apache2 + Mod_Perl2 for our production server but not 
sure if mod_perl2(mod_perl2-2.0.0r3,1 ) is consider stable .


Cure


Mod_perl Installation Issues

2005-04-22 Thread Cure
I'm currently using Freebsd 5.3 and Apache2, I'm trying to install 
mod_perl2 from ports but I get the following error --

make install
===   mod_perl2-2.0.0r3,1 depends on file: /usr/local/sbin/apxs - found
===   mod_perl2-2.0.0r3,1 depends on file: /usr/local/bin/perl5.8.6 - found
===  Configuring for mod_perl2-2.0.0r3,1
Reading Makefile.PL args from @ARGV
 MP_APXS = /usr/local/sbin/apxs
 MP_INST_APACHE2 = 1
[  error] Unable to determine server version, aborting.
[  error] Invalid MP_APXS specified?
*** Error code 1
Stop in /usr/ports/www/mod_perl2.
Using perl, v5.8.6 built for i386-freebsd-64int
(with 2 registered patches, see perl -V for more detail)

Cure


Mod_perl Installation Issue

2005-04-22 Thread Cure
I'm currently using Freebsd 5.3 and Apache2, I'm trying to install 
mod_perl2 from ports but I get the following error --

make install
===   mod_perl2-2.0.0r3,1 depends on file: /usr/local/sbin/apxs - found
===   mod_perl2-2.0.0r3,1 depends on file: /usr/local/bin/perl5.8.6 - found
===  Configuring for mod_perl2-2.0.0r3,1
Reading Makefile.PL args from @ARGV
  MP_APXS = /usr/local/sbin/apxs
  MP_INST_APACHE2 = 1
[  error] Unable to determine server version, aborting.
[  error] Invalid MP_APXS specified?
*** Error code 1
Stop in /usr/ports/www/mod_perl2.

Cure


Re: About putting the blame on other shoulders

2004-12-28 Thread Cure
Everybody needs to STEP BACK and realize how much work and soul Stas 
has put into mod_perl.
He deserves A LOT OF CREDIT. Keep up the Good work Stas.

Paul
Stas Bekman wrote:
Andreas J Koenig wrote:
On Tue, 28 Dec 2004 00:09:07 -0500, Stas Bekman 
[EMAIL PROTECTED] said:


  Will it not also affect us who build mod_perl applications and want
  an easy-to-use installer to just work for people who download our
  software? Frankly, I don't think that it should be fine for just the
  dedicated mod_perl developer. This is one place where PHP is kicking
  the crap out of us.
   us == perl, once PAUSE is fixed, and CPAN clients are adjusted, 
it willjust work.

Stas, please stop propagating this fairy tale. The danger is, that
people will believe you. This I call unfair propaganda as it tries to
put the blame on somebody else's shoulders. That's not a very
promising strategy to solve problems.
Listen carefully: it is very unlikely that PAUSE and CPAN get
fixed as you call it. There is no solution at hand and 4
people who you know well and who in turn know the problem domain very
well have agreed and have told you so.
So please stop telling untruth.

Andreas, what exactly do you call untruth? My attempt to make 
PAUSE/CPAN better and accomodate the growing community needs? Why is 
that untruth?

It's not a danger that people will believe me, it's a hope. If enough 
people believe in that may be things will change. Things shouldn't be 
cast in stone and they should evolve as the world evolve.

I truly don't understand why you refuse to believe that CPAN/PAUSE 
needs to grow.

Re: About putting the blame on other shoulders
It's not putting blame on other shoulders. It's an attempt to actually 
solve things. You know very well, that I didn't just say it's 
PAUSE/CPAN problem. I've spent hours trying to find a solution. I've 
even found a person who have agreed to implement the required changes. 
And all you can say: put the blame on other shoulders? thanks so 
much for giving me so much credit.


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [ANNOUNCE] Practical mod_perl book is released under Creative Commons license

2004-12-17 Thread Cure
Practical mod_perl book  -- GREAT BOOK.
I just wanted to say thxs Stas for all your hard work, I really 
appreciate it.

Paul
colin_e wrote:
Stef1 wrote:
Stas, no complaints, I know you put tons of effort in modperl ! Only 
a hint : the moment you write a book specific on MP2 : I will buy it 
directly.

Stef

I'll second that. I need all the help I can get ;-)
Regards: Colin

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: CGI_GATEWAY - modperl version 2

2004-11-08 Thread Cure
Thxs Stas for the right answer.  I thought  =  I was right sorry :)
I never knew that PerlHandler would work in mod_perl 2. Good to know, thxs
Stas Bekman wrote:
Cure wrote:
PerlHandler is a mod_perl 1 directive.
PerlResponseHnalder is a mod_perl 2 directive.

Both work just fine under mp2, unless compiled with MP_COMPAT_1X=0
http://perl.apache.org/docs/2.0/user/install/install.html#MP_COMPAT_1X
replace -- PerlHandler ModPerl::Registry with
PerlResponseHandler ModPerl::Registry

It won't make any difference to the asked question :) The link posted 
earlier:
http://perl.apache.org/docs/2.0/user/porting/compat.html#C__ENV_GATEWAY_INTERFACE__ 

is the right answer...


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: CGI_GATEWAY - modperl version 2

2004-11-07 Thread Cure
PerlHandler is a mod_perl 1 directive.
PerlResponseHnalder is a mod_perl 2 directive.
replace -- PerlHandler ModPerl::Registry with
PerlResponseHandler ModPerl::Registry
[EMAIL PROTECTED] wrote:
Hi,
I have probelms with modperl installation; have read through the manuals and
also mailing lists but was not able to solve the probelm. Any help will be
highly appreciated :)
I installed modperl and apache, and configured it in httpd.conf like
LoadModule perl_module modules/mod_perl.so
PerlModule Apache2
Alias /perl/ /programs/apache/perl/
Location /perl/
 SetHandler perl-script
 PerlHandler ModPerl::Registry
 PerlOptions +ParseHeaders
 Options +ExecCGI
/Location
When my server starts ; I see following messages;
Apache/2.0.52 (Unix) mod_perl/1.99_17 Perl/v5.8.0 mod_ssl/2.0.52 OpenSSL/0.9.7a
configured -- resuming normal operations
I tried to execute perl scripts from the /perl dir and it works. But when I
print the environment; the GATEWAY_INTERFACE prints CGI/1.1. I beleive something
is wrong somewhere; I tried different things as mentioned in mod_perl 2 server
configuration document from Apache but was not able to solve it.
Following is the print of env variables;
'SCRIPT_NAME' = '/perl/test.pl',
'SERVER_NAME' = 'localhost',
'SERVER_ADMIN' = '[EMAIL PROTECTED]',
'HTTP_ACCEPT_ENCODING' = 'gzip,deflate',
'HTTP_CONNECTION' = 'keep-alive',
'REQUEST_METHOD' = 'GET',
'HTTP_ACCEPT' = 
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1',

'SCRIPT_FILENAME' = '/programs/apache/perl/test.pl',
'SERVER_SOFTWARE' = 'Apache/2.0.52 (Unix) mod_perl/1.99_17 Perl/v5.8.0
mod_ssl/2.0.52 OpenSSL/0.9.7a',
'HTTP_ACCEPT_CHARSET' = 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'QUERY_STRING' = '',
'REMOTE_PORT' = '33708',
'HTTP_USER_AGENT' = 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3)
Gecko/20040803',
'SERVER_PORT' = '80',
'SERVER_SIGNATURE' = 'addressApache/2.0.52 (Unix) mod_perl/1.99_17
Perl/v5.8.0 mod_ssl/2.0.52 OpenSSL/0.9.7a Server at localhost Port 80/address
',
 'HTTP_CACHE_CONTROL' = 'max-age=0',
'HTTP_ACCEPT_LANGUAGE' = 'en-us,en;q=0.5',
'REMOTE_ADDR' = '127.0.0.1',
'HTTP_KEEP_ALIVE' = '300',
'SERVER_PROTOCOL' = 'HTTP/1.1',
'PATH' =
'/programs/apache/bin:/download/j2sdk1.4/bin:/bin:/download/j2sdk1.4/bin/://download/tomcat_old/bin:/programs/ant-1.6.2/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/programs/root/bin',
'REQUEST_URI' = '/perl/test.pl',
'GATEWAY_INTERFACE' = 'CGI/1.1',
'SERVER_ADDR' = '127.0.0.1',
'DOCUMENT_ROOT' = '/programs/apache/htdocs',
'HTTP_HOST' = 'localhost:80',
'MOD_PERL' = 'mod_perl/1.99_17'
 


--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html