You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by RFI Admin <rf...@ruralfree.net> on 2003/04/10 02:10:41 UTC

mod_perl on redhat 8.0

Redhat 8.0 is delivered with httpd 2.0.40-8 amd mod-perl 1.99_05-3 packages ready to install, and I have installed both along with perl 5.8.0-55. I am trying to issue the following command:

# PerlModule Apache::ASP
bash: PerlModule: command not found

That error would seem to be caused by either, 1) mod_perl isn't enabled, or 2) this version of mod_perl doesn't work with the version of Apache (httpd) I have installed.

Since httpd has replaced Apache, does httpd still work with mod_perl? 

I had assumed that mod_perl 1.99 works with Apache 2 since it was delivered with redhat and was also mentioned at apache.org with mod_perl 2. Is that assumption correct?

Does mod_perl 1.99 (or version 2) have an alternate enabling proceedure from mod_perl 1?

Is it possible that mod_perl 1.99 has an alternate command for PerlModule?

Thanks in advance for your response!




Re: mod_perl on redhat 8.0

Posted by Josh Chamas <jo...@chamas.com>.
Perrin Harkins wrote:
>
>> I had assumed that mod_perl 1.99 works with Apache 2 since it was 
>> delivered with redhat and was also mentioned at apache.org with 
>> mod_perl 2. Is that assumption correct?
> 
> 
> Yes.  However, mod_perl 1.99 (which is mod_perl 2) is not compatible 
> with all of the mod_perl 1 modules.  I believe people have successfully 
> run Apache::ASP under mod_perl 2 by using the compatibility mode 
> discuessed here:
> http://perl.apache.org/docs/2.0/user/compat/compat.html
> 
> There is more information about Apache::ASP here:
> http://apache-asp.org/
>

Recent releases of Apache::ASP work with mod_perl 1.99
without any special configuration.  However, because Apache::ASP
uses chdir() which is not a thread safe operation, I would
recommend a setting like this for worker mpm Apache mode of operation
which is multi-threaded...

   StartServers 10
   ServerLimit 10
   MaxClients 50
   ThreadsPerChild 5
   PerlInterpMax 1
   PerlInterpStart 1

Not that most people will be using worker mpm at first, but
when they do, the PerlInterpMax should allow there to be just
one mod_perl interpreter per process, which should allow
things like chdir() to operate safely, assuming that only mod_perl
processes would be doing things like chdir()! I believe such a
configuration will allow for performance similar to
a dual mod_perl / normal httpd setup on performance
where things like images will not tie up a mod_perl process.

Once we get a nice filter/output buffering layer set up, we'll probably
get a front end type mod_proxy performance with a single server too.
Anyone do this yet for apache 2 mod_perl 1.99 in worker mpm mode?

Regards,

Josh

________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


Re: mod_perl on redhat 8.0

Posted by Josh Chamas <jo...@chamas.com>.
Perrin Harkins wrote:
>
>> I had assumed that mod_perl 1.99 works with Apache 2 since it was 
>> delivered with redhat and was also mentioned at apache.org with 
>> mod_perl 2. Is that assumption correct?
> 
> 
> Yes.  However, mod_perl 1.99 (which is mod_perl 2) is not compatible 
> with all of the mod_perl 1 modules.  I believe people have successfully 
> run Apache::ASP under mod_perl 2 by using the compatibility mode 
> discuessed here:
> http://perl.apache.org/docs/2.0/user/compat/compat.html
> 
> There is more information about Apache::ASP here:
> http://apache-asp.org/
>

Recent releases of Apache::ASP work with mod_perl 1.99
without any special configuration.  However, because Apache::ASP
uses chdir() which is not a thread safe operation, I would
recommend a setting like this for worker mpm Apache mode of operation
which is multi-threaded...

   StartServers 10
   ServerLimit 10
   MaxClients 50
   ThreadsPerChild 5
   PerlInterpMax 1
   PerlInterpStart 1

Not that most people will be using worker mpm at first, but
when they do, the PerlInterpMax should allow there to be just
one mod_perl interpreter per process, which should allow
things like chdir() to operate safely, assuming that only mod_perl
processes would be doing things like chdir()! I believe such a
configuration will allow for performance similar to
a dual mod_perl / normal httpd setup on performance
where things like images will not tie up a mod_perl process.

Once we get a nice filter/output buffering layer set up, we'll probably
get a front end type mod_proxy performance with a single server too.
Anyone do this yet for apache 2 mod_perl 1.99 in worker mpm mode?

Regards,

Josh

________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: mod_perl on redhat 8.0

Posted by Perrin Harkins <pe...@elem.com>.
RFI Admin wrote:
> Redhat 8.0 is delivered with httpd 2.0.40-8 amd mod-perl 1.99_05-3 
> packages ready to install, and I have installed both along with perl 
> 5.8.0-55. I am trying to issue the following command:
>  
> # PerlModule Apache::ASP
> bash: PerlModule: command not found

As someone else pointed out, PerlModule is a configuration directive, 
not a shell command.

> Since httpd has replaced Apache, does httpd still work with mod_perl?

Actually, httpd *is* Apache.

> I had assumed that mod_perl 1.99 works with Apache 2 since it was 
> delivered with redhat and was also mentioned at apache.org with mod_perl 
> 2. Is that assumption correct?

Yes.  However, mod_perl 1.99 (which is mod_perl 2) is not compatible 
with all of the mod_perl 1 modules.  I believe people have successfully 
run Apache::ASP under mod_perl 2 by using the compatibility mode 
discuessed here:
http://perl.apache.org/docs/2.0/user/compat/compat.html

There is more information about Apache::ASP here:
http://apache-asp.org/

- Perrin


RE: mod_perl on redhat 8.0

Posted by Frank Maas <fr...@cheiron-it.nl>.
> Redhat 8.0 is delivered with httpd 2.0.40-8 amd mod-perl 1.99_05-3
> packages ready to install, and I have installed both along with perl
> 5.8.0-55. I am trying to issue the following command:  
> 
> # PerlModule Apache::ASP
> bash: PerlModule: command not found
> 
> That error would seem to be caused by either, 1) mod_perl isn't
> enabled, or 2) this version of mod_perl doesn't work with the version
> of Apache (httpd) I have installed.  

Or 3) you didn't read the documentation and thus are trying to use
an Apache directive that should be in an Apache configuration file
as a mere unix command...

--Frank