Re: xml and mod_perl

2003-11-06 Thread Dustin Whitney
I am using Mason. Here are some lines from my httpd.conf file that are probably relevant: Alias /perl/ /var/www/perl/ PerlSetVar MasonAllowGlobals $swit_user PerlInitHandler "Apache::StatINC" SetHandler perl-script PerlHandler Apache::Registry Op

Re: xml and mod_perl

2003-11-06 Thread Perrin Harkins
On Thu, 2003-11-06 at 19:20, Stas Bekman wrote: > Nope. It's Apache::Request. Apache doesn't use libapreq: Okay, then he must be calling it from a different phase, since his script didn't have a value for $ENV{'MOD_PERL'}. Dustin, do you have an access handler, or a transhandler or something like

Re: [mp1]Warning in Apache log w/mod_perl 1.29

2003-11-06 Thread Joachim Feise
Perrin Harkins wrote: > On Thu, 2003-11-06 at 16:49, Joachim Feise wrote: > >>using Perl 5.8.1, mod_perl 1.29, Apache 1.3.29, I see this warning in my >>Apache error log file whenever I start Apache: >>[Wed Nov 5 01:24:20 2003] CGI.pm: Constant subroutine CGI::XHTML_DTD redefined >>at /usr/lib/p

Re: xml and mod_perl

2003-11-06 Thread Stas Bekman
Perrin Harkins wrote: On Thu, 2003-11-06 at 18:56, Dustin Whitney wrote: $ENV{'MOD_PERL'} is undefined, which leaves me to believe that Apache::Request isn't involved Yes, it sounds like this is a general apache problem, not a mod_perl problem. Did you change to a different version of apache w

Re: xml and mod_perl

2003-11-06 Thread Perrin Harkins
On Thu, 2003-11-06 at 18:56, Dustin Whitney wrote: > $ENV{'MOD_PERL'} is undefined, which leaves me to believe that > Apache::Request isn't involved Yes, it sounds like this is a general apache problem, not a mod_perl problem. Did you change to a different version of apache when you did this ins

Re: xml and mod_perl

2003-11-06 Thread Dustin Whitney
$ENV{'MOD_PERL'} is undefined, which leaves me to believe that Apache::Request isn't involved, but the error logs produce: [Thu Nov 6 16:56:45 2003] [error] [client 192.168.0.5] [libapreq] unknown content-type: `text/xml' Is there a way I can make apache/mod_perl know 'text/xml'? -Dustin On

RE: Can't locate loadable object?

2003-11-06 Thread Perrin Harkins
On Thu, 2003-11-06 at 17:33, Robert Friberg wrote: > > What do you get when you run: > > find /usr/local/lib/perl5/ | grep Apache/Util > > I get > > /usr/local/lib/perl5/site_perl/5.8.1/i686-linux/Apache/Util.pm > > > You don't tell us anything about your modperl build. > > I copied and paste

Re: xml and mod_perl

2003-11-06 Thread Perrin Harkins
On Thu, 2003-11-06 at 17:51, Dustin Whitney wrote: > I've an old cgi-script that worked before I installed mod_perl, but > now it won't work. I've put it in a directory that is configured to be > handled by mod_cgi, but I get this error in my apache error logs when > it tried to run I'm

xml and mod_perl

2003-11-06 Thread Dustin Whitney
Hello, I've an old cgi-script that worked before I installed mod_perl, but now it won't work. I've put it in a directory that is configured to be handled by mod_cgi, but I get this error in my apache error logs when it tried to run: Thu Nov 6 15:50:23 2003] [error] [client 192.168.0.5]

Re: [mp1]Warning in Apache log w/mod_perl 1.29

2003-11-06 Thread Perrin Harkins
On Thu, 2003-11-06 at 16:49, Joachim Feise wrote: > using Perl 5.8.1, mod_perl 1.29, Apache 1.3.29, I see this warning in my > Apache error log file whenever I start Apache: > [Wed Nov 5 01:24:20 2003] CGI.pm: Constant subroutine CGI::XHTML_DTD redefined > at /usr/lib/perl5/5.8.1/constant.pm line

RE: Can't locate loadable object?

2003-11-06 Thread Robert Friberg
> What do you get when you run: > find /usr/local/lib/perl5/ | grep Apache/Util I get /usr/local/lib/perl5/site_perl/5.8.1/i686-linux/Apache/Util.pm > You don't tell us anything about your modperl build. I copied and pasted from INSTALL.simple mvh, #-

Re: mod_perl large file support

2003-11-06 Thread Adam Griffiths
Thanks Stas for your detailed reply. I have apache 1.3. apxs -q cflags does not show any mention of LARGEFILE_SOURCE neither does ap_config_auto.h, I guess that's definitive answer... Perl -V indicates USE_LARGE_FILES as a compile time option. I'm not sure what mod_perl was compiled with but Ap

Re: Can't locate loadable object?

2003-11-06 Thread Stas Bekman
Robert Friberg wrote: Hi all, I just installed from source perl 5.8.1, mod_perl 1.29, apache 1.3.29 and libapreq 1.39 on RH Linux 9. I did the same thing (almost) a couple of weeks ago and it worked fine, this time I cant get my stuff running. New is libapreq, last time I installed only Apache::Re

