segmentation fault when using custom config module

2000-11-29 Thread Dave Rolsky
Relevant info: Apache: 1.3.12 mod_perl: 1.24 Perl: 5.00503 gcc 2.95.1 on Linus 2.2.18pre19 I created a module that contains custom configs with the following code: package HTML::Mason::Dispatcher; use ExtUtils::MakeMaker; use Apache::ExtUtils; use Apache::src; my @directives = ( { name =

Re: segmentation fault when using custom config module

2000-11-29 Thread Matt Sergeant
On Wed, 29 Nov 2000, Dave Rolsky wrote: my $cfg = Apache::ModuleConfig-get($r); Try: my $cfg = Apache::ModuleConfig-get($r, __PACKAGE__); -- Matt/ /||** Director and CTO ** //||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** **

Re: Should I use CGI.pm?

2000-11-29 Thread Stas Bekman
On Tue, 28 Nov 2000, quagly wrote: I am working my way through the eagle book. I have not used CGI.pm before. It is used in many (most?) of the examples. Is it worth learning to use it? I am not clear whether the authors are using it because the think it is the best way to

Re: Should I use CGI.pm?

2000-11-29 Thread Thierry-Michel Barral
except it's a little buggy ! (Apache::Request) I have been obliged to return to CGI.pm, coz libapreq cannot handle correctly the multipart enctype, as for file upload What about the 0.32 ? I'm a bit underskilled to patch and compile such a tool, but If someone can help me, I will be

Re: Apache::SSI design questions

2000-11-29 Thread Bill Moseley
At 11:47 PM 11/28/00 -0600, Ken Williams wrote: 1) Is it preferred to use POSIX::strftime() for time formatting, or Date::Format::strftime()? One solution would be to dynamically load one or the other module according to which one is available, but I'd rather not do that. Hi Ken, Why

Re: Apache::SSI design questions

2000-11-29 Thread Matt Sergeant
On Wed, 29 Nov 2000, Bill Moseley wrote: At 11:47 PM 11/28/00 -0600, Ken Williams wrote: 1) Is it preferred to use POSIX::strftime() for time formatting, or Date::Format::strftime()? One solution would be to dynamically load one or the other module according to which one is available,

Re: Problem with mod_perl module!!!

2000-11-29 Thread G.W. Haywood
Hi there, On Wed, 29 Nov 2000, Edmar Edilton da Silva wrote: How can I know if a perl script is being ran under mod_perl? http://perl.apache.org/guide 73, Ged. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

WebDAV support in mod_perl

2000-11-29 Thread Joao Pedro Goncalves
Hi, is there any current project going on for using the WebDAV protocol in mod_perl, something like Apache::WebDAV? I am familiar with the mod_dav efforts however they seem to be oriented to filesystem repositories and i would like to use WebDAV in a more dynamic environment such as

RE: WebDAV support in mod_perl

2000-11-29 Thread Jerrad Pierce
Interesting idea. Hadn't though of it. Can't say I'd be able to commit much, more of a lurker. But you have my moral support! One thing though. last time I used the DAV module it was deathly slow. That may have been fixed... Another thought, is if you add in file support, that you could heed

RE: Apache config control using Perl?

