>Tom Schindl <[EMAIL PROTECTED]> wrote: ehm, then you can use CGI.pm, that's plain perl.

I don't think that CGI.pm is a solution when you need performance.
There is an article (http://perl.apache.org/docs/1.0/guide/performance.html#Apache__args_vs__Apache__Request__param_vs__CGI__param) which describes this.
 
What I wrote is not about not having a solution for reading the params. The application works with CGI.pm already. I wrote this because I don’t understand why you can NOT do this simple and so important task (reading params) using only mp2 core API.
I like mod_perl and I’m using perl/mod_perl for 3 years already (and I’m sure I will use it in future) but probably that’s why so many programmers work with php (for simple ta sks you have to install new modules).
Any way is my opinion only and maybe I’m wrong.
 
Coming back to libapreq2-2.06-dev (because it seems that is the only good solution). 
I use Server: Apache/2.0.55 (Unix) mod_ssl/2.0.55 OpenSSL/0.9.7a PHP/5.1.1 mod_perl/2.0.2 Perl/v5.8.7 on Linux RH6.
I installed everything manually not in default install folders (but in /user/local/…)
For libapreq2 I did:
perl587 Makefile.PL --with-apache2-apxs=/user/local/apache2/bin/apxs
make
make install
 
Everything seems ok but when I try:
use Apache2::Request ();
use Apache2::RequestRec ();
my $r = shift;
$r->content_type("text/html");
my $apr = Apache2::Request->new($r); #the problem is here!
$r->print($apr->param('test'));
 
Nothing happened. No error in log file and no output from apache. I assume d that I have a SEGMENTATION FAULT.
 
After this I tried:
make test
in libapreq2 installation folder.
Result is:
Failed 1/10 test scripts, 90.00% okay. 0/74 subtests failed, 100.00% okay.
[warning] server localhost.localdomain:8529 shutdown
[  error] error running tests (please examine t/logs/error_log)
make[1]: *** [run_tests] Error 1
make[1]: Leaving directory `/user/local/src/perlpms/Apache2_Request/libapreq2-2.06-dev/glue/perl'
make: *** [perl_test] Error 2
 
In glue/perl/t/logs/error_log I have:
[Fri Feb 10 09:55:48 2006] [debug] prefork.c(956): AcceptMutex: sysvsem (default: sysvsem)
[Fri Feb 10 09:55:59 2006] [info] removed PID file /user/local/src/perlpms/Apache2_Request/libapreq2-2.06-dev/glue/perl/t/logs/httpd.pid (pid=
14860)
[Fri Feb 10 09:55:59 2006] [notice] caught SIGTERM, shutting down
 
Thank you in advance.
 
MJ
 
 Regarding:
> P.S.
> With the modification that you made for mod_perl2 you will loose a 
lot
> of perl programmer and I doubt t
 hat you
 will get new ones.
I was working with mod_perl 1 and I started a big project in mod_perl 1.99 (which suppose to be mp2) . Now I noticed that a lot of my work was useless because I need modifications for mp2.


Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Reply via email to