loading mod_perl DSO on a per-virtualhost basis?

2000-01-26 Thread Thomas Corte
Hello, I'd like to configure my apache installation (which contains several virtualhosts) to use mod_perl (compiled as DSO) only with _some_ of the virtualhosts, but not all of them. That is, I'd like to put a LoadModule directive into those virtualhost sections which use mod_perl and leave it

Re: loading mod_perl DSO on a per-virtualhost basis?

2000-01-26 Thread Bruno Connelly
Thomas I'd like to configure my apache installation (which contains Thomas several virtualhosts) to use mod_perl (compiled as DSO) only Thomas with _some_ of the virtualhosts, but not all of them. Apache fork()s children to handle requests, hence they are all exact copies of the parent

Re: loading mod_perl DSO on a per-virtualhost basis?

2000-01-26 Thread Thomas Corte
Hi, On Wed, 26 Jan 2000, Bruno Connelly wrote: You could always run separate Apache instances per vhost. :-) Thanks for your comments. From the added ":-)", I derive that this may not be common practice :) However, if I'd like to do so, I'd have to split up my httpd.conf into a part with

Re: loading mod_perl DSO on a per-virtualhost basis?

2000-01-26 Thread Bruno Connelly
Bruno You could always run separate Apache instances per vhost. :-) Thomas From the added ":-)", I derive that this may not be common Thomas practice :) It's not uncommon, I'm just making the assumption that if you're worried about resource consumption, this might not your desired

self url

2000-01-26 Thread Vladimir Ivaschenko
Hello, Is there a way to get the URL of the current document in Embperl? Sort of like $q-self_url in CGI.pm. Vladimir

Re: self url

2000-01-26 Thread Ilya Obshadko
Hello Vladimir, ñðåäà, 26 ÿíâàðÿ 2000 ã., you wrote: VI Is there a way to get the URL of the current document in Embperl? Sort of like $q-self_url in CGI.pm. Hmmm. Maybe [- $req_rec-uri -] could help? ($req_rec represents apache request_rec object in Embperl). Best regards, Ilya

Re: Apache problem with mod_example

2000-01-26 Thread G.W. Haywood
Hi there, Mail to your address keeps coming back with fatal errors, so I'm sending this to the mod_perl List in the hope that we have more luck. 73, Ged. On Wed, 26 Jan 2000, Mail Delivery Subsystem wrote: The original message was received at Wed, 26 Jan 2000 08:59:57 GMT from ged@localhost

RE: self url

2000-01-26 Thread Gerald Richter
VI Is there a way to get the URL of the current document in Embperl? Sort of like $q-self_url in CGI.pm. Hmmm. Maybe [- $req_rec-uri -] could help? ($req_rec represents apache request_rec object in Embperl). Or $ENV{SCRIPT_NAME} or $ENV{REQUEST_URI} depending on what you need may also

Virtual Hosting with Mod_perl?

2000-01-26 Thread David Jourard
Hi, I know its a bit off-topic (my apologies) but I thought that for sure someone from the list could recommend a web-hosting company that has a virtual host account with mod_perl and SQL such as mySQL, mSQL and/or Oracle, and possibly with your own apache web server, and of course good

Re: ANNOUNCE: HTML::Mason 0.8

2000-01-26 Thread Jonathan Swartz
Good question! I ran a test on my Linux box and it seems to work there, anyway. The test repeatedly caused the cache to dump items by loading more components that it could handle. After a few iterations the process size maxed out at 6 MB. So it looks like the subroutines do get freed. If I

Re: Virtual Hosting with Mod_perl?

2000-01-26 Thread Gustav Kristoffer Ek
On Wed, 26 Jan 2000, David Jourard wrote: I know its a bit off-topic (my apologies) but I thought that for sure someone from the list could recommend a web-hosting company that has a virtual host account with mod_perl and SQL such as mySQL, mSQL and/or Oracle, and possibly with your own

Re: loading mod_perl DSO on a per-virtualhost basis?