2000-11-29 Thread Geoffrey Young
-Original Message- From: Ben Heuer [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 30, 2000 2:35 AM To: modperl Subject: Apache config control using Perl? Hello: [snip] 2. How can I customise the line that gets added to the logs/error.log file? write a PerlLogHandler

2 servers based on .htaccess authentication

2000-11-29 Thread wald
We are finally planning to "do the right thing" and have a light weight and heavy weight server. Our problem is that our (immediate) users set up the protections for each directory with .htaccess files - and they use PerlAuthzHandler and PerlAuthenHandlers - so to decide if a file can be

Re: WebDAV support in mod_perl

2000-11-29 Thread Ian Kallen
Yes, I've contemplated either: 1) implementing the DAV protocols entirely in Perl for mod_perl 2) gluing in XS into mod_dav -- IIRC mod_dav has hooks for non-filesystem respositories; it'd be great just to expose that API to mod_perl (haven't cracked open that code yet though) Issues: what

Re: segmentation fault when using custom config module

2000-11-29 Thread Dave Rolsky
On Wed, 29 Nov 2000, Matt Sergeant wrote: On Wed, 29 Nov 2000, Dave Rolsky wrote: my $cfg = Apache::ModuleConfig-get($r); Try: my $cfg = Apache::ModuleConfig-get($r, __PACKAGE__); I should have said that its segfaulting before it ever gets into the handler sub. I changed handler

Apache Session and Lock files

2000-11-29 Thread cbell
Hi everyone, After tying a hash variable to a session, and writing to it, I would like to undef my hash variable just to make sure that the session lock file is deleted. However, when I do this, then any changes I make to the session hash don't get saved. If I don't undef the session hash,

Re: Apache::MP3 Problem?

2000-11-29 Thread tom
I think your "Order" directive is wrong. order should be lower case, as should be allow and all. Give that a whirl. Tom On Tue, Nov 28, 2000 at 08:11:06PM -0500, Sean Keplinger wrote: The Apache::MP3 module allows you to stream MP3 files from your webserver -- it's a pretty spiffy little

Re: WebDAV support in mod_perl

2000-11-29 Thread Alex Menendez
I am very interested in any developments in this area. I currently am doing dav stuff in Java for macromedia.com and would be interested in porting it to my first love: Perl! please let me know of any developments. I am willing to help, if you need it. cheers, -amen On Wed, 29 Nov 2000, Ian

Re: 2 servers based on .htaccess authentication

2000-11-29 Thread Paul Lindner
If you are using shared repositories for the front-end and heavy server you can modify the filename used for .htaccess in the apache config file. (See the AccessFileName entry) So, you could put the config for the heavy server in .htaccess_heavy and the front-end config in .htaccess. On Wed,

Re: WebDAV support in mod_perl

2000-11-29 Thread Matt Sergeant
On Wed, 29 Nov 2000, Ian Kallen wrote: Yes, I've contemplated either: 1) implementing the DAV protocols entirely in Perl for mod_perl 2) gluing in XS into mod_dav -- IIRC mod_dav has hooks for non-filesystem respositories; it'd be great just to expose that API to mod_perl (haven't cracked

This is so cool.

2000-11-29 Thread J. J. Horner
I've written mod_perl handlers for a few different phases, but I've never really worried about speed increases for plain content. I recently migrated from a cgi script in my cgi-bin that handles content to a Apache::Registry script that does the same thing. On my puny 150MHz Pentium, 96MBytes

Re: WebDAV support in mod_perl

2000-11-29 Thread Greg Stein
On Wed, Nov 29, 2000 at 09:20:49AM -0800, Ian Kallen wrote: Yes, I've contemplated either: 1) implementing the DAV protocols entirely in Perl for mod_perl 2) gluing in XS into mod_dav -- IIRC mod_dav has hooks for non-filesystem respositories; it'd be great just to expose that API to

Re: sending receiving cookies through the light front end

2000-11-29 Thread Vivek Khera
"CLE" == Christopher L Everett [EMAIL PROTECTED] writes: CLE 2) If 1 above is "yes", since the cookie was intended for a CLE.baz.org server, won't the perl.foo.org Apache drop the CLEcookie in the bit-bucket? The client (IE, Netscape) won't send a cookie for .baz.org to the

Re: 2 servers based on .htaccess authentication

2000-11-29 Thread Robert Waldstein
So, you could put the config for the heavy server in .htaccess_heavy and the front-end config in .htaccess. Sorry - didn't make myself clear. The protection on the files are the same - just too complex for the front-end to understand (since use modperl). So if there is any authentication

Re: 2 servers based on .htaccess authentication

2000-11-29 Thread Ken Williams
Or if you want to share some directives but not others, you can use IfModule mod_perl.c or IfDefined SomeSymbol sections to block one server from reading those portions of the config files. [EMAIL PROTECTED] (Paul Lindner) wrote: If you are using shared repositories for the front-end and heavy

Re: sending receiving cookies through the light front end

2000-11-29 Thread clayton cottingham
http://www.cookiecentral.com/faq/#4.7 is a good link the rest is informative as well but this particular section is on limitations including the point vivek made about cross domain cookies , which is not possible - To

Re: Apache Session and Lock files

2000-11-29 Thread Perrin Harkins
On Wed, 29 Nov 2000, cbell wrote: After tying a hash variable to a session, and writing to it, I would like to undef my hash variable just to make sure that the session lock file is deleted. However, when I do this, then any changes I make to the session hash don't get saved. Well, yeah.

Re: sending receiving cookies through the light front end

2000-11-29 Thread Christopher L. Everett
Vivek Khera wrote: "CLE" == Christopher L Everett [EMAIL PROTECTED] writes: CLE 2) If 1 above is "yes", since the cookie was intended for a CLE.baz.org server, won't the perl.foo.org Apache drop the CLEcookie in the bit-bucket? The client (IE, Netscape) won't send a cookie for

Re: sending receiving cookies through the light front end

2000-11-29 Thread Christopher L. Everett
"Christopher L. Everett" wrote: This is the way I have it now: 1) set up IP aliases for the loopback adapter like so: ifconfig lo:0 192.168.0.1 netmask 255.255.255.0 ifconfig lo:1 192.168.0.2 netmask 255.255.255.0 ifconfig lo:2 192.168.0.3 netmask 255.255.255.0 2) added

Changing a file's UID from within an Apache module?

2000-11-29 Thread George Sanderson
I am creating a mod_perl Apache module. The last functionality that I need to implement is the ability to set the UID of the files and directories which are created and modified by the Apache module to something other than Apache's child UID. For example, if when I built Apache 1.3.14 on Linux

no such file or directory

2000-11-29 Thread newsreader
Hi People I have this mysterious problem of my mod_perl scripts giving errors like no such file or directory when I know for a fact that files and directory are there. The files are berkeley db file. The problems first show up in the midst of doing multiple recompiling and reinstallation of

Re: WebDAV support in mod_perl

