Re: Why mod_perl does not like File::Recurse module?

2000-07-12 Thread Alexei V. Barantsev
Jerrad Pierce [EMAIL PROTECTED] writes: But nobody is typically a rather priveleged account... On 11 Jul 2000, Alexei V. Barantsev wrote: From command line all is ok HTML LANG="en-US"HEADTITLEUntitled Document/TITLE /HEADBODYPFile::Copy::copydir ok/P

Re: The Eagle has landed!

2000-07-12 Thread G.W. Haywood
Hi there, On Tue, 11 Jul 2000, Greg Leidreiter wrote: when attempting to access http://localhost/hello/world from a browser it returns 404, and the errorlog shows the /hello/world URL appended to DocumentRoot any ideas? Is there an `Alias' directive somewhere in your config? 73, Ged.

E: RE: Severe problem with $r-log_error Date: Tue, 11 Jul 2000 17:20:01 +0100 (BST) From: Matt Sergeant matt@sergeRE: RE: Severe problem with $r-log_error

2000-07-12 Thread Axel Wagner
Hi, Next question, did you "use Apache::Log;" ? -- Yes! That is what I am "using": --- snip --- use strict; use vars qw(%DBNew); use CGI::Cookie; use CGI '-autoload'; use MD5 (); use Biobase::DBI qw(:All); use Apache::File (); use Apache::URI (); use Apache::Log (); use

RE: Why can't I use a package name under Apache::Registry - whoooohah

2000-07-12 Thread bill chmura
I had tried the telnet to grab the headers already, but... Your second suggestion fixed the problem nicely. Although I do not understand why the exit would cause that problem. After you said that I remebered reading somewhere exits were not good under mod-perl, but they should be caught

Re: Perl CGI/Mod_perl testing - HeLp!

2000-07-12 Thread G.W. Haywood
Hi there, On Tue, 11 Jul 2000, Rich Lemanski wrote: I have been tasked to show the performance differences between Perl CGI scripts and mod_perl scripts running on an Apache web server on a small isolated network. There is a lot of good stuff about this in the Guide

Re: Why mod_perl does not like File::Recurse module?

2000-07-12 Thread Ken Williams
[EMAIL PROTECTED] (Alexei V. Barantsev) wrote: Jerrad Pierce [EMAIL PROTECTED] writes: But nobody is typically a rather priveleged account... On 11 Jul 2000, Alexei V. Barantsev wrote: From command line all is ok HTML LANG="en-US"HEADTITLEUntitled Document/TITLE

Apache::session and Apache::DBI::Oracle headaches part 2

2000-07-12 Thread Chad Billigmeier
Quite right...Commit does need to be enabled. Here's the trick though... (code from the script making the connection through Apache::Session::Oracle tie %hash, 'Apache::Session::Oracle', $id, { DataSource = 'dbi:Oracle:ensdev', UserName = 'User', Password = 'Pass',Commit = 1 }; )

Re: Hang in $r-print w/ POST

2000-07-12 Thread heddy Boubaker
"Patrick" == Patrick [EMAIL PROTECTED] writes: Patrick I'm not sure what you mean by complete, but CGI::FastTemplate always Patrick suited my needs. Of course there are many other solutions, like Patrick others have told you : HTML::Mason (seems to be very popular), Patrick etc... What

Idea of an apache module

2000-07-12 Thread Luis Henrique Cassis Fagundes
Hi, Recently I started to have problems in developing my CGIs because in my new job most of the servers run Netscape instead of Apache. The administrator told me that the reason is that Netscape has a better performance than Apache 1.3. I'm now developing a module that caches in

RE: Idea of an apache module

2000-07-12 Thread jbodnar
Yes. It's Apache::Registry. On 12-Jul-2000 Luis Henrique Cassis Fagundes wrote: Hi, Recently I started to have problems in developing my CGIs because in my new job most of the servers run Netscape instead of Apache. The administrator told me that the reason is that Netscape has a

RE: Idea of an apache module

2000-07-12 Thread Vivek Khera
"j" == jbodnar [EMAIL PROTECTED] writes: j Yes. It's Apache::Registry. No. Registry does not cache the generated pages. Try any of the standard "template" packages like Mason or AxKit.

RE: Idea of an apache module

2000-07-12 Thread jbodnar
Sorry. I was attempting to answer what I thought was his real question. He mentioned performance of CGI scripts and so Apache::Registry would be the ideal choice. I don't think he wants to rewrite his CGIs so the template packages won't work for him. On 12-Jul-2000 Vivek Khera wrote: "j" ==