2000-01-26 Thread Kees Vonk 7249 24549
However, if I'd like to do so, I'd have to split up my httpd.conf into a part with mod_perl-using-vhosts and a part with the remaining vhosts and setup 2 startup scripts for 2 separate apache instances, both listening on port 80 (or 443 for https). I think you might find the answer to this

httpsd with my content handler immediately dumps core- likely causes?

2000-01-26 Thread John Walker
Hi, I've written an Apache perl module. The module is supposed to look at the request, and do some DBI selects in an MySQL table, then display them with HTML::Template. There were initially some issues with scoping, I hacked through these and eventually get the module to compile without all the

Re: [ID 20000118.004] DynaLoader doesn't dlclose XS code on interpreter

2000-01-26 Thread Daniel Jacobowitz
On Wed, Jan 26, 2000 at 04:06:29PM +, Alan Burlison wrote: Gurusamy Sarathy wrote: Scheduling dlclose()s using call_atexit() ought to work. I'm going to let the interested parties test that and send me a patch. Is anyone up for this? I'm in the US this week, so I'm not able to

problem with variables sticking.

2000-01-26 Thread Etienne Pelaprat
Hi, this is a huge problem. I have a module written a module with a form on it, and for some reason or another if one user fills out the form and presses the submit button (doing its stuff), and then another different user happens to access that same module to display the same form at

Re: loading mod_perl DSO on a per-virtualhost basis?

2000-01-26 Thread G.W. Haywood
Hi Thomas, On Wed, 26 Jan 2000, James G Smith wrote: Thomas Corte [EMAIL PROTECTED] wrote: So, if I switch to DSOs for (at least) mod_ssl and mod_perl, can I expect to decrease top's values above significantly? I don't think so. My understanding of DSOs in Apache was to allow inclusion of

Re: numerous segv's, bus error

2000-01-26 Thread DeWitt Clinton
[apologies if people get this twice -- it seemed to bounce the first time] We've been getting many segv's and bus errors on apache processes since adding modperl. Env: Apache 1.3.11 (though we had the same thing under 1.3.9.), Perl 5.005003, modperl 1.21, hpux 11.00. If you compare this to

OT: mod_proxy socket error

2000-01-26 Thread Ian Struble
Hi all, I have been getting the following error when I try to do some stress testing on a machine: [error] [client 10.1.1.1] (55)No buffer space available: proxy: error creating socket Basically the box is just the front end proxy to a backend process that is running on another machine. It

Re: make test

2000-01-26 Thread Ilan Bar-On
That was a good guess. In fact I had the following definition in my /etc/hosts 127.0.0.1 localhost.localdomain local is seems that the alias localhost is important. Thanks. Ilan - Original Message - From: Stas Bekman [EMAIL PROTECTED] To: Bruno Connelly [EMAIL PROTECTED]

Re: Running 2 httpd on one mache question.

2000-01-26 Thread Joshua Chamas
"Martin A. Langhoff" wrote: Hi all, I've read all the documentation on how to run 2 different httpd, one for lightweight serving and a mod_perl enabled daemon. Also read the threads about this last weeks. But there's one thing that I can't imagine. When I run top, how do I

Re: loading mod_perl DSO on a per-virtualhost basis?

2000-01-26 Thread Thomas Corte
Hello, On Wed, 26 Jan 2000, G.W. Haywood wrote: If not, what is the real benefit of DSO It's intended to save memory, by sharing it between processes. Well, this is exactly what I want :). Currently, I have mod_ssl and mod_perl linked statically into my httpd binary (under HP/UX 11),

Re: problem with variables sticking.

2000-01-26 Thread Joshua Chamas
Etienne Pelaprat wrote: Hi, this is a huge problem. I have a module written a module with a form on it, and for some reason or another if one user fills out the form and presses the submit button (doing its stuff), and then another different user happens to access that same module to

SIG __WARN__ and (unrelated) mail digest

2000-01-26 Thread John A. Hempe
How do I get a friggin' daily digest of this barfimonious list instead of the full barf? Just for something more on topic, how do I disable specific warnings in mod_perl? Bad and weird things seem to happen when I try to handle SIG{__WARN__} even when I hide it as local. Is there any other

