Re: [RFC] Swapping Prevention

2000-06-20 Thread Tom Brown
On Tue, 20 Jun 2000, Joshua Chamas wrote: > > your machine. Therefore you should configure the server, so that the > > maximum number of possible processes will be small enough using the > > C directive. This will ensure that at the peak hours the > > system won't swap. Remember that swap space i

Multiple module configuration directive problem

2000-06-20 Thread Rob Tanner
I have two different but related modules to be installed on the same server. Both of them need access to the same database and run as the same admin user. Since one of the items each needs to know is a password that is root protected, configuration is done through custom directives rather th

Session Cookies

2000-06-20 Thread Pierre J. Nicolas
Could someone please tell me how to set session cookies under cookies. I only want the cookie to be valid for the current browser session. Let's say I have 10 browsers open "simultaneously," 5 netscapes and 5 IE and they're each looking at the same page (calling the same program). I want to be abl

Re: DBD::Sybase problem

2000-06-20 Thread Alex Farber
Hi, Jie Gao wrote: > > Server starts ok and all goes well; but after a few hours I get server > > errors, with the following in the error_log: > > ct_cancel(CONN,ALL): user api layer: external error: There is a usage error. This >routine has been called > > at an illegal time. isn't it http:/

Re: [RFC] Swapping Prevention

2000-06-20 Thread Joshua Chamas
> your machine. Therefore you should configure the server, so that the > maximum number of possible processes will be small enough using the > C directive. This will ensure that at the peak hours the > system won't swap. Remember that swap space is an emergency pool, not > a resource to be used ro

Re: DBD::Sybase problem

2000-06-20 Thread Jie Gao
Hi All, Following up the attached message I posted a couple of weeks ago, I found if the database was taken down during the lifetime of the Web server, this problem would pop up, even if the db was taken up again. Cheers, Jie On Fri, 9 Jun 2000, Jie Gao wrote: > Date: Fri, 9 Jun 2000 18:26:4

Re: hello world benchmarks...

2000-06-20 Thread Joshua Chamas
Thanks Rudy! Any way you could throw some of the others into the mix, like Apache::ASP, Embperl, Mason, Registry CGI ? The more data there is, the more useful the benchmarks are, since some of the greatest value comes from how they compare on the same system. I understand if not since these ben

Re: Exec Format Error

2000-06-20 Thread Blue
On Tue, 20 Jun 2000, Ravi Pandey wrote: > I am in process of moving all my CGI scripts to mod-perl. I get the > following error from a CGI script when executed in mod-perl environment. > I am using Apache 1.3.12 and mod-perl 1.24. > > /usr/lib/dld.sl: Can't shl_load() a library containing Threa

Exec Format Error

2000-06-20 Thread Ravi Pandey
Hi, I am in process of moving all my CGI scripts to mod-perl. I get the following error from a CGI script when executed in mod-perl environment. I am using Apache 1.3.12 and mod-perl 1.24. /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libcl.2 /usr/lib/dld

hello world benchmarks...

2000-06-20 Thread Rudy
Here are some new stats for Joshua's benchmarks: http://www.chamas.com/bench/index.html -- Machine: OS: FreeBSD 4.0-STABLE cpu: PII-300 session: no client: ab From: local Notes: I had to tune the TCP/IP stack... FreeBSD straight off the web does not ha

Re: [RFC] Swapping Prevention

2000-06-20 Thread Barrie Slaymaker
A nit: the distinction between paging and swapping doesn't seem clear to me. You describe the paging process, then talk about how you should never swap. Or maybe that's too detailed for your intended audience. - Barrie

Re: garbled redirections

2000-06-20 Thread Eric Cholet
> Hello, all. > > First, the problem: > > [Tue Jun 20 09:06:55 2000] [error] [client 90.17.209.65] Invalid error > redirection directive: üØ@ > > > üØ@? Let me assure you, "üØ@" isn't in my code anywhere. =o) > > I a

Re: Any harm with PerlRun AND Registry AND regular cgi on the same server?

2000-06-20 Thread E.S.
AFAIK, no... we've got a site that's running both regular CGI and Registry with no problems; I wouldn't expect it to be any different if you throw a PerlRun in there... e. On Tue, 20 Jun 2000, Ron Pero wrote: > There is plenty of very helpful documentation about converting cgi scripts > to reg

Any harm with PerlRun AND Registry AND regular cgi on the same server?

