Re: Getting data from external URL
Steve Reppucci [EMAIL PROTECTED] writes: Just a word of warning: LWP::Simple doesn't follow redirects (at least, the last I checked, not sure if it's been changed in the 3 or 4 months since I've last used it...), If it does not follow redirects then that is a bug. Do you have a test case? Not much has changed in the last 3 or 4 months either. Regards, Gisle
Re: Getting data from external URL
Hmmm Looking at _trivial_http_get: if ($code =~ /^30[1237]/ $buf =~ /\012Location:\s*(\S+)/) { # redirect So it certainly seems like it's *trying to handle it. As I recall (it was a late night when I had an application that wasn't working), I had single stepped down into the guts of LWP::Simple and realized that it was returning a failure indicator when encountering a 302 status. I had assumed that this was intended behavior, but now that I look at the pod of what we've currently got installed (1.32), it sure seems like it should work. I'll look into this a bit to see if I can recreate it, but for now, let's chalk it up to either (1) something that's been fixed since the version that I was using at the time, or (2) I'm just out of my head. More likely the latter... Sorry for the confusion. Steve On 29 Aug 2000, Gisle Aas wrote: Steve Reppucci [EMAIL PROTECTED] writes: Just a word of warning: LWP::Simple doesn't follow redirects (at least, the last I checked, not sure if it's been changed in the 3 or 4 months since I've last used it...), If it does not follow redirects then that is a bug. Do you have a test case? Not much has changed in the last 3 or 4 months either. Regards, Gisle =-=-=-=-=-=-=-=-=-=- My God! What have I done? -=-=-=-=-=-=-=-=-=-= Steve Reppucci [EMAIL PROTECTED] | Logical Choice Software http://logsoft.com/ | 508/958-0183 Be Open |
RE: PerlAuthenHandler invalid command
-Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 3:45 PM To: Geoffrey Young Cc: 'Frank Plunkett'; [EMAIL PROTECTED] Subject: RE: PerlAuthenHandler invalid command On Mon, 28 Aug 2000, Geoffrey Young wrote: build mod_perl with perl Makefile.PL EVERTHING=1 or PERL_AUTHEN=1 EVERYTHING=1 of course :) I don't think MakeMaker uses Soundex module yet :) maybe something to integrate into the mod_perl 2.0 build mechanism ;) HTH --Geoff -Original Message- From: Frank Plunkett [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 3:31 PM To: [EMAIL PROTECTED] Subject: PerlAuthenHandler invalid command Hi modperites, I keep receiving the following error message when starting httpd: Syntax error on line 99 of /usr/local/apache/conf/httpd.conf: Invalid command 'PerlAuthenHandler', perhaps mis-spelled or defined by a module not included in the server configuration my httpd.conf looks like this: Location /wwwhes AuthName Test AuthType Basic SetHandler perl-script PerlAuthenHandler Apache::AuthAny require valid-user /Location # I did a perl Makefile.pl everything=1 but still no luck. perl Makefile.PL Reading Makefile.PL args from ../makepl_args.mod_perl Configure mod_perl with /home/apache_1.3.12/src ? [y] Shall I build httpd in /home/apache_1.3.12/src for you? [y] Appending mod_perl to src/Configuration Using config file: /usr/local/mod_perl-1.24/src/Configuration Creating Makefile + configured for Solaris 270 platform + setting C compiler to cc + setting C pre-processor to cc -E + checking for system header files + adding selected modules o perl_module uses ConfigStart/End + mod_perl build type: OBJ + setting up mod_perl build environment + id: mod_perl/1.24 + id: Perl/v5.6.0 (solaris) [perl] + adjusting Apache build environment + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in support Creating Makefile in os/unix Creating Makefile in ap Creating Makefile in main Creating Makefile in lib/expat-lite Creating Makefile in modules/standard Creating Makefile in modules/perl EXTRA_CFLAGS: -DSOLARIS2=270 -DMOD_PERL -DUSE_EXPAT -I$(SRCDIR)/lib/expat-li te PerlDispatchHandler.enabled PerlChildInitHandlerenabled PerlChildExitHandlerenabled PerlPostReadRequestHandler..enabled PerlTransHandlerenabled PerlHeaderParserHandler.enabled PerlAccessHandler...enabled PerlAuthenHandler...enabled PerlAuthzHandlerenabled PerlTypeHandler.enabled PerlFixupHandlerenabled PerlHandler.enabled PerlLogHandler..enabled PerlInitHandler.enabled PerlCleanupHandler..enabled PerlRestartHandler..enabled PerlStackedHandlers.enabled PerlMethodHandlers..enabled PerlDirectiveHandlers...enabled PerlTableApienabled PerlLogApi..enabled PerlUriApi..enabled PerlUtilApi.enabled PerlFileApi.enabled PerlConnectionApi...enabled PerlServerApi...enabled PerlSectionsenabled PerlSSI.enabled Will run tests as User: 'nobody' Group: 'other' Checking CGI.pm VERSION..ok Checking for LWP::UserAgent..ok Checking for HTML::HeadParserok Writing Makefile for Apache Writing Makefile for Apache::Connection Writing Makefile for Apache::Constants Writing Makefile for Apache::File Writing Makefile for Apache::Leak Writing Makefile for Apache::Log Writing Makefile for Apache::ModuleConfig Writing Makefile for Apache::PerlRunXS Writing Makefile for Apache::Server Writing Makefile for Apache::Symbol Writing Makefile for Apache::Table Writing Makefile for Apache::URI Writing Makefile for Apache::Util Writing Makefile for mod_perl salcd6# make (cd /home/apache_1.3.12/src make CC="cc";) === os/unix _ 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://jazzvalley.com http://singlesheaven.com http://perlmonth.com perl.org apache.org
RE: PerlAuthenHandler invalid command
-Original Message- From: Frank Plunkett [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 3:42 PM To: [EMAIL PROTECTED] Subject: Re: PerlAuthenHandler invalid command Geoff I did build with perl Makefile.PL PERL_AUTHEN=1 That was the first thing I thought also. Frank ok, sorry I didn't read far enough :) did you 'make install'? typically, you only see the message if you haven't enabled the api or you haven't installed mod_perl... see http://perl.apache.org/guide/install.html#A_Summary_of_a_Basic_mod_perl_In and http://perl.apache.org/guide/install.html#How_can_I_tell_whether_mod_perl_ HTH --Geoff -Original Message- From: Geoffrey Young [EMAIL PROTECTED] To: 'Frank Plunkett' [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Monday, August 28, 2000 3:40 PM Subject: RE: PerlAuthenHandler invalid command build mod_perl with perl Makefile.PL EVERTHING=1 or PERL_AUTHEN=1 HTH --Geoff -Original Message- From: Frank Plunkett [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 3:31 PM To: [EMAIL PROTECTED] Subject: PerlAuthenHandler invalid command Hi modperites, I keep receiving the following error message when starting httpd: Syntax error on line 99 of /usr/local/apache/conf/httpd.conf: Invalid command 'PerlAuthenHandler', perhaps mis-spelled or defined by a module not included in the server configuration my httpd.conf looks like this: Location /wwwhes AuthName Test AuthType Basic SetHandler perl-script PerlAuthenHandler Apache::AuthAny require valid-user /Location # I did a perl Makefile.pl everything=1 but still no luck. perl Makefile.PL Reading Makefile.PL args from ../makepl_args.mod_perl Configure mod_perl with /home/apache_1.3.12/src ? [y] Shall I build httpd in /home/apache_1.3.12/src for you? [y] Appending mod_perl to src/Configuration Using config file: /usr/local/mod_perl-1.24/src/Configuration Creating Makefile + configured for Solaris 270 platform + setting C compiler to cc + setting C pre-processor to cc -E + checking for system header files + adding selected modules o perl_module uses ConfigStart/End + mod_perl build type: OBJ + setting up mod_perl build environment + id: mod_perl/1.24 + id: Perl/v5.6.0 (solaris) [perl] + adjusting Apache build environment + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in support Creating Makefile in os/unix Creating Makefile in ap Creating Makefile in main Creating Makefile in lib/expat-lite Creating Makefile in modules/standard Creating Makefile in modules/perl EXTRA_CFLAGS: -DSOLARIS2=270 -DMOD_PERL -DUSE_EXPAT -I$(SRCDIR)/lib/expat-li te PerlDispatchHandler.enabled PerlChildInitHandlerenabled PerlChildExitHandlerenabled PerlPostReadRequestHandler..enabled PerlTransHandlerenabled PerlHeaderParserHandler.enabled PerlAccessHandler...enabled PerlAuthenHandler...enabled PerlAuthzHandlerenabled PerlTypeHandler.enabled PerlFixupHandlerenabled PerlHandler.enabled PerlLogHandler..enabled PerlInitHandler.enabled PerlCleanupHandler..enabled PerlRestartHandler..enabled PerlStackedHandlers.enabled PerlMethodHandlers..enabled PerlDirectiveHandlers...enabled PerlTableApienabled PerlLogApi..enabled PerlUriApi..enabled PerlUtilApi.enabled PerlFileApi.enabled PerlConnectionApi...enabled PerlServerApi...enabled PerlSectionsenabled PerlSSI.enabled Will run tests as User: 'nobody' Group: 'other' Checking CGI.pm VERSION..ok Checking for LWP::UserAgent..ok Checking for HTML::HeadParserok Writing Makefile for Apache Writing Makefile for Apache::Connection Writing Makefile for Apache::Constants Writing Makefile for Apache::File Writing Makefile for Apache::Leak Writing Makefile for Apache::Log Writing Makefile for Apache::ModuleConfig Writing Makefile for Apache::PerlRunXS Writing Makefile for Apache::Server Writing Makefile for Apache::Symbol Writing Makefile for Apache::Table Writing Makefile for Apache::URI Writing Makefile for Apache::Util Writing Makefile for mod_perl salcd6# make (cd /home/apache_1.3.12/src make CC="cc";) === os/unix
Apache::Reload problems
Passing this along from the mason list. Original Message Subject: [OT]Apache::Reload (was Re: [Mason]More "At The Forge" articles) Date: 29 Aug 2000 10:59:35 +0400 From: [EMAIL PROTECTED] (Alexei V. Barantsev) To: [EMAIL PROTECTED] References: [EMAIL PROTECTED] Dave Rolsky [EMAIL PROTECTED] writes: On Sat, 26 Aug 2000, Jonathan Swartz wrote: 2. Automatic reload on modification and introduction of new code without restarting of servers. (You can arrange some of this for modules via StatINC but it's not as clean or automatic). Check out Matt Sergeant's new Apache::Reload module. Much more flexible. BTW, I have a problem with Apache::Reload module. I want to separate logic from Mason components, and incapsulate it in modules. To reload modules I used StatINC. Following your advice I replaced it with Apache::Reload and register some modules to be reloaded. But Apache::Reload handler forgot all my modules! More details. There exists %INCS hash for registered modules. Tracing import subroutine during Apache start shows that registration ok, all my modules are registered. But tracing handler (used as InitHandler) shows that this hash is empty. Where are my modules? -- ab ICQ: 3959207 ___ Mason maillist - [EMAIL PROTECTED] http://netizen.com.au/mailman/listinfo/mason
Re: Apache::Reload problems
On Tue, 29 Aug 2000, Barrie Slaymaker wrote: Passing this along from the mason list. Thanks, Dave already passed it on. I've fixed the bug - new release today. Original Message Subject: [OT]Apache::Reload (was Re: [Mason]More "At The Forge" articles) Date: 29 Aug 2000 10:59:35 +0400 From: [EMAIL PROTECTED] (Alexei V. Barantsev) To: [EMAIL PROTECTED] References: [EMAIL PROTECTED] Dave Rolsky [EMAIL PROTECTED] writes: On Sat, 26 Aug 2000, Jonathan Swartz wrote: 2. Automatic reload on modification and introduction of new code without restarting of servers. (You can arrange some of this for modules via StatINC but it's not as clean or automatic). Check out Matt Sergeant's new Apache::Reload module. Much more flexible. BTW, I have a problem with Apache::Reload module. I want to separate logic from Mason components, and incapsulate it in modules. To reload modules I used StatINC. Following your advice I replaced it with Apache::Reload and register some modules to be reloaded. But Apache::Reload handler forgot all my modules! More details. There exists %INCS hash for registered modules. Tracing import subroutine during Apache start shows that registration ok, all my modules are registered. But tracing handler (used as InitHandler) shows that this hash is empty. Where are my modules? -- Matt/ Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email for training and consultancy availability. http://sergeant.org | AxKit: http://axkit.org
[ANNOUNCE] Apache::Reload 0.03
Apache::Reload is a drop-in replacement for Apache::StatINC that does so much more... It provides two more options beyond StatINC. The first is a way that you can register modules to be reloaded. To do this, simply add: use Apache::Reload; to your module and it will automatically be detected by Apache::Reload as one that needs to be checked for changes and reloaded on each request. In this mode of operation, Apache::Reload only checks the change time of registered modules, thus reducing the overhead of stat calls on every module in %INC. The new option with 0.03 is the ability to have a TouchFile. This is a file somewhere on your filesystem that Apache::Reload stat()s on each request to see if it has changed. If not it doesn't bother to check any of your modules for changes. If it has been changed it will do the checks on all of your registered modules (or all of %INC in the case where you're using it as a replacement for StatINC). 0.03 also fixed a bug someone reported where lexical hash contents weren't copied to the Apache children. Switching to a package hash solved this. On its way to CPAN now. Have fun. -- Matt/ Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email for training and consultancy availability. http://sergeant.org | AxKit: http://axkit.org
multilanguage site
can someone suggest me the best way to build a multilanguage web site (english, french, ..). I'm using Apache + mod_perl + Apache::asp (for applications) Can be usefull XML/XSL whit AxKit ? Is there any example/guideline ? Thanks Francesco Pasqualini
Re: multilanguage site
On Tue, 29 Aug 2000, Francesco Pasqualini wrote: can someone suggest me the best way to build a multilanguage web site (english, french, ..). I'm using Apache + mod_perl + Apache::asp (for applications) Can be usefull XML/XSL whit AxKit ? Is there any example/guideline ? This month's Web Techniques is all about this (albeit in a framework independant manner). I suggest you try as hard as you can to get a copy as it covers way more than I could possibly type here. Also look up content negotiation in the Apache docs. -- Matt/ Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email for training and consultancy availability. http://sergeant.org | AxKit: http://axkit.org
Re: CGI.pm problem
There isn't a Vars() function in CGI.pm. If you're looking for the query string try param(). Or if you want to make it a mod_perl program (which is what you would normally discuss on this list) Apache::Request::param(). --Jeff At 04:11 PM 8/29/00 +0400, Alexei V. Barantsev wrote: Dear mod_perl'ers! I have found strange difference between object and func modes of CGI library. More precisely - I have a problem with Vars function. Let me show an example: #!/usr/bin/perl -w use Data::Dumper; use CGI; my $q = new CGI; my $args = $q-Vars; #use CGI qw(:standard :cgi-lib); #my $args = Vars; print header, start_html, p( Dumper( $args ) ), start_form( -method = "POST", -action = "/~barancev/cgi-perl/test.pl" ), textfield( -name = "name", -size = 50 ), submit( -name = "submit", -value = "Submit" ), submit( -name = "cancel", -value = "Cancel" ), end_form, end_html; All works ok, when I click button I see what button was pressed and what string was entered. But if I try functional way instead (commented in example) I see that $args is empty! In single-process mode (httpd -X) both examples work right. Why? (BTW, both examples was tried on clean, just started Apache) -- ab ICQ: 3959207 Jeff Beard __ Web:www.cyberxape.com Email: jeff at cyberxape dot com Location: Boulder, Colorado, USA
RE: multilanguage site
Try this: http://webtechniques.com/archives/2000/09/yunker/ and perhaps this: http://webtechniques.com/archives/2000/09/lagon/ -Original Message- From: Matt Sergeant [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 29, 2000 9:16 AM To: Francesco Pasqualini Cc: [EMAIL PROTECTED] Subject: Re: multilanguage site On Tue, 29 Aug 2000, Francesco Pasqualini wrote: can someone suggest me the best way to build a multilanguage web site (english, french, ..). I'm using Apache + mod_perl + Apache::asp (for applications) Can be usefull XML/XSL whit AxKit ? Is there any example/guideline ? This month's Web Techniques is all about this (albeit in a framework independant manner). I suggest you try as hard as you can to get a copy as it covers way more than I could possibly type here. Also look up content negotiation in the Apache docs. -- Matt/ Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email for training and consultancy availability. http://sergeant.org | AxKit: http://axkit.org
Re: multilanguage site
On Tue, 29 Aug 2000, Matt Sergeant wrote: On Tue, 29 Aug 2000, Francesco Pasqualini wrote: can someone suggest me the best way to build a multilanguage web site (english, french, ..). I'm using Apache + mod_perl + Apache::asp (for applications) Can be usefull XML/XSL whit AxKit ? Is there any example/guideline ? This month's Web Techniques is all about this (albeit in a framework independant manner). I suggest you try as hard as you can to get a copy as it covers way more than I could possibly type here. You can get as many copies as want :) it's online: http://www.webtechniques.com/ Also look up content negotiation in the Apache docs. -- Matt/ Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email for training and consultancy availability. http://sergeant.org | AxKit: http://axkit.org _ 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://jazzvalley.com http://singlesheaven.com http://perlmonth.com perl.org apache.org
Re: multilanguage site
"Francesco Pasqualini" [EMAIL PROTECTED] writes: can someone suggest me the best way to build a multilanguage web site (english, french, ..). I'm using Apache + mod_perl + Apache::asp (for applications) Can be usefull XML/XSL whit AxKit ? Is there any example/guideline ? I'm interested in this too :-) The Deep Purple site just went vaguely multilingual, but I'm doing this with straight Apache MultiViews (which _are_ honoured by SSI, which is nice) and I can see this becoming a huge headache. I'd like to do it with the Template Toolkit if at all possible. Dave -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Apache, mod_perl, MySQL, Sybase hired gun for, well, hire -
Re: multilanguage site
On Tue, 29 Aug 2000, Stas Bekman wrote: On Tue, 29 Aug 2000, Matt Sergeant wrote: On Tue, 29 Aug 2000, Francesco Pasqualini wrote: can someone suggest me the best way to build a multilanguage web site (english, french, ..). I'm using Apache + mod_perl + Apache::asp (for applications) Can be usefull XML/XSL whit AxKit ? Is there any example/guideline ? This month's Web Techniques is all about this (albeit in a framework independant manner). I suggest you try as hard as you can to get a copy as it covers way more than I could possibly type here. You can get as many copies as want :) it's online: http://www.webtechniques.com/ Ah - I thought they had a lead time before it went online - guess not! They also didn't used to include all articles online, but I guess that has changed. Maybe I won't buy a subscription again (especially since its free to US readers!)... -- Matt/ Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email for training and consultancy availability. http://sergeant.org | AxKit: http://axkit.org
Installing mod_perl
Hi all, I'm a newcomer to this mailing list. I have installed mod_perl (rel. 1.24) on my machine (Linux, kernel rel. 2.2.13). Apache is already configured and running (rel. 1.3.9). But the plug-in (i.e. mod_perl) is not running: I mean, running httpd the machine gives the following error message: "Syntax error on line 207 of (path follows) Invalid command LoadModule, perhaps mis-spelled or defined by a module not included in the server configuration". Watching line 207 into the file httpd.conf, there the list of modules to load begins with the instruction "LoadModule etc.". Can anybody help me to solve this problem? Thanks Marco --- Marco Marchi - Resp ISO 9000 ICT Audio Lab Srl - Gruppo Sistemi Integrati Modena - V. D'Avia Sud, 198/1 - 41010 Tel. +39-059-343424 - Fax +39-059-344955 Bologna - V. della Barca, 26 - 40133 Tel. +39-051-6198620 Fax +39-051-6193400 ---
Re: HTML Template Comparison Sheet ETA
Nelson Correa de Toledo Ferraz wrote: Hi Drew, I'm the one who volunteered, and then I went on vacation for a 2 weeks. I have decided I will have a bare minimum draft done within a week. And then, as Matt suggested, people can just send suggestions/corrections/additions and the document will grow. When I have a draft, I'll post it to the list. I'm new to this list, and I'd like to make a small contribution to the HTML Template Comparison Sheet. I've been using Text::Template for some time now, and I really enjoy using it because 1) it's fast, 2) it's small, just 28kb and 3) it uses Perl as scripting language. snip Thanks for the intro to Text::Template Nelson. I'll make sure it gets included in the comparison. There is such a WIDE variety of modules available that it would be almost impossible for me to try them all. But I might give it a try anyway. ;-) -- Drew Taylor Vialogix Communications, Inc. 501 N. College Street Charlotte, NC 28202 704 370 0550 http://www.vialogix.com/
Apache::Status Memory Usage metrics
This is my first time posting to this list, so forgive me if this question has been asked before (I did not see it in the archives or in the mod_perl guide). Apache::Status seems like a nice module, but I don't understand what the Memory usage section is telling me. For a given package, I have a function foo() that has a line like this. foo 48293 bytes | 1172 OPs Here's my questions... 1) 48293 bytes is what? Is that code?, stack?, data? or a combination of some of the three? 2) 1172 OPs - what's an OPs? Is it good to have more or less? How does that affect memory usage? 3) Without changing the code, I can reload the memory usage page and the same function foo() will generally have the same number of bytes, but not always. The OPs always seem to remain the same number however. The bytes can vary but they don't seem to grow a great deal. Is this varying number a memory leak in the function? If not, what causes the number to vary from one invocation to the next? More questions later... The documentation seemed to be silent in regards to answering these questions. Any insights would be much appreciated.
Re: Installing mod_perl
It appears your Apache wasn't compiled with support for loading modules. You either need to recompile apache with mod_perl statically linked in, or recompile apache with dso support. -- Regards, Justin Wheeler [EMAIL PROTECTED] On Tue, 29 Aug 2000, Marco Marchi wrote: Hi all, I'm a newcomer to this mailing list. I have installed mod_perl (rel. 1.24) on my machine (Linux, kernel rel. 2.2.13). Apache is already configured and running (rel. 1.3.9). But the plug-in (i.e. mod_perl) is not running: I mean, running httpd the machine gives the following error message: "Syntax error on line 207 of (path follows) Invalid command LoadModule, perhaps mis-spelled or defined by a module not included in the server configuration". Watching line 207 into the file httpd.conf, there the list of modules to load begins with the instruction "LoadModule etc.". Can anybody help me to solve this problem? Thanks Marco --- Marco Marchi - Resp ISO 9000 ICT Audio Lab Srl - Gruppo Sistemi Integrati Modena - V. D'Avia Sud, 198/1 - 41010 Tel. +39-059-343424 - Fax +39-059-344955 Bologna - V. della Barca, 26 - 40133 Tel. +39-051-6198620 Fax +39-051-6193400 ---
[OT]starting a long running script
hi, i need to start a long-running script from either mod_perl or mod_cgi, and I'm facing all the well-known issues: the apache child waits, until it waits no longer (maybe because the browser itself chose to close the TCP connection, maybe because of an internal timeout), and then the script gets killed. there is no useful information to echo back to the user, besides teloing him the script started ok. the problem is: while I'm familiar with the problems, but not with the solutions. I've read that one possible solution is to use fork(), but I have no experience with it, and not much understanding of its implications, and after reading perlfunc I'm more confused than before. is there anyone kind enough to tell me where to start Reading TFM or which particular FM contains useful leads? thanks! martin
Re: Apache::Status Memory Usage metrics
On Tue, 29 Aug 2000, Lyle D. Brooks wrote: This is my first time posting to this list, so forgive me if this question has been asked before (I did not see it in the archives or in the mod_perl guide). Apache::Status seems like a nice module, but I don't understand what the Memory usage section is telling me. For a given package, I have a function foo() that has a line like this. foo 48293 bytes | 1172 OPs Here's my questions... 1) 48293 bytes is what? Is that code?, stack?, data? or a combination of some of the three? Code and data combined, AFAIK. Its data from some B::Terse or B::TerseSize module. See the documentation in that for more details. 2) 1172 OPs - what's an OPs? Is it good to have more or less? How does that affect memory usage? Perl code is based on OP codes, much like Java Bytecode. It is good to have less, as it means (sometimes) faster execution and less memory usage. -- Matt/ Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email for training and consultancy availability. http://sergeant.org | AxKit: http://axkit.org
Re: [OT]starting a long running script
On Tue, 29 Aug 2000, martin langhoff wrote: hi, i need to start a long-running script from either mod_perl or mod_cgi, and I'm facing all the well-known issues: the apache child waits, until it waits no longer (maybe because the browser itself chose to close the TCP connection, maybe because of an internal timeout), and then the script gets killed. there is no useful information to echo back to the user, besides teloing him the script started ok. the problem is: while I'm familiar with the problems, but not with the solutions. I've read that one possible solution is to use fork(), but I have no experience with it, and not much understanding of its implications, and after reading perlfunc I'm more confused than before. is there anyone kind enough to tell me where to start Reading TFM or which particular FM contains useful leads? Very good FM :) http://perl.apache.org/guide/performance.html#Forking_and_Executing_Subprocess thanks! martin _ 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://jazzvalley.com http://singlesheaven.com http://perlmonth.com perl.org apache.org
Re: [OT]starting a long running script
The easiest way to do this (IMHO) is to use the register_cleanup method in mod_perl. This gets executed at the very end of the request cycle after the TCP connection gets closed. See page 367 of the Eagle book for details... Basically you want to do this: $r = Apache-request; $r-register_cleanup( sub { system("/path/to/your/script.pl"); } ); -T.J. Mather On Tue, 29 Aug 2000, martin langhoff wrote: i need to start a long-running script from either mod_perl or mod_cgi, and I'm facing all the well-known issues: the apache child waits, until it waits no longer (maybe because the browser itself chose to close the TCP connection, maybe because of an internal timeout), and then the script gets killed. there is no useful information to echo back to the user, besides teloing him the script started ok. the problem is: while I'm familiar with the problems, but not with the solutions. I've read that one possible solution is to use fork(), but I have no experience with it, and not much understanding of its implications, and after reading perlfunc I'm more confused than before.
[ANNOUNCE] Apache-Dispatch-0.06
The URL http://morpheus.laserlink.net/~gyoung/modules/Apache-Dispatch-0.06.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GE/GEOFF/Apache-Dispatch-0.06.tar.gz size: 7452 bytes md5: 1546415d4d9aa380567b961d395827d6 DESCRIPTION Apache::Dispatch translates $r-uri into a class and method and runs it as a PerlHandler. Basically, this allows you to call PerlHandlers as you would CGI scripts without having to load your httpd.conf with a slurry of Location tags. EXAMPLE in httpd.conf PerlModule Apache::Dispatch PerlModule Bar Location /Foo SetHandler perl-script PerlHandler Apache::Dispatch DispatchPrefix Bar /Location in browser: http://localhost/Foo/baz the results are the same as if your httpd.conf looked like: Location /Foo SetHandler perl-script PerlHandler Bar::dispatch_baz /Location but with the additional security of protecting the class name from the browser and keeping the method name from being called directly. Because any class under the Bar:: hierarchy can be called, one Location directive is be able to handle all the methods of Bar, Bar::Baz, etc... Changes: 0.06 8.29.2000 - changed call to error_dispatch to pass $r and $@ - documented the arguments passed to the extras - log the error if the handler dies and there is no error_dispatch() routine defined
Re: [OT]starting a long running script
On Tue, 29 Aug 2000, T.J. Mather wrote: The easiest way to do this (IMHO) is to use the register_cleanup method in mod_perl. This gets executed at the very end of the request cycle after the TCP connection gets closed. See page 367 of the Eagle book for details... Basically you want to do this: $r = Apache-request; $r-register_cleanup( sub { system("/path/to/your/script.pl"); } ); I'm not sure that this is a good suggestion. While it will let the connection off before starting the process, it'll keep the mod_perl process busy!!! which is something you really don't want to happen. See the URL from my previous post that does the work cleanly and fast. Of course you might want to deploy on of the described techniques in the register_cleanup() mode... -T.J. Mather On Tue, 29 Aug 2000, martin langhoff wrote: i need to start a long-running script from either mod_perl or mod_cgi, and I'm facing all the well-known issues: the apache child waits, until it waits no longer (maybe because the browser itself chose to close the TCP connection, maybe because of an internal timeout), and then the script gets killed. there is no useful information to echo back to the user, besides teloing him the script started ok. the problem is: while I'm familiar with the problems, but not with the solutions. I've read that one possible solution is to use fork(), but I have no experience with it, and not much understanding of its implications, and after reading perlfunc I'm more confused than before. _ 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://jazzvalley.com http://singlesheaven.com http://perlmonth.com perl.org apache.org
DeIistalling mod_perl, sorry :-)
Hi there! I tried to deinstall mod_perl but could'nt find out how to. There's no make deinstall option. When i builded a new apache, even after cleaning everything in the apache install dir mod_perl was still compiled into apache. ???!!! THX!!! Chris
Re: DeIistalling mod_perl, sorry :-)
On Tue, 29 Aug 2000, Christian Holz wrote: Hi there! I tried to deinstall mod_perl but could'nt find out how to. There's no make deinstall option. When i builded a new apache, even after cleaning everything in the apache install dir mod_perl was still compiled into apache. ???!!! cd apache-x.x.x make clean ./configure ... make install 'make clean' is crucial! and don't give up, come back soon :) _ 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://jazzvalley.com http://singlesheaven.com http://perlmonth.com perl.org apache.org
semi/pseudo mod_perl question
Not strickly mod_perl so I've put on my flame retardent suit. I've seen several references to Apache::ASP (and mod_perl) but haven't been able to figure out quite what it does/provides. The Apache::ASP pages says something to the effect 'Active Server Pages using perl'. My question is can I dump an IIS website (and edit paths etc.) onto an Apache server site running Apache::ASP and expect resonable results? I.e. it will run? BACKGROUND: We're providing support for a non-profit organization that was originally designed and supported by a group of students at a local university. Things didn't go quite right and the non-profit had to move to a new location and find commercial support. We're doing the support (at a _VERY_ reduced rate) but picking up all the pieces from a NT Server and a cute concept they (the students) called OOHTML is interesting to say the least. My experience with IIS and NT is minimal so I'm looking for a quick solution until I can move them into the Real World (UNIX and Apache). So if Apache::ASP isn't what I need can anyone point me towards an ASP translator or emulator? TIA, Rod -- Roderick A. Anderson [EMAIL PROTECTED] Altoplanos Information Systems, Inc. Voice: 208.765.6149212 S. 11th Street, Suite 5 FAX: 208.664.5299 Coeur d'Alene, ID 83814
Re: mod_perl as DSO
I guess people sometimes confuse my email address with [EMAIL PROTECTED] Bouncing it to the right direction. yOn Tue, 29 Aug 2000, Kairam, Raj wrote: I am trying to build mod_perl-1.24 in to apache_1.3.12 as a DSO on a HP-UX 11.0 (32 bit) machine which has HP's ansi C compiler. The command 'perl Makefile.PL `cat ../mod_perl.txt` ' runs OK.. The mod_perl.txt is a file where I specified USE_DSO=1, EVERYTHING=1 etc and APACI_ARGS=--enable-shared=env, etc. This is the input for 'perl Makefile.PL' command mod_perl.txt The command 'make' fails with an error "ld: Unrecognized argument: -Wl,-E". I am assuming these are from the PERL_LIBS= line in the Makefile that is causing the failure. This is the /opt/apache_1.3.12/src/modules/perl/Makefile Makefile.txt This is the output from 'make' command make_1.txt When I edit the /opt/apache_1.3.12/src/modules/perl/Makefile to remove "-Wl,-E -Wl,-B,deferred" from the PERL_LIBS= line I get the error "ld: Can't find library for -lperl". When I edit the line to have "-L/opt/perl5/lib/5.00503/PA-RISC1.1/CORE/libperl.a in place of -lperl and run make I get error "ld: DP relative code in file /opt/perl5/lib/5.00503/PA-RISC1.1/auto/DynaLoader/DynaLoader.a (DynaLoader.o) - shared library must be position independent. Use +z or +Z to recompile. When I try editing the line to remove /opt/perl5/lib/5.00503/PA-RISC1.1/auto/DynaLoader/DynaLoader.a make now gives me the error "Make: Don't know how to make lib/Apache/Myconfig.pm. Stop". Please take a look at the Makefile.txt above and in particular the line for PERL_LIBS= and also the file Make_1.txt which has the 'ld' command at the end with all those problem options. Where can I get help for mod_perl installation into Apache as a DSO specifically on HP-UX 11.0 platform ?. I can't believe nobody uses that platform for mod_perl. Please help. Thanks Raj Kairam [EMAIL PROTECTED] _ 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://jazzvalley.com http://singlesheaven.com http://perlmonth.com perl.org apache.org
Dissappearing Lexicals
Hi All, I've encounted a strange problem with our mod_perl installation. I have a library for handling DBI stuff, and store the $dbh in a package-level lexical. The $dbh is not populated until the first time a DBI call is made - which is during a request and therefore always after Apache forks. The $dbh is then used by various functions exported into other modules. However, in some of these functions, $dbh seems to be out of scope! In other words, In some functions, the $dbh works fine, while in others, it says "cannot call method 'selectcol_arrayref' on an undefined value." Sure enough, it thinks that $dbh is undefined, even though it will show up defined in other functions called just prior to or after the function that attempts to call selectcol_arrayref. I have not my'd it within the scope of the function - it is only declared at the package-level. Now, I've managed to solve the problem by simply making $dbh a package variable (use vars '$dbh';). However, the package-level lexical *was* working on Friday, but would not as of yesterday! Anyone got any ideas what the heck is happening to the value stored in $dbh? I can provide more details about the construction of my DBI library if you think that will help diagnose the problem. Details: All DBI calls are made in one request, so there's no chance of some calls being in different forks where $dbh may not yet have been defined. Also, the DBI library I've written works fine when run from the shell - it's only in mod_perl that it fails. The setup: Solaris 2.4 running Apache 1.3.12 mod_perl 1.24. DBI is version 1.14 and DBD::Oracle version 1.06. TIA! David
Can't Locate Apache::File
Hi All, I've just installed the latest version of Lincoln Stein's Apache::MP3 (nice job, Doc!), which offers support for caching MP3 ICY info. It uses Apache::File to do so. This the first time I've used Apache::File on this server, but was still surprised to find that it failed to load: [Wed Aug 23 10:14:53 2000] [error] Can't locate loadable object for module Apache::File in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 . /usr/local/apache/ /usr/local/apache/lib/perl) at /usr/lib/perl5/site_perl/5.005/i386-linux/mod_perl.pm line 65535 As near as I can tell, it is in fact there, and when I do % perl -le 'use Apache::File;' It seems to load just fine. The module lives in /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/File.pm Anyone got any idea why it can't find it? I'm running Apache 1.3.12 with mod_perl 1.24 compiled in on RedHat Linux 6.2. TIA! David
RE: Can't Locate Apache::File
did you build mod_perl with EVERYTHING=1 or PERL_FILE_API=1? HTH --Geoff -Original Message- From: David E. Wheeler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 29, 2000 1:56 PM To: [EMAIL PROTECTED] Subject: Can't Locate Apache::File Hi All, I've just installed the latest version of Lincoln Stein's Apache::MP3 (nice job, Doc!), which offers support for caching MP3 ICY info. It uses Apache::File to do so. This the first time I've used Apache::File on this server, but was still surprised to find that it failed to load: [Wed Aug 23 10:14:53 2000] [error] Can't locate loadable object for module Apache::File in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .. /usr/local/apache/ /usr/local/apache/lib/perl) at /usr/lib/perl5/site_perl/5.005/i386-linux/mod_perl.pm line 65535 As near as I can tell, it is in fact there, and when I do % perl -le 'use Apache::File;' It seems to load just fine. The module lives in /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/File.pm Anyone got any idea why it can't find it? I'm running Apache 1.3.12 with mod_perl 1.24 compiled in on RedHat Linux 6.2. TIA! David
Re: PerlAuthenHandler invalid command
I figured it out. It was the dreaded permissions on the include directory. thanks for the advise all. Frank -Original Message- From: Frank Plunkett [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 3:42 PM To: [EMAIL PROTECTED] Subject: Re: PerlAuthenHandler invalid command Geoff I did build with perl Makefile.PL PERL_AUTHEN=1 That was the first thing I thought also. Frank ok, sorry I didn't read far enough :) did you 'make install'? typically, you only see the message if you haven't enabled the api or you haven't installed mod_perl... see http://perl.apache.org/guide/install.html#A_Summary_of_a_Basic_mod_perl_In and http://perl.apache.org/guide/install.html#How_can_I_tell_whether_mod_perl_ HTH --Geoff -Original Message- From: Geoffrey Young [EMAIL PROTECTED] To: 'Frank Plunkett' [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Monday, August 28, 2000 3:40 PM Subject: RE: PerlAuthenHandler invalid command build mod_perl with perl Makefile.PL EVERTHING=1 or PERL_AUTHEN=1 HTH --Geoff -Original Message- From: Frank Plunkett [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 3:31 PM To: [EMAIL PROTECTED] Subject: PerlAuthenHandler invalid command Hi modperites, I keep receiving the following error message when starting httpd: Syntax error on line 99 of /usr/local/apache/conf/httpd.conf: Invalid command 'PerlAuthenHandler', perhaps mis-spelled or defined by a module not included in the server configuration my httpd.conf looks like this: Location /wwwhes AuthName Test AuthType Basic SetHandler perl-script PerlAuthenHandler Apache::AuthAny require valid-user /Location # I did a perl Makefile.pl everything=1 but still no luck. perl Makefile.PL Reading Makefile.PL args from ../makepl_args.mod_perl Configure mod_perl with /home/apache_1.3.12/src ? [y] Shall I build httpd in /home/apache_1.3.12/src for you? [y] Appending mod_perl to src/Configuration Using config file: /usr/local/mod_perl-1.24/src/Configuration Creating Makefile + configured for Solaris 270 platform + setting C compiler to cc + setting C pre-processor to cc -E + checking for system header files + adding selected modules o perl_module uses ConfigStart/End + mod_perl build type: OBJ + setting up mod_perl build environment + id: mod_perl/1.24 + id: Perl/v5.6.0 (solaris) [perl] + adjusting Apache build environment + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in support Creating Makefile in os/unix Creating Makefile in ap Creating Makefile in main Creating Makefile in lib/expat-lite Creating Makefile in modules/standard Creating Makefile in modules/perl EXTRA_CFLAGS: -DSOLARIS2=270 -DMOD_PERL -DUSE_EXPAT -I$(SRCDIR)/lib/expat-li te PerlDispatchHandler.enabled PerlChildInitHandlerenabled PerlChildExitHandlerenabled PerlPostReadRequestHandler..enabled PerlTransHandlerenabled PerlHeaderParserHandler.enabled PerlAccessHandler...enabled PerlAuthenHandler...enabled PerlAuthzHandlerenabled PerlTypeHandler.enabled PerlFixupHandlerenabled PerlHandler.enabled PerlLogHandler..enabled PerlInitHandler.enabled PerlCleanupHandler..enabled PerlRestartHandler..enabled PerlStackedHandlers.enabled PerlMethodHandlers..enabled PerlDirectiveHandlers...enabled PerlTableApienabled PerlLogApi..enabled PerlUriApi..enabled PerlUtilApi.enabled PerlFileApi.enabled PerlConnectionApi...enabled PerlServerApi...enabled PerlSectionsenabled PerlSSI.enabled Will run tests as User: 'nobody' Group: 'other' Checking CGI.pm VERSION..ok Checking for LWP::UserAgent..ok Checking for HTML::HeadParserok Writing Makefile for Apache Writing Makefile for Apache::Connection Writing Makefile for Apache::Constants Writing Makefile for Apache::File Writing Makefile for Apache::Leak Writing Makefile for Apache::Log Writing Makefile for Apache::ModuleConfig Writing Makefile for Apache::PerlRunXS Writing Makefile for Apache::Server Writing Makefile for Apache::Symbol Writing Makefile for Apache::Table Writing Makefile for Apache::URI Writing Makefile for Apache::Util Writing Makefile for mod_perl salcd6# make (cd /home/apache_1.3.12/src make CC="cc";) === os/unix
Fw: PerlAuthenHandler invalid command
I figured it out. It was permission problems on the include directory. thanks for the advise all. Frank -Original Message- From: Geoffrey Young [EMAIL PROTECTED] To: 'Frank Plunkett' [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Tuesday, August 29, 2000 7:38 AM Subject: RE: PerlAuthenHandler invalid command -Original Message- From: Frank Plunkett [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 3:42 PM To: [EMAIL PROTECTED] Subject: Re: PerlAuthenHandler invalid command Geoff I did build with perl Makefile.PL PERL_AUTHEN=1 That was the first thing I thought also. Frank ok, sorry I didn't read far enough :) did you 'make install'? typically, you only see the message if you haven't enabled the api or you haven't installed mod_perl... see http://perl.apache.org/guide/install.html#A_Summary_of_a_Basic_mod_perl_In and http://perl.apache.org/guide/install.html#How_can_I_tell_whether_mod_perl_ HTH --Geoff -Original Message- From: Geoffrey Young [EMAIL PROTECTED] To: 'Frank Plunkett' [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Monday, August 28, 2000 3:40 PM Subject: RE: PerlAuthenHandler invalid command build mod_perl with perl Makefile.PL EVERTHING=1 or PERL_AUTHEN=1 HTH --Geoff -Original Message- From: Frank Plunkett [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 3:31 PM To: [EMAIL PROTECTED] Subject: PerlAuthenHandler invalid command Hi modperites, I keep receiving the following error message when starting httpd: Syntax error on line 99 of /usr/local/apache/conf/httpd.conf: Invalid command 'PerlAuthenHandler', perhaps mis-spelled or defined by a module not included in the server configuration my httpd.conf looks like this: Location /wwwhes AuthName Test AuthType Basic SetHandler perl-script PerlAuthenHandler Apache::AuthAny require valid-user /Location # I did a perl Makefile.pl everything=1 but still no luck. perl Makefile.PL Reading Makefile.PL args from ../makepl_args.mod_perl Configure mod_perl with /home/apache_1.3.12/src ? [y] Shall I build httpd in /home/apache_1.3.12/src for you? [y] Appending mod_perl to src/Configuration Using config file: /usr/local/mod_perl-1.24/src/Configuration Creating Makefile + configured for Solaris 270 platform + setting C compiler to cc + setting C pre-processor to cc -E + checking for system header files + adding selected modules o perl_module uses ConfigStart/End + mod_perl build type: OBJ + setting up mod_perl build environment + id: mod_perl/1.24 + id: Perl/v5.6.0 (solaris) [perl] + adjusting Apache build environment + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in support Creating Makefile in os/unix Creating Makefile in ap Creating Makefile in main Creating Makefile in lib/expat-lite Creating Makefile in modules/standard Creating Makefile in modules/perl EXTRA_CFLAGS: -DSOLARIS2=270 -DMOD_PERL -DUSE_EXPAT -I$(SRCDIR)/lib/expat-li te PerlDispatchHandler.enabled PerlChildInitHandlerenabled PerlChildExitHandlerenabled PerlPostReadRequestHandler..enabled PerlTransHandlerenabled PerlHeaderParserHandler.enabled PerlAccessHandler...enabled PerlAuthenHandler...enabled PerlAuthzHandlerenabled PerlTypeHandler.enabled PerlFixupHandlerenabled PerlHandler.enabled PerlLogHandler..enabled PerlInitHandler.enabled PerlCleanupHandler..enabled PerlRestartHandler..enabled PerlStackedHandlers.enabled PerlMethodHandlers..enabled PerlDirectiveHandlers...enabled PerlTableApienabled PerlLogApi..enabled PerlUriApi..enabled PerlUtilApi.enabled PerlFileApi.enabled PerlConnectionApi...enabled PerlServerApi...enabled PerlSectionsenabled PerlSSI.enabled Will run tests as User: 'nobody' Group: 'other' Checking CGI.pm VERSION..ok Checking for LWP::UserAgent..ok Checking for HTML::HeadParserok Writing Makefile for Apache Writing Makefile for Apache::Connection Writing Makefile for Apache::Constants Writing Makefile for Apache::File Writing Makefile for Apache::Leak Writing Makefile for Apache::Log Writing Makefile for Apache::ModuleConfig Writing Makefile for Apache::PerlRunXS Writing Makefile for Apache::Server Writing Makefile for Apache::Symbol Writing Makefile for Apache::Table Writing Makefile for Apache::URI Writing Makefile for Apache::Util Writing Makefile for mod_perl salcd6# make
Fw: PerlAuthenHandler invalid command
I figured it out. It was permission problems on the include directory. thanks for the advise all. Frank Re: PerlAuthenHandler invalid command Geoff I did build with perl Makefile.PL PERL_AUTHEN=1 That was the first thing I thought also. Frank ok, sorry I didn't read far enough :) did you 'make install'? typically, you only see the message if you haven't enabled the api or you haven't installed mod_perl... see http://perl.apache.org/guide/install.html#A_Summary_of_a_Basic_mod_perl_In and http://perl.apache.org/guide/install.html#How_can_I_tell_whether_mod_perl_ HTH --Geoff -Original Message- From: Geoffrey Young [EMAIL PROTECTED] To: 'Frank Plunkett' [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Monday, August 28, 2000 3:40 PM Subject: RE: PerlAuthenHandler invalid command build mod_perl with perl Makefile.PL EVERTHING=1 or PERL_AUTHEN=1 HTH --Geoff -Original Message- From: Frank Plunkett [mailto:[EMAIL PROTECTED]] Sent: Monday, August 28, 2000 3:31 PM To: [EMAIL PROTECTED] Subject: PerlAuthenHandler invalid command Hi modperites, I keep receiving the following error message when starting httpd: Syntax error on line 99 of /usr/local/apache/conf/httpd.conf: Invalid command 'PerlAuthenHandler', perhaps mis-spelled or defined by a module not included in the server configuration my httpd.conf looks like this: Location /wwwhes AuthName Test AuthType Basic SetHandler perl-script PerlAuthenHandler Apache::AuthAny require valid-user /Location # I did a perl Makefile.pl everything=1 but still no luck. perl Makefile.PL Reading Makefile.PL args from ../makepl_args.mod_perl Configure mod_perl with /home/apache_1.3.12/src ? [y] Shall I build httpd in /home/apache_1.3.12/src for you? [y] Appending mod_perl to src/Configuration Using config file: /usr/local/mod_perl-1.24/src/Configuration Creating Makefile + configured for Solaris 270 platform + setting C compiler to cc + setting C pre-processor to cc -E + checking for system header files + adding selected modules o perl_module uses ConfigStart/End + mod_perl build type: OBJ + setting up mod_perl build environment + id: mod_perl/1.24 + id: Perl/v5.6.0 (solaris) [perl] + adjusting Apache build environment + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in support Creating Makefile in os/unix Creating Makefile in ap Creating Makefile in main Creating Makefile in lib/expat-lite Creating Makefile in modules/standard Creating Makefile in modules/perl EXTRA_CFLAGS: -DSOLARIS2=270 -DMOD_PERL -DUSE_EXPAT -I$(SRCDIR)/lib/expat-li te PerlDispatchHandler.enabled PerlChildInitHandlerenabled PerlChildExitHandlerenabled PerlPostReadRequestHandler..enabled PerlTransHandlerenabled PerlHeaderParserHandler.enabled PerlAccessHandler...enabled PerlAuthenHandler...enabled PerlAuthzHandlerenabled PerlTypeHandler.enabled PerlFixupHandlerenabled PerlHandler.enabled PerlLogHandler..enabled PerlInitHandler.enabled PerlCleanupHandler..enabled PerlRestartHandler..enabled PerlStackedHandlers.enabled PerlMethodHandlers..enabled PerlDirectiveHandlers...enabled PerlTableApienabled PerlLogApi..enabled PerlUriApi..enabled PerlUtilApi.enabled PerlFileApi.enabled PerlConnectionApi...enabled PerlServerApi...enabled PerlSectionsenabled PerlSSI.enabled Will run tests as User: 'nobody' Group: 'other' Checking CGI.pm VERSION..ok Checking for LWP::UserAgent..ok Checking for HTML::HeadParserok Writing Makefile for Apache Writing Makefile for Apache::Connection Writing Makefile for Apache::Constants Writing Makefile for Apache::File Writing Makefile for Apache::Leak Writing Makefile for Apache::Log Writing Makefile for Apache::ModuleConfig Writing Makefile for Apache::PerlRunXS Writing Makefile for Apache::Server Writing Makefile for Apache::Symbol Writing Makefile for Apache::Table Writing Makefile for Apache::URI Writing Makefile for Apache::Util Writing Makefile for mod_perl salcd6# make (cd /home/apache_1.3.12/src make CC="cc";) === os/unix
Fw: PerlAuthenHandler invalid command
I figured it out. It was permission problems onthe include directory. Thanks for the advise all. Frank
PerlAuthenHandler invalid command
PerlAuthenHandler invalid command I figured it out. It was permission problems on the include directory. Thanks for the advise all. Frank
Re: multilanguage site
Francesco Pasqualini wrote: can someone suggest me the best way to build a multilanguage web site (english, french, ..). I'm using Apache + mod_perl + Apache::asp (for applications) Can be usefull XML/XSL whit AxKit ? Is there any example/guideline ? The approach used by Paul at RedHat seems to have been to wrap internationalized messages with tagmessage/tag where tag is an XMLSub, which would do a lookup at runtime into a message catalog for the right message, based on what language the client was set to. I'm sure its much more complicated than that, but that was the gist of it. -- Joshua _ Joshua Chamas Chamas Enterprises Inc. NodeWorks free web link monitoring Huntington Beach, CA USA http://www.nodeworks.com1-714-625-4051
Mulriple PDC Authentication
Hi Group I am using Apache 1.3.11 + Mod ssl + open SSL + Mode Perl + mod _php like that on my web server soalris 2.7 for Sparc. I am also using Mod AuthenSmb for Authentication of my web server with NT Account. and all working fine . Till now i am using Single NT PDC for Authentication of User Id / password with Apache Web Server. Now i am having a requirement to go for Multiple Domain With multiple PDC for that reason i set like PerlSetVar SEcond-Domain PDC2 PerlSetVar PDC2 PDC2 like the setup for PDC1 but still it is not working Can any body give me idea how to figure out this. I will appreciate for all the help. Thanks Sambit Nanda Unix Admin __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/
Re: CGI.pm problem
On Aug 29, 2000 at 16:11:39 +0400, Alexei V. Barantsev twiddled the keys to say: Dear mod_perl'ers! I have found strange difference between object and func modes of CGI library. More precisely - I have a problem with Vars function. #use CGI qw(:standard :cgi-lib); CGI::_reset_globals; #my $args = Vars; _reset_globals() is normally called when you create a new CGI object. In this context though, your object lives on between script runs so you have to manually tell CGI to reset it. Rick Myers[EMAIL PROTECTED] The Feynman Problem 1) Write down the problem. Solving Algorithm 2) Think real hard. 3) Write down the answer.
RE: Mulriple PDC Authentication
No i am not agree to this i do not know what u r thinking about or what is your plan to proceed about this probelm solution but it is sure it did not work for me i have tested it already This can not be a perfect solution i think .. what u think ? Any way thanks a lot for answer .. Sambit --- Clayton Mitchell [EMAIL PROTECTED] wrote: hmm. I am interested in doing that too. I wonder if they have to enter: \\DOMAINNAME\username in the login box, account name field to specify which domain to use? -Original Message- From: Sambit Nanda [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 29, 2000 4:02 PM To: [EMAIL PROTECTED] Subject: Mulriple PDC Authentication Hi Group I am using Apache 1.3.11 + Mod ssl + open SSL + Mode Perl + mod _php like that on my web server soalris 2.7 for Sparc. I am also using Mod AuthenSmb for Authentication of my web server with NT Account. and all working fine . Till now i am using Single NT PDC for Authentication of User Id / password with Apache Web Server. Now i am having a requirement to go for Multiple Domain With multiple PDC for that reason i set like PerlSetVar SEcond-Domain PDC2 PerlSetVar PDC2 PDC2 like the setup for PDC1 but still it is not working Can any body give me idea how to figure out this. I will appreciate for all the help. Thanks Sambit Nanda Unix Admin __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ __ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/
cvs commit: modperl apache-modlist.html
dougm 00/08/29 21:06:02 Modified:.apache-modlist.html Log: update Revision ChangesPath 1.72 +3 -1 modperl/apache-modlist.html Index: apache-modlist.html === RCS file: /home/cvs/modperl/apache-modlist.html,v retrieving revision 1.71 retrieving revision 1.72 diff -u -r1.71 -r1.72 --- apache-modlist.html 2000/08/08 20:14:20 1.71 +++ apache-modlist.html 2000/08/30 04:05:56 1.72 @@ -6,7 +6,7 @@ h1The Apache/Perl Module List/h1 Maintained by a href="mailto:[EMAIL PROTECTED]"Doug MacEachern/a, -bri $Revision: 1.71 $ $Date: 2000/08/08 20:14:20 $/i +bri $Revision: 1.72 $ $Date: 2000/08/30 04:05:56 $/i h3Contents/h3 a href="#intro"Introduction/abr @@ -91,6 +91,7 @@ NavBar bdpONavigation bar generatorMPB OutputChain bmpO Chain output of stacked handlersJANPAZ OWA bdpfRuns Oracle PL/SQL Web Toolkit apps SVINTO +PageKit ampOApplication framework w/ HTML::Template TJMATHER PassFile bdpfSend file via OutputChain ANDK PerlRun SmpfRun unaltered CGI scripts APML PrettyText bdpfRe-format .txt files for client display CHTHORMAN @@ -357,6 +358,7 @@ SORTIZ Salvador Ortiz lt;[EMAIL PROTECTED]gt; STAS Stas Bekman lt;[EMAIL PROTECTED]gt; SVINTO Svante Sörmark lt;[EMAIL PROTECTED]gt; +TJMATHER T.J. Mather lt;[EMAIL PROTECTED]gt; TOMHUGHES Tom Hughes lt;[EMAIL PROTECTED]gt; VALERIEValerie Delane lt;[EMAIL PROTECTED]gt; VKHERAVivek Khera lt;[EMAIL PROTECTED]gt;