Re: Tracking down taint problems
On Tue, 24 Apr 2001, Jamie Krasnoo wrote: > I recently got this error: > > Insecure dependency in eval while running with -T switch. > Callback called exit. > > Now, yes that tells me that something is wrong. What it doesn't tell me is > where the problem is except for the fact that its somewhere in the current > module that's being run. Is there a way that I could get mod_perl to fess up > where the problem is? You could try to use Carp with $SIG{__(DIE|WARN)__}. But mainly read the perlsec manpage. Also see: http://perl.apache.org/guide/perl.html#Exception_Handling_for_mod_perl regarding the catching of exceptions. _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
Tracking down taint problems
I recently got this error: Insecure dependency in eval while running with -T switch. Callback called exit. Now, yes that tells me that something is wrong. What it doesn't tell me is where the problem is except for the fact that its somewhere in the current module that's being run. Is there a way that I could get mod_perl to fess up where the problem is? Jamie Krasnoo [EMAIL PROTECTED]
Re: Problem building on Solaris 2.7
Stead of DSO why don't you compile statically. On Tue, Apr 24, 2001 at 02:47:55PM -0700, Mod-Perl List wrote: > > > I am trying to build mod_perl 1.25 as a DSO on Solaris 2.7 > and when I execute perl Makefile.PL, it says I will probably > get core dumps and to upgrade to perl 5.6. I am running > Perl 5.005_03, the latest considered stable on Solaris 2.7. I > cannot upgrade to 5.6 due to heavy perl code already on this > machine. > > Can anyone point me in the right direction? > > Thanks, > CC
Problem building on Solaris 2.7
I am trying to build mod_perl 1.25 as a DSO on Solaris 2.7 and when I execute perl Makefile.PL, it says I will probably get core dumps and to upgrade to perl 5.6. I am running Perl 5.005_03, the latest considered stable on Solaris 2.7. I cannot upgrade to 5.6 due to heavy perl code already on this machine. Can anyone point me in the right direction? Thanks, CC
RE: mod_perl help
I'm not sure if mod_perl will work with activeperl -Original Message- From: abhishek agrawal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 11:50 To: [EMAIL PROTECTED] Subject: mod_perl help Hi, I have been trying to run perl scripts on apache using mod_perl. I initially had perl5.6.0 which came with the Redhat. I then configured my apache and got simple per scripts running. Then i realised that most of the perl scripts which will eventually run on my machine are wirtten in Activeperl, i installed activeperl ( for linux). but then when i tried running perl scripts which used modules such as Date::Calc, i get errors such as "Cant find loadabel object module " I am sure that i have installed the modules correctly using the ppm. Someone suggested me that the mod_perl is built using different perl (perl5) and the perl which is running on my machine is different (Active perl). Hence it is causing problem. So i removed the perl5 completely from my machine and tried building mod_perl again. But when i tried bulding mod_perl again, i gave me and error saying that "it need perl5.6.0" Does Active perl does not work properly with mod_perl? If yes, can you tell me where exactly am i making mistake. I have been stuck with this problem for more than 2 weeks now, and any help will be greatly appreciated. yours truely, Abhishek _ The reward for working hard is more hard work. MESG «(`P_BE On Tue, 24 Apr 2001 13:34:49 Stas Bekman wrote: >> At least two people responded to my last message telling me that they >> didn't like Slash much; it was a horrible piece of code. Are you >> refering to it as a general piece of Perl code, or how it deals with >> mod_perl? If the latter, where I can find some good code to look it? > >Once you do something not very cleanly people will remember for a long >time. I didn't check the latest versions of it, I suppose it's much much >better now. It's rewritten by different people too. > >> Also, Apache can't recognize the directive; it gives me the >> following error: >> >> Invalid command '', perhaps mis-spelled or defined by a module not >> included in the server configuration > >Please read the documentation before posting. e.g. see: >http://perl.apache.org/guide/config.html#Enabling > >> mod_perl.c seems to be installed. 'httpd -l' shows it listed at the >> bottom. I've added the directive 'AddModule mod_perl.c' to httpd.conf, >> and it doesn't throw an error, so I know /something/ is being loaded, >> but the directive still doesn't work. >> >> Am I missing something? > >see above > >_ >Stas Bekman JAm_pH -- Just Another mod_perl Hacker >http://stason.org/ mod_perl Guide http://perl.apache.org/guide >mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ >http://singlesheaven.com http://perl.apache.org http://perlmonth.com/ > > > Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/
mod_perl help
Hi, I have been trying to run perl scripts on apache using mod_perl. I initially had perl5.6.0 which came with the Redhat. I then configured my apache and got simple per scripts running. Then i realised that most of the perl scripts which will eventually run on my machine are wirtten in Activeperl, i installed activeperl ( for linux). but then when i tried running perl scripts which used modules such as Date::Calc, i get errors such as "Cant find loadabel object module " I am sure that i have installed the modules correctly using the ppm. Someone suggested me that the mod_perl is built using different perl (perl5) and the perl which is running on my machine is different (Active perl). Hence it is causing problem. So i removed the perl5 completely from my machine and tried building mod_perl again. But when i tried bulding mod_perl again, i gave me and error saying that "it need perl5.6.0" Does Active perl does not work properly with mod_perl? If yes, can you tell me where exactly am i making mistake. I have been stuck with this problem for more than 2 weeks now, and any help will be greatly appreciated. yours truely, Abhishek _ The reward for working hard is more hard work. MESG «(`P_BE On Tue, 24 Apr 2001 13:34:49 Stas Bekman wrote: >> At least two people responded to my last message telling me that they >> didn't like Slash much; it was a horrible piece of code. Are you >> refering to it as a general piece of Perl code, or how it deals with >> mod_perl? If the latter, where I can find some good code to look it? > >Once you do something not very cleanly people will remember for a long >time. I didn't check the latest versions of it, I suppose it's much much >better now. It's rewritten by different people too. > >> Also, Apache can't recognize the directive; it gives me the >> following error: >> >> Invalid command '', perhaps mis-spelled or defined by a module not >> included in the server configuration > >Please read the documentation before posting. e.g. see: >http://perl.apache.org/guide/config.html#Enabling > >> mod_perl.c seems to be installed. 'httpd -l' shows it listed at the >> bottom. I've added the directive 'AddModule mod_perl.c' to httpd.conf, >> and it doesn't throw an error, so I know /something/ is being loaded, >> but the directive still doesn't work. >> >> Am I missing something? > >see above > >_ >Stas Bekman JAm_pH -- Just Another mod_perl Hacker >http://stason.org/ mod_perl Guide http://perl.apache.org/guide >mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ >http://singlesheaven.com http://perl.apache.org http://perlmonth.com/ > > > Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/
Re: Directive Undefined
Hi, I have been trying to run perl scripts on apache using mod_perl. I initially had perl5.6.0 which came with the Redhat. I then configured my apache and got simple per scripts running. Then i realised that most of the perl scripts which will eventually run on my machine are wirtten in Activeperl, i installed activeperl ( for linux). but then when i tried running perl scripts which used modules such as Date::Calc, i get errors such as "Cant find loadabel object module " I am sure that i have installed the modules correctly using the ppm. Someone suggested me that the mod_perl is built using different perl (perl5) and the perl which is running on my machine is different (Active perl). Hence it is causing problem. So i removed the perl5 completely from my machine and tried building mod_perl again. But when i tried bulding mod_perl again, i gave me and error saying that "it need perl5.6.0" Does Active perl does not work properly with mod_perl? If yes, can you tell me where exactly am i making mistake. I have been stuck with this problem for more than 2 weeks now, and any help will be greatly appreciated. yours truely, Abhishek _ The reward for working hard is more hard work. MESG «(`P_BE On Tue, 24 Apr 2001 13:34:49 Stas Bekman wrote: >> At least two people responded to my last message telling me that they >> didn't like Slash much; it was a horrible piece of code. Are you >> refering to it as a general piece of Perl code, or how it deals with >> mod_perl? If the latter, where I can find some good code to look it? > >Once you do something not very cleanly people will remember for a long >time. I didn't check the latest versions of it, I suppose it's much much >better now. It's rewritten by different people too. > >> Also, Apache can't recognize the directive; it gives me the >> following error: >> >> Invalid command '', perhaps mis-spelled or defined by a module not >> included in the server configuration > >Please read the documentation before posting. e.g. see: >http://perl.apache.org/guide/config.html#Enabling > >> mod_perl.c seems to be installed. 'httpd -l' shows it listed at the >> bottom. I've added the directive 'AddModule mod_perl.c' to httpd.conf, >> and it doesn't throw an error, so I know /something/ is being loaded, >> but the directive still doesn't work. >> >> Am I missing something? > >see above > >_ >Stas Bekman JAm_pH -- Just Another mod_perl Hacker >http://stason.org/ mod_perl Guide http://perl.apache.org/guide >mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ >http://singlesheaven.com http://perl.apache.org http://perlmonth.com/ > > > Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/
Re: modperl/ASP and MVC design pattern
Francesco Pasqualini wrote: > - Original Message - > From: <[EMAIL PROTECTED]> > To: "Francesco Pasqualini" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, April 20, 2001 8:11 PM > Subject: Re: modperl/ASP and MVC design pattern > > > > > You can (I have) accomplish this with mod_perl and HTML::Mason, Mason's > > root level autohandler can play the role of the JSP model 2 > > "controller servlet": dispatching logic processing to Perl objects (er, > > beans) and "forwarding" to a view (with the Mason $m->call_next or > > $m->comp mechanisms). I think the Apache::Dispatch stuff can also > > perform this role (haven't played with it to say for certain). I'll > > qualify this by saying MVC is not a end in itself, there are a lot of > > modern requirements for flexible branding, client form factor appropriate > > and locale specific presentations that require the view/controller part to > > be a lot smarter than the traditional concepts of MVC that I've seen call > > for. I've been referring to these needs in my own engineering discussions > > as (yikes) MVC++ :) > > ... this is really interesting, can you point me to documentation about > "MVC++" > thanks > Francesco Francesco, I believe that Ian was joking, hence the yikes before the name, so the above post is the documentation! Ed
Re: FW: Tomcat or WebLogic's WebServer?
On Tue, 24 Apr 2001, Wang, Pin-Chieh wrote: > Hi modperl guys, > > Anybody can confirm about this performance issue? Sorry to sound rude, but why would we care? This is a Java issue, nothing to do with mod_perl. -- /||** Founder and CTO ** ** http://axkit.com/ ** //||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** mod_perl news and resources: http://take23.org ** \\// //\\ // \\
FW: Tomcat or WebLogic's WebServer?
Hi modperl guys, Anybody can confirm about this performance issue? PC -Original Message- From: Suresh Parmar [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 8:10 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat or WebLogic's WebServer? Hi, This is very interesting. The 30% degradation of performance with this set-up is a lot. What would you recommend as an ideal situation. Cheers. Suresh. - Original Message - From: Eoin Woods <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 23, 2001 5:20 PM Subject: Re: Tomcat or WebLogic's WebServer? Hi Marc-Antoine, It was actually me that found the 30% slowdown. Thanks for confirming this - that's most useful. Cheers, Eoin. -Original Message- From: CHARPENTIER Marc-Antoine [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 3:00 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat or WebLogic's WebServer? Hello Filip, my personal experience after testing both tomcat and apache in front of tomcat for a web application using servlet/jsp and java classes, is that the ajp protocol used by apache (written in C) and tomcat (written in java) for the servlet to handle the HTTP requests, is slowing down the performances, for something like 30% like you said. hope this helps. > -Message d'origine- > De: Eoin Woods [SMTP:[EMAIL PROTECTED]] > Date: dimanche 22 avril 2001 20:27 > À:[EMAIL PROTECTED] > Objet:Re: Tomcat or WebLogic's WebServer? > > Filip Hanik wrote: > > Tomcat is not a web server, it is a servlet/jsp engine. > > it does have a built in web server, not very good though. > > use apache (or netscape) httpd in front of weblogic for best performance > Hi Filip, > > I'm interested to hear you say that. I can see why you might put Apache in > front of Tomcat for reliability or security reasons. Why would you put it > there for performance reasons? > > I don't have exact figures to hand, but when we tested this recently I > think > we found that putting Apache in front of Tomcat slowed things down by > about > 30%. > > What is your experience with this? > > Cheers, > > Eoin. > -- > ~~ > ~ Eoin Woods, Platform Development Group > ~ InterTrust Technologies, Santa Clara, CA > ~ Mobile: +1-408-674-2671 ; Office: +1-408-855-0246 > ~ Email: [EMAIL PROTECTED] > > == > = > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff J2EE-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
Re: modperl/ASP and MVC design pattern
- Original Message - From: <[EMAIL PROTECTED]> To: "Francesco Pasqualini" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, April 20, 2001 8:11 PM Subject: Re: modperl/ASP and MVC design pattern > > You can (I have) accomplish this with mod_perl and HTML::Mason, Mason's > root level autohandler can play the role of the JSP model 2 > "controller servlet": dispatching logic processing to Perl objects (er, > beans) and "forwarding" to a view (with the Mason $m->call_next or > $m->comp mechanisms). I think the Apache::Dispatch stuff can also > perform this role (haven't played with it to say for certain). I'll > qualify this by saying MVC is not a end in itself, there are a lot of > modern requirements for flexible branding, client form factor appropriate > and locale specific presentations that require the view/controller part to > be a lot smarter than the traditional concepts of MVC that I've seen call > for. I've been referring to these needs in my own engineering discussions > as (yikes) MVC++ :) ... this is really interesting, can you point me to documentation about "MVC++" thanks Francesco
RE: Cookies in PerlAccessHandlers
You may have a typo in the code provided. Also, you should probably start using mod_perl methods rather than perl built-in functions. > In a PerlAccessHandler I have code similar to the following: > > sub handler > { > my $r = shift; > my ($cgi, $cookie); > > use CGI; > $cgi = new CGI; > $cookie = $cgi->cookie(-name => 'test'); > > # For debugging only > open(TEST, ">>/tmp/accesstest"); > flock(TEST,2); > print TEST "cookie = $cookie"; > close(test); > This should certainly be something like: my $log = $r->log(); $log->debug("cookie = $cookie"); which would log to the apache error log (with LogLevel set to debug in httpd.conf). Did you mean to close TEST instead of test? > # This if block is not included in the PerlHandler version > if ($cookie eq '') > { > return FORBIDDEN; > } Still need to return something here! return OK; > } > > However, nothing is written to the log file and the forbidden > screen is > displayed. The exact same code works fine if its in a regular > mod_perl module > installed using PerlHandler. Why is the code working inside a > PerlHandler > module and not in PerlAccessHandler? > PerlHandler's don't require a return value (although it's best to do so in case you want to chain several of them together). PerlAccessHandler's must return OK, FORBIDDEN or DECLINED. Hope that helps, Chris
Re: template toolkit compile test problems
Hi, Are you using Perl 5.6.x ? If not there are some known problems with the installation of certain plugins. See http://www.tt2.org/download.html for more details. IIRC, the tutorial has an example of a TT2 enabled httpd.conf, or at least the relevant bits. try perldoc Template::Tutorial. BTW - This might have been better posted to the TT mailing list. See http://www.template-toolkit.org/mailman/listinfo/templates HTH, Simon Wilcox. From Nigel Sollars <[EMAIL PROTECTED]> Date 24 April 2001 Hi, I d/l the Template Toolkit via CPAN on make test t/filter.t fails 19 of 126 tests with: make: *** [ test_dynamic ] Error 29 any idea's? also could someone send me an example of a working httpd.conf with the Template entries? Regards Nigel __ This document should only be read by those persons to whom it is addressed and is not intended to be relied upon by any person without subsequent written confirmation of its contents. Accordingly, our company disclaim all responsibility and accept no liability (including in negligence) for the consequences for any person acting, or refraining from acting, on such information prior to the receipt by those persons of subsequent written confirmation. If you have received this E-mail message in error, please notify us immediately by telephone. Please also destroy and delete the message from your computer. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this E-mail message is strictly prohibited.
Re: template toolkit compile test problems
On Tue, 24 Apr 2001, Nigel Sollars wrote: > > Hi, > > I d/l the Template Toolkit via CPAN on make test > > t/filter.t fails 19 of 126 tests with: > > make: *** [ test_dynamic ] Error 29 > > any idea's? A wrong forum. See http://www.template-toolkit.org/ and get on to tt mailing list. > also could someone send me an example of a working httpd.conf with the > Template entries? the same _ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
template toolkit compile test problems
Hi, I d/l the Template Toolkit via CPAN on make test t/filter.t fails 19 of 126 tests with: make: *** [ test_dynamic ] Error 29 any idea's? also could someone send me an example of a working httpd.conf with the Template entries? Regards Nigel
CPAN Installation of Bundle::Apache failure
Sirs, System is AIX 4.3.2,Perl 5.6.1 When I try to install Bundle::Apache using CPAN it fails as follows: Running Mkbootstrap for Apache::Request () chmod 644 Request.bs rm -f ../blib/arch/auto/Apache/Request/Request.so LD_RUN_PATH="/usr/sys/inst.images/build/libapreq-0.31/Request/../blib/a ld: 0711-317 ERROR: Undefined symbol: .ap_table_get ld: 0711-317 ERROR: Undefined symbol: .mod_perl_tie_table ld: 0711-317 ERROR: Undefined symbol: ap_null_cleanup ld: 0711-317 ERROR: Undefined symbol: .ap_register_cleanup ld: 0711-317 ERROR: Undefined symbol: .ap_getword ld: 0711-317 ERROR: Undefined symbol: .ap_unescape_url ld: 0711-317 ERROR: Undefined symbol: .ap_table_add ld: 0711-317 ERROR: Undefined symbol: .ap_pstrndup ld: 0711-317 ERROR: Undefined symbol: .ap_push_array ld: 0711-317 ERROR: Undefined symbol: .ap_setup_client_block ld: 0711-317 ERROR: Undefined symbol: .ap_should_client_block ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. make: 1254-004 The error code from the last command is 8. Stop. make: 1254-004 The error code from the last command is 2. Stop. /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Bundle summary: The following items in bundle Bundle::Apache had installation problems: Apache::DB Apache::Request Can you assist please. Thanks. Regards, Jim ___ BTcd Information Systems Engineering CORES Infrastructure Support * 0131-662 4724 * * [EMAIL PROTECTED] *pp HWP186 PO Box 234 (HOM-EH) Edinburgh Midlothian , EH12 9UR ___