mod_perl DSO on NT

2000-09-07 Thread Daniel Watkins
Hi, Does anyone know if a mod_perl dso can be loaded into any of the more commercial flavours of apache (Such as the IBM http server) I have done some work with mod_perl on NT but now a few mindless beauracratic nazi IT managers are waving their rulebooks around. The problem being they don

Re: [OT?] Cross domain cookie/ticket access

2000-09-07 Thread joe
> > I don't think there's any pretty way to do it. The only thing I can > think of off-hand is to generate the cross-server links dynamically, > including an encrypted token in the URL which will notify that server > that it should set a cookie saying that the user has already logged > in.

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Andrew Dunstan
Could someone please explain to me why everybody seems so intent on having a mod_perl handler fork in order to send mail? Why not just use the very common Net::SMTP package which just talks on an SMTP socket to whatever mailhost you have (localhost or other). There are other packages on CPAN

Re: SELECT cacheing

2000-09-07 Thread Perrin Harkins
On Thu, 7 Sep 2000, Roger Espel Llima wrote: > The question now is: is there any interest in releasing this? I could > write some minimal docs and give it a 'proper' module name, if there's > interest. I'd say this is probably useful to some people, so go ahead. A few suggestions: - Use the DB

Re: SELECT cacheing

2000-09-07 Thread G.W. Haywood
Hi there, On Thu, 7 Sep 2000, Roger Espel Llima wrote: > I've written a very small module to cache SELECT results from DBI > requests. [snip] > The question now is: is there any interest in releasing this? I could > write some minimal docs and give it a 'proper' module name, if there's > intere

Re: SELECT cacheing

2000-09-07 Thread Peter Skipworth
Roger, Sounds interesting - as a matter of fact, I'm doing it exactly the same way on realestate.com.au, except I use the last 2 hex digits as the directory name. Great minds think alike! I don't know if many people realise this, but mySQL, for those of you that use it, will soon include a selec

SELECT cacheing

2000-09-07 Thread Roger Espel Llima
I've written a very small module to cache SELECT results from DBI requests. The interface looks like: use SelectCache; my $db = whatever::get_a_handle(); my $st = qq{ select this, that ... }; my $rows = SelectCache::select($db, $st, 180); this returns an arrayref of rows (like the sele

mod_perl security :: possible solution

2000-09-07 Thread Félix C.Courtemanche
Hi, I have been looking around for some time already about this and here are the 2 solutions I came up with... I would like some comments, especially if you think it would be safe / fast to use. Solution #1 (apache solution) ¯ - Use a centralized apache server for all html request, graph

Writing to the client's socket from an XS module

2000-09-07 Thread Subhash Sankuratripati
Hello, I would like to find out how can I write to the HTTP Client from an XS module written in C being called from a Perl module running under apache. Even trying syswrite 1, "test" does not work from mod_perl. So internally mod_perl is duping stdout to some other file handle and

Available for hire

2000-09-07 Thread Jie Gao
Hi All, I'm available for hire in the areas of Apache+mod-perl and UNIX Admin (Solaris, Tru64, Linux). Jie

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Roger Espel Llima
On Thu, Sep 07, 2000 at 01:25:21PM -0700, Randal L. Schwartz wrote: > > "Roger" == Roger Espel Llima <[EMAIL PROTECTED]> writes: > > Roger> # limit allowed characters in email addresses > Roger> $to =~ tr/-a-zA-Z0-9_+%$.,:!@=()[]//cd; > > * An email address can have ANY CHARACTER OF THE

Need mod_Perl developers in Austin, Texas. Contract or Direct Please help me out if you can.

2000-09-07 Thread Kirk Gould
Hello, I need to help a partner organization find mod_Perl developers for an Austin, Texas company, so that they can finish a project for me. Please contact me if you can help out. I don't know if they will need relocation perm or temp, perhaps not for contract. Sincerely, Kirk Kirk J. Gould

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Randal L. Schwartz
> "Roger" == Roger Espel Llima <[EMAIL PROTECTED]> writes: Roger> # limit allowed characters in email addresses Roger> $to =~ tr/-a-zA-Z0-9_+%$.,:!@=()[]//cd; This is neither necessary nor sufficient. Please stop with this nonsense. ** *

Cookie-based access control

2000-09-07 Thread Tu Nguyen
  Hi,   I try to use the Cookie-based accesss control method in the eagle book. I have 2 servers. server1 serves for ww1.server.com and server2 is for ww2.server.com the httpd.conf file in server1 look like this   PerlAccessHandler  Apache::TicketAccess  PerlSetVar TicketDomain   .

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Tom Servo
On Thu, 7 Sep 2000, Roger Espel Llima wrote: > > > Might be a faq, but why would open(FH,'|qmail-inject') fail with > > > fatal: read-error from within mod_perl? > > Use > > open MAIL, "| /var/qmail/bin/qmail-inject" or &die_html("test"); > > print MAIL "[your mail]"; > >

Re: Embedded Perl/Resource Limits

