Re: Mod_perl and HTTP IO issue

2006-11-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Nov 08, 2006 at 09:04:36PM -0500, Sumit Shah wrote: > Thanks for pointing that out. Really silly of me. > > After correcting it, it seems that $result does not equate to 'INVALID' > even though the server returned INVALID. I can see that if I

Re: Mod_perl and (mass) virtual hosting or a mod_vhost alternative

2006-11-10 Thread Jonathan Vanasco
On Nov 10, 2006, at 3:01 PM, Hans de Groot wrote: Hi, I would like to make my own vhost modules in modperl. I would not do that at all. because of the way mp handles memory and namespaces, vhosting mod_perl is a nightmare waiting to happen. mp is really best used in dedicated server sit

Re: Can't locate Apache2/compat.pm

2006-11-10 Thread Jonathan Vanasco
On Nov 10, 2006, at 6:10 PM, Hans de Groot wrote: I am using mod_perl 1.99_16 (it's the one that came with centos 4.3) It seems that this is mod_perl 2. uninstall it immediately, and install 2.0x -- whatever is current. There was a giant a API change early on in the 2.0 cycle. The docs r

Can't locate Apache2/compat.pm

2006-11-10 Thread Hans de Groot
Hello, Okay maybe I should start with some thing more basic like figuring out what mod_perl I am really using?. I am using mod_perl 1.99_16 (it's the one that came with centos 4.3) It seems that this is mod_perl 2. I am reading the documentation at http://perl.apache.org/docs/2.0/user/porting/

Re: Weak references, problem with apache2/mod_perl2

2006-11-10 Thread Fred Moyer
On Fri, 10 Nov 2006, Perrin Harkins wrote: On Fri, 2006-11-10 at 14:24 +0100, Michael Frankl wrote: I cleaned up the perl-installation. There where directories under /usr/lib/perl5 from previous perl installations. I deleted them all. I deleted the Scalar::Util that is not from main distributio

Re: Weak references, problem with apache2/mod_perl2

2006-11-10 Thread Michael Frankl
Hello Perrin, Am Freitag, den 10.11.2006, 15:29 -0500 schrieb Perrin Harkins: > Sorry, I'm not sure what to suggest for your next step. Maybe contact > the author of Scalar::Util. Or maybe recompile your system perl so it > will support weak refs without installing a separate module. I already

Re: Weak references, problem with apache2/mod_perl2

2006-11-10 Thread Perrin Harkins
On Fri, 2006-11-10 at 14:24 +0100, Michael Frankl wrote: > I cleaned up the perl-installation. There where directories > under /usr/lib/perl5 from previous perl installations. I deleted them > all. I deleted the Scalar::Util that is not from main distribution. Now > I got the same error running the

Mod_perl and (mass) virtual hosting or a mod_vhost alternative

2006-11-10 Thread Hans de Groot
Hi, I would like to make my own vhost modules in modperl. I tried some other modules but I cannot seem to get them to work or they do not support enough options. I want to put virtual host infomation in a mysql database so I can let my modules decide what virtual host we need. DocumentRoot Ser

Re: [mp2] PAR in production?

2006-11-10 Thread Michael Peters
Foo JH wrote: > I don't understand. What do you mean by 'perl is not relocatable'? I've > put (Active)Perl in the same directory as the apache server in a > copy-paste operation. But this is in Windows. One example is that @INC is determined at compile time. If you move your perl around, @INC do

Re: mod_rewrite

2006-11-10 Thread Jordan McLain
I am not sure what, exactly, you are trying to do. But, could you do something like: ScriptAlias /cgi-bin/ /path/to/cgi-bin/ ScriptAlias /cgi-bin2/ /path/to/cgi-bin/ # or /path/to/cgi-bin2/ RewriteEngine On RewriteRule ^/cgi-bin/cpindex.pl(.*) /cgi-bin2/cpindex.pl$1 RewriteRule ^/cgi-bin/cppro

Re: Weak references, problem with apache2/mod_perl2

2006-11-10 Thread Michael Frankl
Hi, Am Donnerstag, den 09.11.2006, 13:48 -0500 schrieb Perrin Harkins: > > So that means, that mod_perl is not compiled with the same perl as is > > used by the standalone server!? > > Yes, I don't know any way to disable weak references without recompiling > Scalar::Util, which is part of the ma

mod_rewrite

2006-11-10 Thread Anthony Gardner
I don't know if this is the right place to ask but in the log created by mod_rewrite, it tells me that it's prefixing my local_path with document_root.what I want is the server_root!!This is in a virtual hostRewriteEngine on##RewriteBase SERVERROOT/p4cRewriteRule /cgi-bin/cpindex.pl /cg