several program w/ mod_perl

2000-01-26 Thread vinecent hong
Hello, while I begin to write some test perl script to test mod_perl after read necessary document,still get folloing error.please correct my error(maybe silly one) Following is my problem while using mod_perl. apache 1.3.3 + mysql 2.22 + RH 6.0 + modperl 1.21 + perl 5.005_3 Modperl build w/

Re: PLEASE HELP - ERROR Linking Apache with mod_perl

2000-01-26 Thread Stas Bekman
Asghar, I've answered this question a few days ago - look at the archives! (hint: perl.apache.org) search for PL_perl_destruct_level (it'll show up in the next guide's release) I hope somebody could respond to this problem. I get the following link error when I try to make apache_1.3.9

Re: Virtual Hosting with Mod_perl?

2000-01-26 Thread Brad Cox
I think Minerva has what you need. Chantilly Virginia. http://www.minerva.net. Haven't tried their virtual hosting though, just their colocation for a physical host. At 10:01 AM -0500 01/26/2000, David Jourard wrote: Hi, I know its a bit off-topic (my apologies) but I thought that for sure

Re: problem with variables sticking.

2000-01-26 Thread Stas Bekman
this is a huge problem. I have a module written a module with a form on it, and for some reason or another if one user fills out the form and presses the submit button (doing its stuff), and then another different user happens to access that same module to display the same form at

efficiency questions (templates, regexes, db calls)

2000-01-26 Thread Steven Champeon
Hi, gang. I'm working on my first serious mod_perl app, and have a few questions regarding efficiency -- basically looking for traps I may not have internalized after reading the mod_perl_traps page and so forth. I'm developing a site that will use MySQL on the backend to store some info

Re: Results of calling perl_shutdown in mp_dso_unload

2000-01-26 Thread Doug MacEachern
On Fri, 21 Jan 2000, Daniel Jacobowitz wrote: (with appropriate changes to unload DSOs after shutting down perl, of course). I still get memory leakage - that's not terribly surprising - but it is much less. It's on the order of about 24K/restart and is probably the fault of some module

RE: mod_perl 1.21 - CGI.pm 2.56 error in phase other than conten t

2000-01-26 Thread Doug MacEachern
from chapter 9 of wrapmod: There are a number of standard variables that Apache adds to the environment prior to invoking the content handler. These include DOCUMENT_ROOT and SERVER_SOFTWARE. By default, the complete C%ENV hash is not set up until the content response phase. Only variables set

Re: PerlRun and Exporter() vars

2000-01-26 Thread Doug MacEachern
On Mon, 27 Dec 1999, John M Vinopal wrote: More about the undef of package variables. Sure enough, the variables are nuked in PerlRun::flush_namespace(). This can be inhibited by removing them from the script's namespace before termination: my $name = __PACKAGE__ . '::';

Re: efficiency questions (templates, regexes, db calls)

2000-01-26 Thread Cliff Rayman
did you check out? http://search.cpan.org/search?dist=HTML-Template this might do most of what you need, and handle some things you haven't thought of yet. cliff rayman genwax.com Steven Champeon wrote: Hi, gang. I'm working on my first serious mod_perl app, and have a few questions

Re: Results of calling perl_shutdown in mp_dso_unload