2000-09-07 Thread Gerald Richter
> > But isnt the LimitRequestBody directive only for > files being received by the client and not for files > being sent the other way?? > It's called LimitRequestBody and not LimitResponseBody, just read the Apache docs http://www.apache.org/docs/mod/core.html#limitrequestbody Gerald > I th

Re: Auto rollback using Apache::DBI

2000-09-07 Thread Perrin Harkins
On Thu, 7 Sep 2000, Nicolas MONNET wrote: > |Well, Apache::DBI does push a cleanup handler that does a rollback if > |auto-commit is off. Are you saying this isn't working? > > I've run into a situation where it was'nt. I wanted to make sure > it's not the desired behaviour, before I can dig mor

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Roger Espel Llima
> > Might be a faq, but why would open(FH,'|qmail-inject') fail with > > fatal: read-error from within mod_perl? > Use > open MAIL, "| /var/qmail/bin/qmail-inject" or &die_html("test"); > print MAIL "[your mail]"; > close MAIL; > > I suppose you forgot the full path to qm

Re: upgrading mod_perl on production machine

2000-09-07 Thread Stas Bekman
On Thu, 7 Sep 2000, Greg Cope wrote: > Stas Bekman wrote: > > > > On Wed, 6 Sep 2000, Perrin Harkins wrote: > > > > > On Wed, 6 Sep 2000, Bill Moseley wrote: > > > > I hope I didn't miss anything in the Guide at install.html and in > > > > control.html, but I was looking for any suggestions on

Re: Using .htaccess in dynamic pages

2000-09-07 Thread Jonathan Leto
It might be easier to just use Apache::Htpasswd or the like, check for the existence of the .htaccess file, and parse it accordingly to see if the user has permissions. Or you could have a database of who has permissions to which files, and disallow access to any of the files unless through magi

Re: perld

2000-09-07 Thread Jonathan Leto
I think Alan Cox would kindly make fun of you, and tell you to have fun writing it. >From a security point of view, I don't think it's feasible either. I am fine and dandy using perl to automate admin tasks like it is now. Francesco Pasqualini ([EMAIL PROTECTED]) was saying: > for increase sy

Re: Auto rollback using Apache::DBI

2000-09-07 Thread Nicolas MONNET
On Thu, 7 Sep 2000, Perrin Harkins wrote: |On Thu, 7 Sep 2000, Nicolas MONNET wrote: |> I might get something wrong, but while in non-autocommit, if a script dies |> before rollbacking or commiting, looks like the transaction never gets |> cancelled until I kill -HUP httpd! Quite a problem ... |>

Re: [OT?] Cross domain cookie/ticket access

2000-09-07 Thread Kee Hinckley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >Aaron Johnson wrote: >> >> I am trying to implement a method of allowing access to three separate >> servers on three separate domains. >> >> The goal is to only have to login once and having free movement across >> the three protected access dom

Re: [OT?] Cross domain cookie/ticket access

2000-09-07 Thread Drew Taylor
Aaron Johnson wrote: > > I am trying to implement a method of allowing access to three separate > servers on three separate domains. > > The goal is to only have to login once and having free movement across > the three protected access domains. > > A cookie can't work due to the limit of a sin

Re: Auto rollback using Apache::DBI

2000-09-07 Thread Perrin Harkins
On Thu, 7 Sep 2000, Nicolas MONNET wrote: > I might get something wrong, but while in non-autocommit, if a script dies > before rollbacking or commiting, looks like the transaction never gets > cancelled until I kill -HUP httpd! Quite a problem ... > > Is there any known way to catch this? Well

[OT?] Cross domain cookie/ticket access

2000-09-07 Thread Aaron Johnson
I am trying to implement a method of allowing access to three separate servers on three separate domains. The goal is to only have to login once and having free movement across the three protected access domains. A cookie can't work due to the limit of a single domain. Has anyone out there had

Re: Auto rollback using Apache::DBI

2000-09-07 Thread Matt Sergeant
On Thu, 7 Sep 2000, Nicolas MONNET wrote: > > > Hi there, > > I might get something wrong, but while in non-autocommit, if a script dies > before rollbacking or commiting, looks like the transaction never gets > cancelled until I kill -HUP httpd! Quite a problem ... > > Is there any known way

Re: upgrading mod_perl on production machine

2000-09-07 Thread Greg Cope
Stas Bekman wrote: > > On Wed, 6 Sep 2000, Perrin Harkins wrote: > > > On Wed, 6 Sep 2000, Bill Moseley wrote: > > > I hope I didn't miss anything in the Guide at install.html and in > > > control.html, but I was looking for any suggestions on upgrading mod_perl > > > and Perl on a running produ

Re: Auto rollback using Apache::DBI

2000-09-07 Thread Honza Pazdziora
On Thu, Sep 07, 2000 at 04:03:04PM +0200, Nicolas MONNET wrote: > > I might get something wrong, but while in non-autocommit, if a script dies > before rollbacking or commiting, looks like the transaction never gets > cancelled until I kill -HUP httpd! Quite a problem ... > > Is there any known

Auto rollback using Apache::DBI