Re: mod_perl/mod_cgi

2003-11-06 Thread Perrin Harkins
On Thu, 2003-11-06 at 16:46, Dustin Whitney wrote: > Is there a way that I can make apache use mod_cgi to serve scripts > in one directory, but mod_perl in all the others? I have some scripts > that won't work under mod_perl in their current form, and I'd like to > temporarily use them whi

Can't locate loadable object?

2003-11-06 Thread Robert Friberg
Hi all, I just installed from source perl 5.8.1, mod_perl 1.29, apache 1.3.29 and libapreq 1.39 on RH Linux 9. I did the same thing (almost) a couple of weeks ago and it worked fine, this time I cant get my stuff running. New is libapreq, last time I installed only Apache::Request from CPAN. I g

Re: mod_perl/mod_cgi

2003-11-06 Thread Hulya Gurer
Hello Dustin, We had the same problem when we switch to mod_perl couple months ago, and I created cgi-bin2 directory for the ones we haven't modified yet and have problem running under mod_perl We put the modified scripts for mod_perl in regular cgi-bin directory. The only headache is you need

[mp1]Warning in Apache log w/mod_perl 1.29

2003-11-06 Thread Joachim Feise
Hi, using Perl 5.8.1, mod_perl 1.29, Apache 1.3.29, I see this warning in my Apache error log file whenever I start Apache: [Wed Nov 5 01:24:20 2003] CGI.pm: Constant subroutine CGI::XHTML_DTD redefined at /usr/lib/perl5/5.8.1/constant.pm line 108. [Wed Nov 5 01:24:21 2003] [notice] Apache/1.3.2

mod_perl/mod_cgi

2003-11-06 Thread Dustin Whitney
Hello, Is there a way that I can make apache use mod_cgi to serve scripts in one directory, but mod_perl in all the others? I have some scripts that won't work under mod_perl in their current form, and I'd like to temporarily use them while I rewrite them for mod_perl. Thanks, Dustin -- R

Re: authentication with smb

2003-11-06 Thread Shannon Eric Peevey
Stas Bekman wrote: yo! please trim the quoted text in your replies to the mimimal relevant size. those who need to read the whole thing have the archives. thanks. Will do. speeves cws -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: Apache::AuthenSmb on Windows

2003-11-06 Thread Shannon Eric Peevey
cramirez wrote: Has anyone been able to use Apache::AuthenSmb on Windows? I'm trying to setup our UNIX Apache environment on a Windows box, but I'm having trouble compiling Authen::Smb. Actually, a better question might be, does anyone have any ideas on the best approach of implementing web

Re: mod_perl large file support

2003-11-06 Thread Stas Bekman
Adam Griffiths wrote: Hi All, How can I get a definitive answer as to whether mod_perl was compiled with Large File Support? I have a shell login account but not root. It's complicated. Because Apache and Perl need to be compiled with LFS to really "have" it under mod_perl. Many times you get Per

mod_perl large file support

2003-11-06 Thread Adam Griffiths
Hi All, How can I get a definitive answer as to whether mod_perl was compiled with Large File Support? I have a shell login account but not root. Regards Adam -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: authentication with smb

2003-11-06 Thread Stas Bekman
yo! please trim the quoted text in your replies to the mimimal relevant size. those who need to read the whole thing have the archives. thanks. __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/

RE: please remove me from mailing list

2003-11-06 Thread Cees Hek
Quoting Lanny Derby <[EMAIL PROTECTED]>: > Do you really think that I haven't sent an email in the proper format and to > the proper email address requesting to be removed? Basically, I have asked > nicely twice. Then I emailed the moderator directly. Neither effort did any > good. Well, from the

Re: Re[2]: strange behavor

2003-11-06 Thread Perrin Harkins
On Wed, 2003-11-05 at 04:43, Andrey A. Kudrin wrote: > So sometimes when I call CMS.cgi I can see result of print_login of > chat.cgi and and vice versa. There is nothing in your sample code here that would cause one sub to be called in place of another. How do you know that the other print_login

RE: please remove me from mailing list

2003-11-06 Thread Lanny Derby
Do you really think that I haven't sent an email in the proper format and to the proper email address requesting to be removed? Basically, I have asked nicely twice. Then I emailed the moderator directly. Neither effort did any good. -Original Message- From: Cees Hek [mailto:[EMAIL PROTE

Re: please remove me from mailing list

2003-11-06 Thread Cees Hek
Quoting Lanny Derby <[EMAIL PROTECTED]>: > > I have asked to be removed from this mailing list twice now without success. > I will continue to send this email dailing until I am removed. It might help to do a little research first instead of resorting to threats. Firstly, when you signed up f

please remove me from mailing list

2003-11-06 Thread Lanny Derby
I have asked to be removed from this mailing list twice now without success. I will continue to send this email dailing until I am removed. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom it is addressed.

Re: [mp1.99_10] And tricky code for Mason.

