Re: Apache startup problem with module DBI

2000-02-09 Thread Stas Bekman
I just set up mod_perl_.1.21 with apache_1.3.11 andperl 5.005_03. When trying to start the httpd server, my httpd.conf is calling a perlstartup.pl script where I get the following error. I looked in the file itself and says when finding that error it means an install error with DBI. I

Re: Don't run the modules mod_perl

2000-02-09 Thread Stas Bekman
Hi I had Apache 1.3.6. I executed the following steps for installing Apache 1.3.9. % cd /usr/src % lwp-download http://www.apache.org/dist/apache_1.3.9.tar.gz % lwp-download http://perl.apache.org/dist/mod_perl-1.21.tar.gz % tar zvxf apache_1.3.9.tar.gz % tar zvxf

Commercial app demo

2000-02-09 Thread Matt Sergeant
Has anyone delivered a commericial mod_perl application before? If so, how do you handle demo versions, preferably with expiration dates? One thought is to simply xor encrypt some of the modules when the user downloads it, mail him a key, and use the Filter module to decrypt at runtime using his

Re: exit signal Alarm Clock (14)

2000-02-09 Thread Stas Bekman
Apache/1.3.9 (Unix) mod_perl/1.21 perl 5.005_03 [notice] child pid 16903 exit signal Alarm Clock (14) I'm confused by this one. I was thinking that this was the case of: http://perl.apache.org/guide/debug.html#Handling_the_server_timeout_case Which I though was fixed for $SIG{ALRM}

Re: coderef as arg to $r-custom_response(...)

2000-02-09 Thread Bill Jones
From: [EMAIL PROTECTED] (Randal L. Schwartz) The docs hint that I can use whatever I would put after ErrorDocument as the arg to custom_response, but also suggest that I can put "a module" there. Does that mean it's the same style of argument as a -pushhandler(), where I can also put a

Site unique MAC secret

2000-02-09 Thread Matt Sergeant
Anyone got any good ideas on picking up a site-unique MAC secret. What I need is something that won't change over server software upgrades, but isn't hard coded. At the moment I've picked: use Config; my $secret = Config-myconfig; (output of perl -V) But it's sensitive to perl upgrades. I'm

Re: coderef as arg to $r-custom_response(...)

2000-02-09 Thread Randal L. Schwartz
"Bill" == Bill Jones [EMAIL PROTECTED] writes: From: [EMAIL PROTECTED] (Randal L. Schwartz) The docs hint that I can use whatever I would put after ErrorDocument as the arg to custom_response, but also suggest that I can put "a module" there. Does that mean it's the same style of argument

Re: Site unique MAC secret

2000-02-09 Thread Tom Mornini
On Wed, 9 Feb 2000, Matt Sergeant wrote: Anyone got any good ideas on picking up a site-unique MAC secret. What I need is something that won't change over server software upgrades, but isn't hard coded. At the moment I've picked: use Config; my $secret = Config-myconfig; (output of

Re: Site unique MAC secret

2000-02-09 Thread Matt Sergeant
On Wed, 09 Feb 2000, Doug Kyle wrote: Matt Sergeant wrote: Anyone got any good ideas on picking up a site-unique MAC secret. What I need is something that won't change over server software upgrades, but isn't hard coded. At the moment I've picked: use Config; my $secret =

Re: coderef as arg to $r-custom_response(...)

2000-02-09 Thread Matt Sergeant
On Wed, 09 Feb 2000, Randal L. Schwartz wrote: "Bill" == Bill Jones [EMAIL PROTECTED] writes: From: [EMAIL PROTECTED] (Randal L. Schwartz) The docs hint that I can use whatever I would put after ErrorDocument as the arg to custom_response, but also suggest that I can put "a module"

Re: exit signal Alarm Clock (14)