2000-09-07 Thread Nicolas MONNET
Hi there, I might get something wrong, but while in non-autocommit, if a script dies before rollbacking or commiting, looks like the transaction never gets cancelled until I kill -HUP httpd! Quite a problem ... Is there any known way to catch this?

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Nicolas MONNET
Thanks a lot, seems to be it, never heard about that env var. That's one weird behavior. On 7 Sep 2000, Frank D. Cringle wrote: |Nicolas MONNET <[EMAIL PROTECTED]> writes: |> Might be a faq, but why would open(FH,'|qmail-inject') fail with |> fatal: read-error from within mod_perl? | |Are the f

Using .htaccess in dynamic pages

2000-09-07 Thread odie
Hi! I have a program which is run under mod_perl as apache module. The program generates dynamic content from files in a directory tree. I'm wondering would it be possible to use .htaccess auhtorization for this dynamic content? for example: directory/file1 directory/.htaccess /magical_scrip

Re: mod_perl examples

2000-09-07 Thread Alexander Farber (EED)
Ilya Soldatkin wrote: > I am beginner in mod_perl. I think it will be good for me to see some > mod_perl script examples. Above all I would like to see style of > programming. It will be great if these scripts work with DBI. Could you > recommend(give URL) or send me several scripts with good sty

mod_perl examples

2000-09-07 Thread Ilya Soldatkin
Hi! I am beginner in mod_perl. I think it will be good for me to see some mod_perl script examples. Above all I would like to see style of programming. It will be great if these scripts work with DBI. Could you recommend(give URL) or send me several scripts with good style of programming in mod_p

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Frank D. Cringle
Nicolas MONNET <[EMAIL PROTECTED]> writes: > Might be a faq, but why would open(FH,'|qmail-inject') fail with > fatal: read-error from within mod_perl? Are the files in /var/qmail/control world readable? Is QMAILMFTFILE defined in the environment and pointing to a file that the httpd process can

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Nicolas MONNET
No, no the full path is there, I just did'nt copy it. On Thu, 7 Sep 2000, Frédéric Schwien wrote: |Date: Thu, 7 Sep 2000 12:18:20 +0200 |From: Frédéric Schwien <[EMAIL PROTECTED]> |To: Nicolas MONNET <[EMAIL PROTECTED]>, [EMAIL PROTECTED] |Subject: Re: open(FH,'|qmail-inject') fails | |> Might

Re: open(FH,'|qmail-inject') fails

2000-09-07 Thread Frédéric Schwien
> Might be a faq, but why would open(FH,'|qmail-inject') fail with > fatal: read-error from within mod_perl? Use open MAIL, "| /var/qmail/bin/qmail-inject" or &die_html("test"); print MAIL "[your mail]"; close MAIL; I suppose you forgot the full path to qmail-inject ...

open(FH,'|qmail-inject') fails

2000-09-07 Thread Nicolas MONNET
Might be a faq, but why would open(FH,'|qmail-inject') fail with fatal: read-error from within mod_perl? Thanks for your help.

RE: ErrorDocument problem

2000-09-07 Thread BeerBong
Joshua, thanx for answer - I solve this problem already... I had secured back-end server from direct client access. Only local proxy requests was accepted. And after this condition I replaced IP address of server with Real IP address of client. As result, on internal redirect (with real address a

[OT] Net::SSleay

2000-09-07 Thread Sergey V. Kolychev
Hi, Sorry for off topic,one excuse is that all my code is working under mod_perl ;) I have been running into troubles with www.authorize.net That is online billing system,and some times it is going down in an interesting manner , it accepts connections and taking a money from a customer and not

Re: ErrorDocument problem

2000-09-07 Thread Joshua Chamas
I'm curious to know whether there's anything in your error_log if Debug is set to -2 for Apache::ASP, to see if Apache::ASP is handling the .asp request and not returning the right error code. It should return the 404 just fine though and the ErrorDocument should pick it up from there. --Joshu

Re: beginner mod_perl error

2000-09-07 Thread Nouguier
Roee Rubin wrote: > I have been able to correct the @INC path issue and > now have ran into the following error that is > displayed in the error_log > > null: Undefined subroutine &Apache::Hello::handler > called > > Any help will be appreciated. > > [EMAIL PROTECTED] > > Hello, > > I have writte

Re: upgrading mod_perl on production machine

2000-09-07 Thread Stas Bekman
On Wed, 6 Sep 2000, Perrin Harkins wrote: > On Wed, 6 Sep 2000, Bill Moseley wrote: > > I hope I didn't miss anything in the Guide at install.html and in > > control.html, but I was looking for any suggestions on upgrading mod_perl > > and Perl on a running production machine to limit the amount

Re: mod_perl security on a shared web server

2000-09-07 Thread Stas Bekman
On Wed, 6 Sep 2000, Félix C.Courtemanche wrote: > Hello, > > I couldn't find any occurance of this question in the archives, but if it > does exists, please forward me to it. > > I have been working on a set of Administration Tools for commercial web > hosting companies for quite some times. L