2000-01-26 Thread Daniel Jacobowitz
On Wed, Jan 26, 2000 at 08:13:41PM -0800, Doug MacEachern wrote: right, that's one of the reasons restarts are a noop for mod_perl by default (not including dso-magic) Makes sense. Here's a question - an apache patch should be able to mark the module as not-to-unload (although since it should

Re: Status in httpd access log

2000-01-26 Thread Doug MacEachern
have a look at Apache::RedirectLogFix On Thu, 6 Jan 2000, Mark Nudelman wrote: I'm writing my first module using modperl, so I'm probably doing something really wrong, but I haven't been able to figure this out. I want my script to return an HTTP error code to the client, and I want that

Re: Perl modules in apache configuration

2000-01-26 Thread Doug MacEachern
if you compile modperl with PERL_TRACE=1 and setenv MOD_PERL_TRACE s then you should see some useful diagnostics when mod_perl is processing Perl sections. On Sun, 9 Jan 2000 [EMAIL PROTECTED] wrote: Hello! I'm trying to configure httpd.conf using Perl sections (mod_macro is not enough for

Re: Memory leak/server crashes

2000-01-26 Thread Doug MacEachern
there are hints in the SUPPORT doc on how to debug such problems. there was also several "Hanging process" threads in the past weeks with more tips, search in the archives for keywords gdb, .gdbinit, curinfo if you can get more insight from those tips, we can help more. On Sun, 9 Jan 2000,

Re: Help

2000-01-26 Thread Doug MacEachern
sounds like your script is running under mod_cgi, not mod_perl On Tue, 11 Jan 2000, Akio wrote: I´m programming in mod_perl and I'm trying to use libapreq-0.31 but when I call method new, I get the msg "Can't locate object method "new" via package "Apache::Request"". The package

Re: problems with module at root of web site

2000-01-26 Thread Doug MacEachern
On Wed, 12 Jan 2000, Sean Chittenden wrote: Mind if I ask a nit-pick of a performance question? Currently speed and performance are of upmost importance (I'm currently involved in a mod_perl vs JServ development race). That being said, isn't pushing a handler onto the request stack

RE: mod_perl bug (mod_perl 1.21; Apache 1.3.9).

2000-01-26 Thread Doug MacEachern
On Wed, 19 Jan 2000, John Hughes wrote: what happens if you preload Apache::Registry in httpd.conf: PerlModule Apache::Registry Didn't try that. But code examination seems to imply that it would have no effect. 1. Apache::Registry gets run, so: unless (defined

Re: Suggested improvements to RegistryLoader.pm - stuff for virtualhosts

2000-01-26 Thread Doug MacEachern
On Wed, 19 Jan 2000, John Hughes wrote: It would be nice if RegistryLoader.pm let me load a script for a virtual host in such a way that I didn't have to worry about how they were represented. Something like: my $r = Apache::RegistryLoader-new; $r-handler($uri, $filename,

Re: Problems w/ CGI under mod_perl

2000-01-26 Thread Doug MacEachern
perhaps you should call Apache-request-new($r)-register_cleanup(\CGI::_reset_globals); there is no Apache::new method the problem here (which has come up many times in the past), is that CGI.pm uses the Apache-request method to get a reference to the global $r. this normally isn't set

Re: horrible memory consumption

2000-01-26 Thread Doug MacEachern
have a look at the Apache::Status in the cvs tree, there are hooks into B::TerseSize which is used to measure Perl memory usage. On Wed, 19 Jan 2000, Jason Terry wrote: Is there a way I can tell where my memory usage is going in an Apache child? I have a server that starts with acceptable

Re: send_fd and timeout problem

2000-01-26 Thread Doug MacEachern
On Thu, 20 Jan 2000, Martin Lichtin wrote: Doug MacEachern wrote: mod_perl doesn't set it's own alarm when $r-send_fd is called. did you call $r-print or print before hand? Hmm, no, I do something like this: $r-content_type('application/octet-stream'); my($size) = -s $fh;

Re: Performance ?'s regarding Apache::Request

2000-01-26 Thread Doug MacEachern
On Thu, 20 Jan 2000, Clifford Lang wrote: mod_perl 1.21 Apache 1.3.9 Solaris 2.5.1, Linux 6.0 Is this a good or bad idea? I want to create an inheritable module based on Apache::Request mainly for uploading files, then create individual PerlHandler modules for individual page content.

Re: Can't exec programs ?

2000-01-26 Thread Doug MacEachern
On Thu, 20 Jan 2000, Pierre-Yves BONNETAIN wrote: [EMAIL PROTECTED] said: you'll get a better idea of the problem running strace (or truss) against the server. in any case, you should avoid any code that's forking a process, since it's throwing performance out the window. Is

Re: problem

2000-01-26 Thread Doug MacEachern
On Thu, 20 Jan 2000, Etienne Pelaprat wrote: Hi All, I've hit a problem that I can't seem to rectify. I compile mod_perl with EVERYTHING=1, but in one of my modules, I get the error: [Wed Jan 19 20:30:05 2000] null: Rebuild with -DPERL_STACKED_HANDLERS to $r-push_handlers at

Re: problem

2000-01-26 Thread Doug MacEachern
On Thu, 20 Jan 2000, Cliff Rayman wrote: unfortunately PERL_STACKED_HANDLERS used to be experimental and therefore EVERYTHING includes just about EVERYTHING except PERL_STACKED_HANDLERS. i think you need to add PERL_STACKED_HANDLERS=1 to your long list of Makefile.PL parameters. this

Re: CGI.pm and QUERY_STRING fixup

2000-01-26 Thread Doug MacEachern
On Mon, 24 Jan 2000, Bill Moseley wrote: ... Under mod_cgi I can clean up $ENV{QUERY_STRING} at the start of a program by removing leading '' and double '', but that doesn't work, obviously, under mod_perl. Could someone suggest a way to clean up the query string from within an

Re: CGI.pm and QUERY_STRING fixup

2000-01-26 Thread Doug MacEachern
On Tue, 25 Jan 2000, Bill Moseley wrote: Ok, this seems to work, but perldoc Apache doesn't say anything about setting it. Is this at risk of not working in the future? you can set $r-args, that won't be going away in the future.

Re: Apache::AuthCookie takeover?

2000-01-26 Thread Doug MacEachern
On Tue, 25 Jan 2000, Ken Williams wrote: Can someone set the maintainer of Apache::AuthCookie to be me? patch below :) thanks Ken!! diff -u -u -r1.63 apache-modlist.html --- apache-modlist.html 1999/11/24 02:40:01 1.63 +++ apache-modlist.html 2000/01/27 05:19:27 @@ -114,7 +114,7 @@ *

Re: self url

2000-01-26 Thread Doug MacEachern
On Wed, 26 Jan 2000, Vladimir Ivaschenko wrote: Hello, Is there a way to get the URL of the current document in Embperl? Sort of like $q-self_url in CGI.pm. from chapter 9 of wrapmod: If the URI argument is omitted, the Iparse() method will construct a fully qualified URI from B$r

Re: numerous segv's, bus errors

2000-01-26 Thread Doug MacEachern
On Wed, 26 Jan 2000, Steven Parkes wrote: We've been getting many segv's and bus errors on apache processes since adding modperl. Env: Apache 1.3.11 (though we had the same thing under 1.3.9.), Perl 5.005003, modperl 1.21, hpux 11.00. At first most of the failures were coming within

Re: Results of calling perl_shutdown in mp_dso_unload

2000-01-26 Thread Doug MacEachern
On Wed, 26 Jan 2000, Daniel Jacobowitz wrote: Here's a question - an apache patch should be able to mark the module as not-to-unload (although since it should be not-to-unload-unless-removed-from-config it would be a bit more complicated than that - still not impossible). But is that

Re: Results of calling perl_shutdown in mp_dso_unload

2000-01-26 Thread Jim Winstead
On Jan 26, Doug MacEachern wrote: =item anoncvs To checkout a fresh copy from anoncvs use cvs -d "pserver:[EMAIL PROTECTED]:/home/cvspublic" login with the password "anoncvs". cvs -d "pserver:[EMAIL PROTECTED]:/home/cvspublic" co modperl Both of those should have another colon

Re: using socket on NT's mod-perl

2000-01-26 Thread Joshua Chamas
Huan He wrote: Hello All, Does anyone ever write a TCP socket program in mod-perl module on NT ? In my program, I use socket in phase PerlAccessHandler to connect to a remote socket server, the socket in mod-perl can be opened and connected, but when I try to write message to the remote