RE: The Eagle has landed!

2000-07-12 Thread Dan Rench
On Wed, 12 Jul 2000, Greg Leidreiter wrote: Firstly becuase the Eagle book seems very rigorous to me, and such an oversight as forgetting to push a path into @INC should have been picked up well before now. I've never heard mention of this problem... mod_perl automatically adds {ServerRoot}

Re: Idea of an apache module

2000-07-12 Thread Luis Henrique Cassis Fagundes
How do I use Apache::Registry to cache pages in disk? The module I have in mind is something transparent to the programmer, you just tell apache that some CGI (or PHP, or any request) will be cached and the server will cache the stdout in disk, and next time someone requests a page, the

Re: Idea of an apache module

2000-07-12 Thread Ken Williams
Perhaps you'd rather use something like the squid proxy, then: http://www.squid-cache.org/ When you decide to switch back to Apache, which may not take too long, you can continue to use squid as a front-end proxy. =) [EMAIL PROTECTED] (Luis Henrique Cassis Fagundes) wrote: How do

Re: Idea of an apache module

2000-07-12 Thread Matt Sergeant
On Wed, 12 Jul 2000, Luis Henrique Cassis Fagundes wrote: How do I use Apache::Registry to cache pages in disk? The module I have in mind is something transparent to the programmer, you just tell apache that some CGI (or PHP, or any request) will be cached and the server will cache

HTML::Stream (was Re: Hang in $r-print w/ POST)

2000-07-12 Thread darren chamberlain
heddy Boubaker ([EMAIL PROTECTED]) said something to this effect: What I meant is a pkg that could generate all known HTML tags, not like HTML::StickyForms ... But all of you guys changed my mind instead of hardcoding the html into my handler I'll try to investigate the use of

Re: Idea of an apache module

2000-07-12 Thread Luis Henrique Cassis Fagundes
Hi, The module would handle the requests before any other modules and check in its database if there is a cached page for that request uri. If the page is cached, it will send the cached page and return DONE. If the page is not cached, it will let Apache handle the request

Re: Idea of an apache module

2000-07-12 Thread darren chamberlain
Luis Henrique Cassis Fagundes ([EMAIL PROTECTED]) said something to this effect: How do I use Apache::Registry to cache pages in disk? The module I have in mind is something transparent to the programmer, you just tell apache that some CGI (or PHP, or any request) will be cached and

access control by using a name list File in AFS?

2000-07-12 Thread Sam Xie
Hi! There, I am trying to set the web access control by using a name list file in AFS. I don't know how to handle this issue. It will be gratefull if somebody can help. Many Thanks! Sam

Re: Idea of an apache module

2000-07-12 Thread Pramod Sokke
So is it true that Netscape has a better performance than Apache 1.3? Here, we are trying to move over from Netscape to Apache not so much coz of performance issues with the web server, but more to add mod_perl/fastcgi and cool stuff like that. -Pramod At 12:18 PM 7/12/00 +0200, Luis Henrique

Re: Idea of an apache module

2000-07-12 Thread Matt Sergeant
On Wed, 12 Jul 2000, Luis Henrique Cassis Fagundes wrote: Hi, The module would handle the requests before any other modules and check in its database if there is a cached page for that request uri. If the page is cached, it will send the cached page and return DONE. What if the

Re: Idea of an apache module

2000-07-12 Thread Ken Williams
[EMAIL PROTECTED] (darren chamberlain) wrote: Luis, Write a handler (or cgi script, or registry script, or NSAPI plugin, or PHP page) that handles 404 Errors, generates the (static) page, and writes it to the location in the file system where the requested page should live. The next time it is

Apache::session and Apache::DBI Fixed - Thanks for the help everyone

2000-07-12 Thread Chad Billigmeier
Thank you for helping me fix this. It is an integral part of a rearchitecture plan. Chad Alan Prey - Plead Anarchy, it worked for me.

mod_perl make test fails from URI

2000-07-12 Thread fplunket
modperl version 1.24 perl 5.6.0 apache 1.3.12 Solaris 5.7 URI 1.07 I am receving the following error message when running make test: /home/apache_1.3.12/src/httpd -f `pwd`/t/conf/httpd.conf -X -d `pwd`/t httpd listening on port 8529 will write error_log to: t/logs/error_log letting apache

Where to get benchmarking utilities?