2003-11-06 Thread Ruslan U. Zakirov
Neil Watson ÐÐÑÐÑ: On Thu, Nov 06, 2003 at 05:28:23PM +0300, Ruslan U. Zakirov wrote: RT have issue with attachments coruption, it have such issue almost all time with latest mp2 from time to time, RT's documentation have WARNING RT has had issues with attachment corruption that are not rela

Re: [mp1.99_10] And tricky code for Mason.

2003-11-06 Thread Neil Watson
On Thu, Nov 06, 2003 at 05:28:23PM +0300, Ruslan U. Zakirov wrote: RT have issue with attachments coruption, it have such issue almost all time with latest mp2 from time to time, RT's documentation have WARNING RT has had issues with attachment corruption that are not related to mp2. I have RT o

perl chat thru reverse_proxy ?

2003-11-06 Thread Scott Alexander
Hi, I'm trying out Eric Cholet's chatsrv with a lite apache front end and mod_perl server. The front end and mod_perl are on different machines. if I use http://mod_perl_server:8080/chat.pl everything works okay when I use http://front_end/chat.pl I get don't get any output displayed to the brow

Re: authentication with smb

2003-11-06 Thread Shannon Eric Peevey
cramirez wrote: Awhile back, I encountered this same problem and found a solution from Matt Arnold's mod_perl post, which I cannot locate at the time. Anyhow, here's the fix that I've been using in our production environment. 1. Update Authen::Smb like so: use Fcntl qw(:flock); ... open S,

[mp1.99_10] And tricky code for Mason.

2003-11-06 Thread Ruslan U. Zakirov
Hello All. I'm Request Tracker(RT) user. There were talk and code for mason handler in the archive: if ($mod_perl::VERSION >= 1.9908) { require Apache::RequestUtil; no warnings 'redefine'; my $sub = *Apache::request{CODE}; *Apache::request = sub { my $r; eval { $r =

Re: [mp2] POST of multipart/form-data broken in 1.99_10?

2003-11-06 Thread Christian Wetzig
Stas Bekman wrote: Stas Bekman wrote: [...] It's a known problem. I'll commit a fix soonish (I need to do some extra testing and rewrites). Meanwhile please replace - read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); + $r->read($buffer, $ENV{'CONTENT_LENGTH'}); That should do the trick. Christian,

Re: [mp2] POST of multipart/form-data broken in 1.99_10?

2003-11-06 Thread Stas Bekman
Stas Bekman wrote: Christian Wetzig wrote: Hi, the following worked fine under 1.99_09 in a perl module called from a simple mod_perl script (SetHandler perl-script, PerlHandler ModPerl::Registry): > read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); But after upgrading to 1.99_10, the content of

Re: Apache::Request->instance()

2003-11-06 Thread Eric Sammer
Stas Bekman wrote: It seems that you are still confused between $r and Apache::Request objects, which are two different things. The former is a request object which you can do many things with. The latter is just a GET/POST data container which gives you methods to access that data. Actually, if

Re: strange behavor

2003-11-06 Thread Stas Bekman
Andrey A. Kudrin wrote: Hello Stas, Wednesday, November 05, 2003, 3:11:21 PM, you wrote: SB> Is it possible that you import functions with the same name from different SB> modules into the same script? If not, you really need to show us some *very* SB> short examples of your code so we can get t

Re: Apache::Request->instance()

2003-11-06 Thread Stas Bekman
Eric Sammer wrote: [...] For Apache2, Apache::Request->new will always reference the appropriate per-request data; instance() isn't needed there, so it won't be included in the 2.X releases. That's pretty much what I was looking for. I just wanted to know that there will be a common and reliabl

RE: authentication with smb

2003-11-06 Thread Tauber, Mathias HDP
Thanks for the 'patches' to the modules! > 1. Update Authen::Smb like so: > > use Fcntl qw(:flock); > ... > open S, "> /full/path/to/AuthenSmb.lck" or > die "Can't open AuthenSmb.lck: $!\n"; > flock S, LOCK_EX; > my $res = Valid_User($username, $password, $server, $backup, $domain); > close S; W

Re: Apache::Request->instance()

2003-11-06 Thread Eric Sammer
Joe Schaefer wrote: There are no plans whatsoever to deprecate instance() from the Apache::Request 1.X that comes in the libapreq-1.X package. The APIs for 1.X are stable, and very unlikely to change at all. I wasn't so much thinking about the API changing within the 1.x branch so much as being

Re[3]: strange behavor

2003-11-06 Thread Andrey A. Kudrin
Hello! SB>> Is it possible that you import functions with the same name from different SB>> modules into the same script? If not, you really need to show us some *very* SB>> short examples of your code so we can get the idea what your problem is. AAK> Substituted functions is not in modules, but

Re: Apache::Request->instance()

2003-11-06 Thread Joe Schaefer
Eric Sammer <[EMAIL PROTECTED]> writes: > I'd rather not paint myself into the proverbial corner if > Apache::Request->instance() is being deprecated. There are no plans whatsoever to deprecate instance() from the Apache::Request 1.X that comes in the libapreq-1.X package. The APIs for 1.X are