2000-06-20 Thread Ron Pero
There is plenty of very helpful documentation about converting cgi scripts to registry scripts, and using PerlRun. But I have been called upon to convert an existing web site so that mod_perl is installed, with some scripts running under PerlRun, some under Registry, and (due to laziness, I think)

Re: garbled redirections

2000-06-20 Thread Paul
--- Eric Cholet <[EMAIL PROTECTED]> wrote: > > Hello, all. > > > > First, the problem: > > > > [Tue Jun 20 09:06:55 2000] [error] [client 90.17.209.65] Invalid > error redirection directive: üØ@ > > > > > > üØ@? Let

Re: DBI connect_cached vs Apache::DBI

2000-06-20 Thread Perrin Harkins
On Tue, 20 Jun 2000, Andrew Dunstan wrote: > > The DBI manpage says this: > > connect_cached is like connect, except that the database handle returned is > also stored in a hash associated with the given parameters. If another call > is made to connect_cached with the same parameter values, the

Re: document contained no data

2000-06-20 Thread Blue
On Tue, 20 Jun 2000, Steven Zhu wrote: > Hi, All: > We have a coffee site with apache_1.3.9, modperl_1.2.1 and mysql > database. upgrade that suff. :) > "The document contained no data Try again later, or contact the server's > administrator". It seems that the print statement does not work fi

document contained no data

2000-06-20 Thread Steven Zhu
Hi, All: We have a coffee site with apache_1.3.9, modperl_1.2.1 and mysql database. It works fine in most time. But sometimes it is strange. For instance, the same script works fine sometimes, but sometimes it popups a window with message "The document contained no data Try again later, or contac

[RFC] Swapping Prevention

2000-06-20 Thread Stas Bekman
I've rewritten the guide's swapping section now delving into quite technical details. Please take a moment to review this section and comment on it. I have tried to stay on focus to deliver as much as possible relevant details without actually delving into the fine details of memory management t

Re: garbled redirections

2000-06-20 Thread darren chamberlain
Paul ([EMAIL PROTECTED]) said something to this effect: > Hello, all. > > First, the problem: > > [Tue Jun 20 09:06:55 2000] [error] [client 90.17.209.65] Invalid error > redirection directive: üØ@ > > > üØ@? Let m

garbled redirections

2000-06-20 Thread Paul
Hello, all. First, the problem: [Tue Jun 20 09:06:55 2000] [error] [client 90.17.209.65] Invalid error redirection directive: üØ@ üØ@? Let me assure you, "üØ@" isn't in my code anywhere. =o) I am, however, using a

Bizarre munging of form data

2000-06-20 Thread Eamon Daly
I've just run into the strangest problem I've ever had the misfortune of coming across. I have a form containing a number of various fields, including two radio buttons named "WHO_REGISTERED". Here's the code that parses the data and puts it into a hash: sub get_input { my $apr = Apache::Requ

Installation of mod_perl

2000-06-20 Thread Kiran Banoor
Hi, I am trying to install mod_perl on Sun Solaris/Apache 1.3.4, but am unable to do so. I Make File by setting EVERYTHING=1, & when I Make Test, I get the following error:- letting apache warm up...Syntax error on line 3 of >/web/apache/src/modules/mod_perl-1.22/t/conf/srm.conf: >Invalid command

RE: Problems with AxKit

2000-06-20 Thread Matt Sergeant
On Tue, 20 Jun 2000, Jonas Nordström wrote: > Ok, I have tried that, and now I'm a little bit closer. But when I start the > server, i get the message: > ../bin/apachectl start: httpd could not be started > > No error message and nothing in the logs. If I remove the line "PerlModule > AxKit" fro

RE: Problems with AxKit

2000-06-20 Thread Jonas Nordström
Ok, I have tried that, and now I'm a little bit closer. But when I start the server, i get the message: ../bin/apachectl start: httpd could not be started No error message and nothing in the logs. If I remove the line "PerlModule AxKit" from httpd.conf, then it works... Jonas Nordstrom >

DBI connect_cached vs Apache::DBI

2000-06-20 Thread Andrew Dunstan
The DBI manpage says this: connect_cached is like connect, except that the database handle returned is also stored in a hash associated with the given parameters. If another call is made to connect_cached with the same parameter values, then the corresponding cached $dbh will be returned if it i

Re: Prototype mismatches?