2000-07-12 Thread Rich Lemanski
Hello all, I just visited Stas Bekman's Benchmarking Applications page at: http://thingy.kcilink.com/modperlguide/performance/Benchmarking_Applications.html I was wondering where I can download those benchmarking utilities ApacheBench and Crashme test? From what I can recall, ApacheBench comes

Re: Idea of an apache module

2000-07-12 Thread Leslie Mikesell
According to Ken Williams: Another option is to set up whatever handler you want, on a development or staging server (i.e., not the live one), and grab the pages with lynx -dump or GET or an LWP script, and write them to the proper places in the filesystem where the live server can access

Re: Idea of an apache module

2000-07-12 Thread John Edstrom
Matt Sergeant On Wed, 12 Jul 2000, Luis Henrique Cassis Fagundes wrote: How do I use Apache::Registry to cache pages in disk? The module I have in mind is something transparent to the programmer, you just tell apache that some CGI (or PHP, or any request) will be cached and

Re: Idea of an apache module

2000-07-12 Thread darren chamberlain
Luis Henrique Cassis Fagundes ([EMAIL PROTECTED]) said something to this effect: Hi, The module would handle the requests before any other modules and check in its database if there is a cached page for that request uri. If the page is cached, it will send the cached page and

Re: Idea of an apache module

2000-07-12 Thread darren chamberlain
John Edstrom ([EMAIL PROTECTED]) said something to this effect: The problem here is that you can't simply cache the page, because the server and even the script can't know when to replace the cached page until after its heard from the database or the source that is feeding the database. It

Re: The Eagle has landed!

2000-07-12 Thread Roger Espel Llima
Dan Rench [EMAIL PROTECTED] wrote: According to pages 500-501 in the Eagle book, changes made to @INC from PerlRequire'd code don't stick. That is strange, because it seems to work here. I have PerlRequire /www/perl/perlstart.pl in my httpd.conf, and perlstart.pl starts with

Re: Idea of an apache module

2000-07-12 Thread aaron
at a time earlier than now, darren chamberlain wrote: Write a handler (or cgi script, or registry script, or NSAPI plugin, or PHP page) that handles 404 Errors, generates the (static) page, and writes it to the location in the file system where the requested page should live. The next time

Re: Idea of an apache module

2000-07-12 Thread David Hodgkinson
Ken Williams [EMAIL PROTECTED] writes: Putting squid in front of an Apache server used to be very popular - has it fallen out of favor? Most of the answers given in this thread seem to be more of the roll-your-own-cache variety. Squid's OK provided you can coax Apache to send the header

Re: Idea of an apache module

2000-07-12 Thread aaron
Or have them be resident in memory, which squid can do. Why reinvent this? b/c to use squid, you have to be able to use HTTP headers to do cache validation. sometimes that works, sometimes it doesn't. Putting squid in front of an Apache server used to be very popular - has it fallen

ANNOUNCE: CGI::Application 1.1

2000-07-12 Thread Jesse Erlbaum
Release version 1.1 of CGI::Application is now available via CPAN! Download site for CGI::Application: http://www.cpan.org/authors/id/J/JE/JERLBAUM/ Changes: - Tweaked test.pl to avoid CGI.pm command line debugging interface which requires user to hit CTRL-D to continue

Re: Idea of an apache module

2000-07-12 Thread aaron
at a time earlier than now, darren chamberlain wrote: How are your files uploaded? If you use some sort of an automated system, add a line to delete or rename or whatever the current version of the file, so that when the URI gets called again, it is regenerated. Or, if you generate the

Re: Idea of an apache module

2000-07-12 Thread Luis Henrique Cassis Fagundes
The idea of a 404 handler will fit perfectly with mod_rewrite: I can create a 404 handler that writes the page to a static file and to the browser and a rewrite rule that redirects request of the dynamic page to the static page. The only problem is one I already had trying to

Re: Idea of an apache module

2000-07-12 Thread Sergey V. Kolychev
On 12 Jul 2000 [EMAIL PROTECTED] wrote: Hi, The module would handle the requests before any other modules and check in its database if there is a cached page for that request uri. If the page is cached, it will send the cached page and return DONE. If the page is not cached, it

detecting memory leaks

2000-07-12 Thread Rob Egan
Hi, I have an Apache 1.3.12 server running on a Sun e450 with Solaris 7, Perl 5.6.0, and mod_perl 1.24. When I was testing the server everything seemed to be ok, but once I moved the real content (including a bunch of perl CGI scripts) onto it, I noticed that memory slowly gets eaten up. If I do

DBI:mysql question

