RE: [mp2] segfault when connect to database

2003-08-03 Thread Marc M. Adkins
httpd2 2.0.47, mod_perl 1.99_09 -- httpd does segfault when I try to connect to the database (mysql or interbase). It faults somewhere in libnss_db.so. It works well if I remove libnss_db* from the system. I noticed a while back that when I use

RE: clones and parents

2003-07-18 Thread Marc M. Adkins
So is PerlOptions +Parent working? Whenever I enable it I get a segfault on W2K / Ap2.0.46 / mp1.99.10dev. have you submitted a bug report? http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems I never know whether to submit a bug report or not. Often these things turn

RE: clones and parents

2003-07-18 Thread Marc M. Adkins
I never know whether to submit a bug report or not. Often these things turn out to be known issues or I find out it was my own bug at some later time... If you get a segfault, chances are that something is broken, since the sw should gracefully handle cases when someone does something

RE: clones and parents (bug report)

2003-07-18 Thread Marc M. Adkins
-8-- Start Bug Report 8-- 1. Problem Description: # Problem: When I add PerlOptions +Parent I get a segfault. # # Breaks with: # Windows 2000 SP2 # Apache 2.0.46 # ActiveState Perl 5.8.0 (build 804) # mod_perl 1.99.10dev

clones and parents

2003-07-17 Thread Marc M. Adkins
Let's say I want to create a site with five virtual hosts. I want all of them to share the basic MP2 stuff, Apache-related modules and so forth. Then, for Virtual Host 1 (VH1 for short ;) I want to specify a set of modules unique to VH1. For VH2-VH4 I want to specify another set of modules, but

RE: clones and parents

2003-07-17 Thread Marc M. Adkins
No wonder this seemed familiar. I wrote pretty much the same memo six weeks ago. D'oh! I've been spending too much time at the keyboard... So is PerlOptions +Parent working? Whenever I enable it I get a segfault on W2K / Ap2.0.46 / mp1.99.10dev. mma -Original Message- From: Marc M

RE: Virtual Host Logging Perl Script (mod_macro note)

2003-07-16 Thread Marc M. Adkins
Right now it seems a bit silly having a separate ErrorLog line in each of the apache virtual host stubs, but as far as I am aware there isn't an easier way is there? You could look at mod_macro. mod_macro (http://www.coelho.net/mod_macro) works great for me. I found that I had to make a

RE: Does DBD::Pg work w/mp2?

2003-06-22 Thread Marc M. Adkins
Is anyone using PostgreSQL via DBD::Pg in a threaded environment? It appears as though the DBD::Pg driver hasn't been made thread-safe yet. However it's possible that I'm misusing it somehow, doing something in my startup.pl that I shouldn't, whatever. So I'm asking if anyone else is using

Does DBD::Pg work w/mp2?

2003-06-20 Thread Marc M. Adkins
Is anyone using PostgreSQL via DBD::Pg in a threaded environment? I'm getting: [Fri Jun 20 11:47:57 2003] [error] [client 127.0.0.1] DBD::Pg::dr default_user failed: handle 1 is owned by thread 126e2e4 not current thread 11df014 (handles can't be

RE: PerlOptions Clone/Parent in mp2

2003-06-13 Thread Marc M. Adkins
With something like a Proxy http://foo/*/Proxy block, mod_proxy does the right thing ( and the simple ) of using the power of ap_walk_config() to handler the parsing of the contents of the block. [...snip...] Reason Perl blocks can't do that is becasue we can't let httpd try and parse perl

RE: PerlOptions Clone/Parent in mp2

2003-06-11 Thread Marc M. Adkins
The code to implement blocks (e.g. TIPool.../TIPool) in config files is pretty gnarly, too. I know it's already there for Perl, it's one of the places I looked when I was considering doing one of my own and wanted to see an example. The Apache framework is pretty strong for putting in

RE: getting *any* variables out of the server environment

2003-06-09 Thread Marc M. Adkins
IF you're using mp2...in your httpd.conf are you setting up the handlers with modperl or perl-script? The former doesn't provide any environment variables: http://perl.apache.org/docs/2.0/user/config/config.html#C_SetHandler_ I don't believe this applies to mp1. mma -Original

RE: PerlOptions Clone/Parent in mp2

2003-06-09 Thread Marc M. Adkins
However I think it is possible to make the architecture more flexible to allow pools sharing across specific vhosts, or even location containers (if the scope is set to be only for the handler). e.g. something like: #base server TIPool A # parameters /TIPool TIPool B # parameters

PerlOptions Clone/Parent in mp2

2003-06-08 Thread Marc M. Adkins
wrt Apache 2.0, mod_perl 2.0... I'm not using Clone or Parent at the current time, but I was re-reading the documentation on them for an unrelated reason and started thinking about how they would work. Suppose I want to set up five virtual hosts with modules A - E. Then I want to set up six

RE: DirectoryIndex doesn't see SetHandler path

2003-06-06 Thread Marc M. Adkins
I hope that this is the issue. Marc has failed to say that he is using mp2/apache2, so I won't be surprised if this is yet another problem introduced by apache-2.0 (incompatible mod_dir behavior wrt apache-1.3). see my recent bug reports to the httpd-dev list. Yah, yah, sorry, Apache 2.0.46

Apache modules and mod_perl threads in same process?

2003-06-06 Thread Marc M. Adkins
For Apache 2.0.46 / mod_perl 1.99.10-dev: If I have an Apache module configured in httpd.conf, will the module code be executing in the same process as the mod_perl code? If there are multiple Apache processes (on W2K I always see 2) will the module code exist in all processes? mma

DirectoryIndex doesn't see SetHandler path

2003-06-05 Thread Marc M. Adkins
This is going to seem odd...obscure...dumb... I've been using code like this to set up handlers: Location /some/path/index SetHandler perl-script PerlResponseHandler Some::Handler /Location Now I'm using this code to set up handlers for individual pages. The directive

RE: Large Data Set In Mod_Perl

2003-05-30 Thread Marc M. Adkins
perhaps something such as copying the whole 800,000 rows to memory (as a hash?) on apache startup? That would be the fastest by far, but it will use a boatload of RAM. It's pretty easy to try, so test it and see if you can spare the RAM it requires. Always one of my favorite solutions to

RE: Can't use sendmail more than once

2003-05-30 Thread Marc M. Adkins
I have migrated my site from IIS and Active State to Apache 1.3 and mod_perl on a Windows machine. I use the site to send emails to registered users using Mail::sendmail through our SMTP server (another machine). With Apache I can only send emails once after I start the Apache server,

FW: Large Data Set In Mod_Perl

2003-05-30 Thread Marc M. Adkins
On Thu, 2003-05-29 at 11:59, Marc M. Adkins wrote: perhaps something such as copying the whole 800,000 rows to memory (as a hash?) on apache startup? That would be the fastest by far, but it will use a boatload of RAM. It's pretty easy to try, so test it and see if you can spare

RE: Large Data Set In Mod_Perl

2003-05-30 Thread Marc M. Adkins
On Thu, 2003-05-29 at 12:59, Marc M. Adkins wrote: That's news to me (not being facetious). I was under the impression that cloning Perl 5.8 ithreads cloned everything, that there was no sharing of read-only data. We're not talking about ithreads here, just processes. The data