Hi MJ, have you tried the libapreq mailing list?
M J wrote: > > */>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 tasks you have to install new > modules). > Any way is my opinion only and maybe I’m wrong. > Why should one reinvent the wheel if there's already a solution for a sometimes not so easy task of parsing form parameters. Mod-perl is what it aims to be the glue code to the Apache-API. If you want Mod-Perl to provide access to parameters in another fashion you'd have to convince the Apache people to integrate libapreq in to Apache by default. > > 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. > You forgot to load libapreq into your server, edit your httpd.conf and add the following line: --------8<-------- LoadModule perl_module modules/mod_perl.so LoadModule apreq_module modules/mod_apreq2.so --------8<-------- > 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 > assumed 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 > I have no idea which test is failing in your situation the only thing I can see is that you're using the old libapreq-API which should work without any question. The new one could be found here: http://search.cpan.org/~joesuf/libapreq2-2.06-dev/glue/perl/xsbuilder/APR/Request/Apache2/Apache2.pod > > > 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 that 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. What's the big deal with this namespace switch. The rename document shows exactly what has to be done. http://perl.apache.org/docs/2.0/rename.html > *//* > > ------------------------------------------------------------------------ > Yahoo! Autos <http://us.rd.yahoo.com/evt=38381/ > ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http://autos.yahoo.com/index.html >>. Looking for a sweet ride? Get pricing, reviews, & more on new and > used cars. > > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.375 / Virus Database: 267.15.3/254 - Release Date: 08.02.2006
signature.asc
Description: OpenPGP digital signature