2000-11-29 Thread Aaron Johnson
Is the HTTP::DAV module of any use? I just ran across it in TPJ. http://theoryx5.uwinnipeg.ca/CPAN/data/HTTP-DAV/DAV.html Aaron Joao Pedro Goncalves wrote: Hi, is there any current project going on for using the WebDAV protocol in mod_perl, something like Apache::WebDAV? I am familiar

Re: 2 servers based on .htaccess authentication

2000-11-29 Thread Robert Waldstein
As long as you can garantee that the URI of the resource is not accessible multiple ways you could use a Location/ directive on the relative path. Trouble with this is my problem arises out of a (deliberate) lack of central control. That is, I have thousands of directories, and the web

Wanted: Modperl/Mason consultant:

2000-11-29 Thread Robert Monical
Hello. We have an Apache/Modperl/Mason/Oracle system and no programmers experienced with the front end environment. (details available on request). We are the Oracle programmer/DBA and Unix admin guys and fumble around in the Perl as needed. Slowly coming up to speed on Perl. The Apche

Re: Wanted: Modperl/Mason consultant:

2000-11-29 Thread Ask Bjoern Hansen
On Wed, 29 Nov 2000, Robert Monical wrote: Hi Robert, I don't have a lot of experience with mason, but I know mod_perl, Apache and Perl very very well. I've built a majority of the ValueClick banner serving system; all built in Perl and using mod_perl for the frontend engine. It's currently

Re: Wanted: Modperl/Mason consultant:

2000-11-29 Thread Michael Robinton
where are you located?? Michael Robinton BizSystems 4600 El Camino Real - Suite 206B Los Altos, CA 94022 650 947-3351 [EMAIL PROTECTED] On Wed, 29 Nov 2000, Robert Monical wrote: Hello. We have an Apache/Modperl/Mason/Oracle system and no programmers experienced with the front end

Re: Wanted: Modperl/Mason consultant:

2000-11-29 Thread Ask Bjoern Hansen
On Wed, 29 Nov 2000, Ask Bjoern Hansen wrote: ahh. that should obviously not have been spamming the poor list. In particular not with the "nice" quoting. A "doh!" as Randal pointed out. sorry. - ask (goes back to his corner and hides). -- ask bjoern hansen - http://www.netcetera.dk/~ask/

Re: Problem with mod_perl module!!!

2000-11-29 Thread Ask Bjoern Hansen
On Wed, 29 Nov 2000, Edmar Edilton da Silva wrote: I have a problem with the Apache::DBI and mod_perl modules that don't work together, before I thought that the problem was in the Apache::DBI. But, now I know that the problem is in the mod_perl because it also doesn't work when I try

Re: Using MHonArc inside of mod_perl

2000-11-29 Thread Ask Bjoern Hansen
On Mon, 27 Nov 2000, Aaron Johnson wrote: I am trying to get the MHonArc package to work in conjunction with an in house module. When MHonArc (http://www.mhonarc.org) is run and told to process a single file instead of a directoy full of files, it sends the output to STDOUT which inside of

cgi script vs mod_perl script

2000-11-29 Thread J. J. Horner
I have a script that uses some hash magic to set some variables. It works well in normal mode, but when I put it in my /perl directory, it stops working well. The full script is included. In the script, I set up a hash of variables-subroutines so that when someone sets a variable, it calles a

Re: Using MHonArc inside of mod_perl

2000-11-29 Thread Aaron Johnson
Thanks for the replies from people on the list. I solved my problem with the suggestion from Chris Nokleberg. He suggested the IO::String module. It did the trick. I had been using the qx function previously, but I needed variables from within my module to be available inside of MHonArc.

RFC: Apache::Carp - Error Handling under mod_perl

2000-11-29 Thread T.J. Mather
I've done a lot of programming under mod_perl and I got tired of examining the error logs for errors. So I wrote a module that displays to the broswer the error (with a complete call stack) for any fatals or warnings that occur on a development server (similar to using CGI::Carp

Re: Wanted: Modperl/Mason consultant:

2000-11-29 Thread Dave Rolsky
On Wed, 29 Nov 2000, ___cliff rayman___ wrote: plus, everyone knows your bid. i don't have quite the credentials as Ask, but i only cost $119.50 per hour. :-)) Hmm, I'm on the Mason core team and I'll do it for $119.49/hour ;) Actually, I'm just kidding, I have a job I should be working on

Re: RFC: Apache::Carp - Error Handling under mod_perl

2000-11-29 Thread Dave Rolsky
On Thu, 30 Nov 2000, T.J. Mather wrote: I've done a lot of programming under mod_perl and I got tired of examining the error logs for errors. So I wrote a module that displays to the broswer the error (with a complete call stack) for any fatals or warnings that occur on a development server

Re: no such file or directory

2000-11-29 Thread G.W. Haywood
Hi there, On Wed, 29 Nov 2000 [EMAIL PROTECTED] wrote: I have this mysterious problem of my mod_perl scripts giving errors like no such file or directory when I know for a fact that files and directory are there. dbmopen %A,'file',0644 Try dbmopen %A,'/full/path/to/file',0644