2000-07-12 Thread Rob Tanner
I want to use advisory locks in MySQL. The functuion is GET_LOCK(), and the way it should be used is SELECT GET_LOCK(). It return 1 is successful, 0 if timed out, and undef on error. The sequence: my $db_lock = 'GET_LOCK("mylock", 5)'; my $result = $dbh-do($db_lock); returns "1" regardless

Re: Idea of an apache module

2000-07-12 Thread Pramod Sokke
So is it true that Netscape has a better performance than Apache 1.3? Here, we are trying to move over from Netscape to Apache not so much coz of performance issues with the web server, but more to add mod_perl/fastcgi and cool stuff like that. -Pramod At 12:18 PM 7/12/00 +0200, Luis Henrique

Re: DBI:mysql question

2000-07-12 Thread Dana Powers
You'll need to use $sth = $dbh-prepare(...); and $sth-execute(); Then ($lock) = $sth-fetchrow_array(); and $sth-finish(); $dbh-do assumes that you are inserting or updating and so you dont expect any results back. A GET_LOCK does not work like that, as you have noted, so you will need to treat it

Re: DBI:mysql question

2000-07-12 Thread Chip Turner
Rob Tanner [EMAIL PROTECTED] writes: I want to use advisory locks in MySQL. The functuion is GET_LOCK(), and the way it should be used is SELECT GET_LOCK(). It return 1 is successful, 0 if timed out, and undef on error. The sequence: my $db_lock = 'GET_LOCK("mylock", 5)'; my $result =

Re: [OT] DBI:mysql question

2000-07-12 Thread Ken Williams
[EMAIL PROTECTED] (Chip Turner) wrote: A one-line example of this can be tested by running the following in two shell windows: $ perl -MDBI -e 'my $dbh = DBI-connect("DBI:mysql:mysql", "yy", "xx"); my $sth = $dbh-prepare("SELECT GET_LOCK(\"mysql\", 5)"); $sth-execute; my ($lock) =

Re: Idea of an apache module

2000-07-12 Thread Rob Tanner
--On Wednesday, July 12, 2000 4:14 PM -0700 Pramod Sokke [EMAIL PROTECTED] wrote: So is it true that Netscape has a better performance than Apache 1.3? Don't know. Haven't seen any benchmark data. However, there is a need to define one's terms as well. Probably, the Netscape (now Iplanet)

Re: DBI:mysql question

2000-07-12 Thread Rob Tanner
Thanks Dana and Chip. That did it! --On Wednesday, July 12, 2000 4:25 PM -0700 Dana Powers [EMAIL PROTECTED] wrote: You'll need to use $sth = $dbh-prepare(...); and $sth-execute(); Then ($lock) = $sth-fetchrow_array(); and $sth-finish(); $dbh-do assumes that you are inserting or updating

Re: best encryption module

2000-07-12 Thread Rudy R
Probably, you don't even need (or want) to encrypt the password. Rather, all you want is a MAC for the password the user supplies. In this case, use MD5. Rudy clayton cottingham aka drfrog wrote: whats the best encryption module for use with mod perl? i want to encrypt passwords store in

Re: Idea of an apache module

2000-07-12 Thread Jason Bodnar
On 12-Jul-2000 Rob Tanner wrote: --On Wednesday, July 12, 2000 4:14 PM -0700 Pramod Sokke [EMAIL PROTECTED] wrote: So is it true that Netscape has a better performance than Apache 1.3? But, scalibility in a large site depends an awful lot on all kinds of things over and above the WEB

Improving cache coherency [Was: Idea of an apache module]

2000-07-12 Thread Barrie Slaymaker
aaron wrote: for example, in discussion software you have a very clear moment when you want to invalidate specific pages: when a message arrives. now i don't want squid or any other cache to even check w/ every request. i know darn well when the cache is no longer valid! I've been

[New Module] Apache::Motd

2000-07-12 Thread Carlos Ramirez
I wrote an Apache Perl Module that I think can be of use to others who maintain webservers and once in a while have to notify web users with an urgent message. This module is currently being on the servers I maintain. The proposed module name is Apache::Motd (Message of the Day). It basically

Re: Why mod_perl does not like File::Recurse module?

2000-07-12 Thread Alexei V. Barantsev
Ken Williams [EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Alexei V. Barantsev) wrote: Jerrad Pierce [EMAIL PROTECTED] writes: On 11 Jul 2000, Alexei V. Barantsev wrote: From command line all is ok HTML LANG="en-US"HEADTITLEUntitled Document/TITLE