2000-06-20 Thread Martin Wood
Thanks for the info. - mv warnings /mnt/mind/back_of :) > No, nothing to worry about. It's a Perl 5.6 thing, but it's just a > warning, not an error. If the warnings bother you, edit the declarations > in Socket.pm to remove the prototypes (that's what I do, and it works > fine). > > -- > Jere

[OT] linkcheck program from perlmonth

2000-06-20 Thread Geoffrey Young
If anyone is interested, the linkcheck program from the last perlmonth.com issue has been upgraded and made it's way to CPAN... http://www.cpan.org/authors/id/S/SW/SWMCD/linkcheck-1.00 --Geoff

Re: Prototype mismatches?

2000-06-20 Thread Jeremy Howard
> Small problem - if I place a "use IO::Socket" directive in my mod_perl > (Solaris 2.5.1, Apache 1.3.12, mod_perl 1.23, Perl 5.6.0, IO::Socket > 1.20) startup.pl file, the error log groans about several "Prototype > mismatches" :- > <...> > Should I be worried about this? Everything _seems_ okay.

Re: PerlChildInitHandler

2000-06-20 Thread Eric Cholet
> Hi! > > > > Is it possible to pass variables defined with PerlSetVar to a > > > PerlChildInitHandler ? > > > If not, is there any other way to define variables in such a handler than > > > hardcoding values into the .pm? > > > > You can use Apache->server->dir_config() to access per-server conf

Re: Problems with AxKit

2000-06-20 Thread Matt Sergeant
On Tue, 20 Jun 2000, Jonas Nordström wrote: > I have the following config for httpd.conf > > PerlModule AxKit > >SetHandler perl-script >PerlHandler AxKit > ># Setup style type mappings >AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot >AxAddStyleMap application/x-xpa

Problems with AxKit

2000-06-20 Thread Jonas Nordström
I have the following config for httpd.conf PerlModule AxKit SetHandler perl-script PerlHandler AxKit # Setup style type mappings AxAddStyleMap text/xsl Apache::AxKit::Language::Sablot AxAddStyleMap application/x-xpathscript \ Apache:AxKit::Language::XPathScript # Optionall

Re: forking a perl process from modperl to execute a network program

2000-06-20 Thread Barrie Slaymaker
Gac Corp wrote: > but udp socket dies. Does it open the socket ok? How long until it dies? Is it forking again in the C program (perhaps to daemonize)? If you want to instrument your code to see when the filehandle goes away, here's some sample Perl code I use for debugging IPC::Run that you

Prototype mismatches?

2000-06-20 Thread Martin Wood
Hi all, Small problem - if I place a "use IO::Socket" directive in my mod_perl (Solaris 2.5.1, Apache 1.3.12, mod_perl 1.23, Perl 5.6.0, IO::Socket 1.20) startup.pl file, the error log groans about several "Prototype mismatches" :- [Tue Jun 20 11:35:17 2000] Carp.pm: Prototype mismatch: sub Sock

Re: PerlChildInitHandler

2000-06-20 Thread Eric Cholet
> Hi! > > Is it possible to pass variables defined with PerlSetVar to a > PerlChildInitHandler ? > If not, is there any other way to define variables in such a handler than > hardcoding values into the .pm? You can use Apache->server->dir_config() to access per-server config variables. -- Eric

PerlChildInitHandler

2000-06-20 Thread a9403692
Hi! Is it possible to pass variables defined with PerlSetVar to a PerlChildInitHandler ? If not, is there any other way to define variables in such a handler than hardcoding values into the .pm? domm htpp://domm.zsi.at

Re: Help to pinpoint installation problem.

2000-06-20 Thread Stas Bekman
On Mon, 19 Jun 2000, David Jourard wrote: > Hi, > > I've done a little mod_perl last year but forget very quickly and I'm > requesting some guidance to tell me where to start pinpointing a problem. > > I'm looking at an application that is supposedly running mod_perl. > > I"ve just started go

Re: limiting code that DProf profiles

2000-06-20 Thread Stas Bekman
On Mon, 19 Jun 2000, Chris Nokleberg wrote: > > I'm using Apache::DProf to profile a mod_perl script. The specific section > I am looking to improve is hard to get meaningful numbers for, because in > the DProf output it is overwhelmed by the time of child process startup > and other things that

Re: Apache::ASP on Unix

2000-06-20 Thread Julio Sánchez Fernández
Paul Lindner wrote: > No. It does not use visual basic. It uses Perl. Otherwise, all of > the same concepts are there: Application, Session, Request and > Response objects, etc. I have only read the source, but asp2php has an additional program asp2perl that might be used to get a first cut