2000-02-09 Thread Bill Moseley
At 04:34 PM 02/09/00 +0200, Stas Bekman wrote: eval { local $SIG{__DIE__}; local $SIG{ALRM} = CORE::sub { die "Timeout" }; Anonymous sub within package CORE? I've never seen such a code... Oh, that's some old code that I just still use. I assumed it's harmless. The problem was with

Re: Site unique MAC secret

2000-02-09 Thread Matt Sergeant
On Wed, 09 Feb 2000, Doug Kyle wrote: What about generating some value from the MAC address of the server's NIC(s)? ifconifg interface name ether, or arp hostname will return MAC addresses. Doh! Just realised that producing a secret from something that's totally *not* a secret is really

Re: coderef as arg to $r-custom_response(...)

2000-02-09 Thread Tom Mornini
On Wed, 9 Feb 2000, Matt Sergeant wrote: And for those following along, after further study in the source, it looks like custom_response can be only one of three things: a string, an internal URL (internal redirect) or an external URL (external redirect on error). Same thing as a

Re: coderef as arg to $r-custom_response(...)

2000-02-09 Thread Randal L. Schwartz
"Matt" == Matt Sergeant [EMAIL PROTECTED] writes: So, I'm punting. When I get an error, I have to redirect to a URL, which then has to start all over figuring out why they were sent there. Which is not totally bad, because I have to ask the user some questions in a form, and I need to

Re: Site unique MAC secret

2000-02-09 Thread Bill Jones
hostid is read-only, near as I can tell. NAME hostid - print the numeric identifier of the current host SYNOPSIS /usr/bin/hostid DESCRIPTION The hostid command prints the identifier of the current host in hexadecimal. This numeric value is likely to differ when hostid

Re: Site unique MAC secret

2000-02-09 Thread Bill
Matt Sergeant wrote: On Wed, 09 Feb 2000, Doug Kyle wrote: What about generating some value from the MAC address of the server's NIC(s)? ifconifg interface name ether, or arp hostname will return MAC addresses. Doh! Just realised that producing a secret from something that's

Re: Site unique MAC secret

2000-02-09 Thread James G Smith
Matt Sergeant [EMAIL PROTECTED] wrote: On Wed, 09 Feb 2000, Doug Kyle wrote: [snip] What about generating some value from the MAC address of the server's NIC(s)? ifconifg interface name ether, or arp hostname will return MAC addresses. Could potentially change if someone swaps out their

Re: Site unique MAC secret

2000-02-09 Thread Michael Peppler
Bill Jones writes: hostid is read-only, near as I can tell. I seem to remember seeing some code that lets you change the hostid (at least on a Sun), possibly via the PROM monitor. Michael -- Michael Peppler -||- Data Migrations Inc. [EMAIL PROTECTED]-||-

mod_rewrite question..

2000-02-09 Thread Mick B
Hi - I'm probably posting this to the incorrect list (If there is a dedicated apache list would someone please point me in it's direction.) Here's my problem - I'm trying to grab the 'id' part of a url - e.g - www.somewhere.com/id and place the val. into an environment variable - which

Re: Site unique MAC secret

2000-02-09 Thread Bill Jones
[This went off topic, so this is my last contribution; at least until some mod_perl stuff get's added back... :] Matt Sargent wrote - Doh! Just realised that producing a secret from something that's totally *not* a secret is really dumb :) Next option? :) InSecurity.Org - # ifconfig -a

Re: Site unique MAC secret

2000-02-09 Thread Bill Jones
It is interesting to note that according to 'sysdef' - the HostID is not quite the same as the ether MAC. ifconfig -a says: ether 8:0:20:a7:fc:f5 sysdef says HostID 80a7fcf5 Also, on a Sun Ultrasparc, hostid is system dependant and R/O; on an x86, the changes are emulated via an eeprom -i

RE: Installation Problem with mod_perl and another module on Apache

2000-02-09 Thread Bing Wang
Thanks for your response. I have tried "activate-module" and it doesn't work either. I did a ./config.status and then I did a make at apache_1.3.9 directory, I got the following errors after the make command: In file included from mod_perl.c:60: ../../include/mod_perl.h:40: EXTERN.h: No such

Re: Apache/mod_perl install on AIX 4.3.3 failing - maybe compiler?

2000-02-09 Thread Jens-Uwe Mager
On Tue, Feb 08, 2000 at 01:27:39PM -0600, J. Meltzer wrote: How do I make sure that I use xlc to compile apache and mod_perl? Is there a command-line option for it? You need to have xlc installed, it is an extra cost option since AIX 4. If you have both gcc and xlc in your path, I think

Re: Site unique MAC secret

2000-02-09 Thread Matt Sergeant
On Wed, 09 Feb 2000, James G Smith wrote: Somewhat off topic... Using some hardware related information such as NIC info will either break high availability solutions or require such hacks as kernel modifications to allow software setting of the MAC address. Take a look at FlexLM (used

Re: coderef as arg to $r-custom_response(...)

2000-02-09 Thread brian moseley
On Wed, 9 Feb 2000, Matt Sergeant wrote: Can you do an internal redirect and stuff things in pnotes/notes? haven't tried it but dont see why not. you'd just have to use $r-prev-pnotes inside the second request. we actually use err_headers_out in our webmail, but that code was written before

Apach::Session with Sybase?

2000-02-09 Thread David Huang
Dear Mr. Baker: I am trying to use Apache::Session module with a Sybase 11 server, but can't get it to work. I think the problem is with the a_session field type. I tried with text, varchar, varbinary, and binary types but without much luck. Can someone give me some help on this, or point

Re: Apach::Session with Sybase?

2000-02-09 Thread Aaron Ross
hi David! i remember that i couldn't get Sybase to work with Apache::Session b/c the prepare statements use placeholders. you cannot use placeholders with a text field in sybase. from the DBD::Sybase docs: Note that IMAGE or TEXT datatypes can not be passed as parameters when

Re: Apach::Session with Sybase?

2000-02-09 Thread Vladimir Ivaschenko
0 Aaron Ross wrote about "Re: Apach::Session with Sybase?": hi David! i remember that i couldn't get Sybase to work with Apache::Session b/c the prepare statements use placeholders. you cannot use placeholders with a text field in sybase. from the DBD::Sybase docs: Note that

Re: Apach::Session with Sybase?

2000-02-09 Thread Matt Sergeant
On Wed, 09 Feb 2000, Aaron Ross wrote: hi David! i remember that i couldn't get Sybase to work with Apache::Session b/c the prepare statements use placeholders. you cannot use placeholders with a text field in sybase. from the DBD::Sybase docs: Note that IMAGE or TEXT datatypes

Remove brett_mcmahon@placerdome.com from the modperl@apache.org mailing list

2000-02-09 Thread Brett McMahon
Remove [EMAIL PROTECTED] from the [EMAIL PROTECTED] mailing list

Re: Apach::Session with Sybase?

2000-02-09 Thread Mark D. Landry
For the source code to Apache::Session::DBI::Sybase, see http://www.xray.mpe.mpg.de/mailing-lists/dbi/1999-12/msg00289.html

Re: Commercial app demo

2000-02-09 Thread Jeffrey W. Baker
Chip Turner wrote: The problem is that no matter how you encrypt the system, it has to know how to decrypt itself. That is, if you xor, or even used DES or IDEA or whatnot, the key (password, etc) has to be included with the modules, and therefore a suitably sophisticated programmer could

Re: Apache::ASP and PerlSetVar

2000-02-09 Thread Joshua Chamas
Dmitry Beransky wrote: Hi, Is there any way to get to PerSetVar values from ASP? I have a few configuration items that I need to access from both ASP pages and handlers. I'd hate to replicate the same data in two different places: httpd.conf and global.asa. Try

Re: Commercial app demo

2000-02-09 Thread Ken Williams
How about only shipping part of the software, with the remaining part of the software running on your own (not the client) machine? For instance, certain subroutines could be split off, and the input output could be passed back and forth between the client and the vendor. Then you can easily

[SITE] possible structure suggestion

2000-02-09 Thread Robin Berjon
Hello fellow mod_perlians, I know I had promised to send this in by the end of December / early January, I am really late and sorry. I was caught in France by the french army for being an alleged deserteur, and they were *very* insistent on having me stay there. Anyway I'm out now :) Some time

Apache::DBI woes

2000-02-09 Thread Adam Cassar
Hello All, I have been having numerous problems with Apache::DBI, I have tried using PerlRequire startup.pl with startup.pl containing use Apache::DBI; and also tried PerlModule Apache::DBI; in httpd.conf with only this module loaded but to no success. I can load Apache::Registry fine.

AuthenSMb

2000-02-09 Thread sambit
Hi i installed Apache_1.3.11 with openssl-9.04 mod_per and mod_ssl. I checked the command httpd -l found the model mod_perl and mod_ssl is existing. now i want to link/ add Suthensmb modules for the winNT users authentication. but i ma not able to understand how to go with it. can you give

Re: Site unique MAC secret

2000-02-09 Thread Doug Kyle
Matt Sergeant wrote: Anyone got any good ideas on picking up a site-unique MAC secret. What I need is something that won't change over server software upgrades, but isn't hard coded. At the moment I've picked: use Config; my $secret = Config-myconfig; (output of perl -V) But it's

Re: Site unique MAC secret

2000-02-09 Thread Doug Kyle
Matt Sergeant wrote: On Wed, 09 Feb 2000, Doug Kyle wrote: What about generating some value from the MAC address of the server's NIC(s)? ifconifg interface name ether, or arp hostname will return MAC addresses. Doh! Just realised that producing a secret from something that's

RE: Don't run the modules mod_perl

2000-02-09 Thread Kevin Huang
Title: RE: Don't run the modules mod_perl I bet /usr/local/apache/bin is not on your search path, therefore when you do a httpd -v, it fires up the old copy of httpd on, say, /usr/sbin. Add this in /usr/local/apache/conf/httpd.conf: IfModule mod_perl.c Include conf/perl.conf /IfModule

Re: Commercial app demo

2000-02-09 Thread Fabrice Scemama
There's another way. We can't build pre-compiled modules easily, but even when you code in C or Java, desassemblers can extract some source from the binaries you deliver. As far as perl scripts are concerned, a workaround consists in trivially removing all comments and \n from the source, which

Re: Commercial app demo

2000-02-09 Thread Chip Turner
Fabrice Scemama [EMAIL PROTECTED] writes: There's another way. We can't build pre-compiled modules easily, but even when you code in C or Java, desassemblers can extract some source from the binaries you deliver. As far as perl scripts are concerned, a workaround consists in trivially

How can I share mod_perl config info with shell perl processes?

2000-02-09 Thread Clifford Lang
I have data I need access to via WEB or filesystem. or more correctly with email. Since the data lives in Web server territory, my Apache/mod_perl configuration files know where everything is - What I think I would like to do, is when the mail process starts up, I'd like to reach inside of

Re: [SITE] possible structure suggestion

2000-02-09 Thread Ken Williams
[EMAIL PROTECTED] (Robin Berjon) wrote: Some time ago Matt Arnold and I started work with the aim of redesigning the perl.apache.org website. A draft of the proposed layout is sitting at http://modperl.knowscape.org/ . I'm glad to see this text: It's a common misunderstanding that mod_perl

PerlHandler precedence?

2000-02-09 Thread Robert Bedell
Here's the problem. I have a number of cgi scripts I want to run under PerlRun (some under Registry, but not all of them are cleaned up yet), and also run a new Mason interface we've put together. But with the config below, only HTML::Mason processes them. My understanding of SetHandler in

ApacheModulePerl.dll location on apache.org

2000-02-09 Thread kevin carothers
Could someone please tell me where ApacheModulePerl.dll is? Hate to sound so clueless, but I am... Did a search at apache.org with "ApacheModulePerl.dll" and it wasn't there... thanks kevin carothers

Re: [SITE] possible structure suggestion

2000-02-09 Thread Robin Berjon
At 20:06 09/02/2000 -0600, Ken Williams wrote: I'm glad to see this text: It's a common misunderstanding that mod_perl is just a CGI replacement for Perl scripts, this is only a small part implemented by the Apache::Registry module. Well, thanks Ken but I'm afraid you're patting the

Perl and SQL, which is the most scalable SQL server to use?

2000-02-09 Thread Ryan, Aaron
Hi, We have designed a web site creator that uses Perl and DBI to work with MySQL. The integration between the two was great, but recently our website has been over run with users and our poor MySQL database is showing some major slow downs. So we have two possible solutions we are researching.

Re: Perl and SQL, which is the most scalable SQL server to use?

2000-02-09 Thread Leslie Mikesell
According to Ryan, Aaron: We found that we are quicking using up the max connections to the MySQL database and when we raise the max connection, the performance gets worse. What was MySQL designed to handle, should it be able to handle 2000 connections, or is that outside the scope of

Re: ApacheModulePerl.dll location on apache.org

2000-02-09 Thread Randy Kobes
On Wed, 9 Feb 2000, kevin carothers wrote: Could someone please tell me where ApacheModulePerl.dll is? Hate to sound so clueless, but I am... Did a search at apache.org with "ApacheModulePerl.dll" and it wasn't there... Hi, This is the file you would put in your /Apache/modules/

Re: Commercial app demo

2000-02-09 Thread Stas Bekman
Matt Sergeant [EMAIL PROTECTED] writes: Has anyone delivered a commericial mod_perl application before? If so, how do you handle demo versions, preferably with expiration dates? One thought is to simply xor encrypt some of the modules when the user downloads it, mail him a key, and

Re: Apach::Session with Sybase?

2000-02-09 Thread Vladimir Ivaschenko
Wed, Feb 09, 2000 at 04:34:08PM -0500 David Huang ÎÁÐÉÓÁÌ ÐÏ ÐÏ×ÏÄÕ Re: Apach::Session with Sybase? I installed Vladimir's package, and run the main.pl script but got the following error: Can't locate object method "TIEHASH" via package "Apache::Session::DBI::Sybase" at main.pl line 8.