Re: using mod_perl with SSI-run perl scripts

2000-08-18 Thread Perrin Harkins

> Depends where you're coming from, surely? If you're purely SSI, then
> you're adding overhead, if you're already heavily perl then you're
> reducing the load (provided you play by the rules ;-).

This guy already said he was trying to replace #exec calls to perl CGI
scripts, so it should definitely help him reduce load.
- Perrin




Re: using mod_perl with SSI-run perl scripts

2000-08-18 Thread David Hodgkinson


Vivek Khera <[EMAIL PROTECTED]> writes:

> > "BC" == Bogomolnyi Constantin <[EMAIL PROTECTED]> writes:
> 
> BC> mod_perl will never reduce your server load (in fact it will increase it )
> 
> This is an absolutely wrong statement.

Depends where you're coming from, surely? If you're purely SSI, then
you're adding overhead, if you're already heavily perl then you're
reducing the load (provided you play by the rules ;-).

-- 
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star   http://www.deep-purple.com
  Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -



Re: using mod_perl with SSI-run perl scripts

2000-08-18 Thread Vivek Khera

> "BC" == Bogomolnyi Constantin <[EMAIL PROTECTED]> writes:

BC> mod_perl will never reduce your server load (in fact it will increase it )

This is an absolutely wrong statement.

When I converted one site to mod_perl, the load dropped dramatically
because it could handle the requests faster.  This allowed me to avoid
buying additional hardware.  Using the tuning tips I collected during
that transition (now found as the mod_perl_tuning docs that come with
mod_perl) I was able to reduce the load even more.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.Khera Communications, Inc.
Internet: [EMAIL PROTECTED]   Rockville, MD   +1-301-545-6996
GPG & MIME spoken herehttp://www.khera.org/~vivek/



Re: using mod_perl with SSI-run perl scripts

2000-08-18 Thread Vivek Khera

> "MH" == Mike Hodson <[EMAIL PROTECTED]> writes:

MH> administrator) is using a set of small perl scripts run thru the
MH> SSI  method to change
MH> advertizing banners on different pages.  I personally want to
MH> convert them into some sort of embperl or PHP

You should use  in
preference to exec cgi.  If you configure mod_perl to run
/cgi-bin/banner.pl and make it mod_perl safe (see the guide on how to
do that) it will "just work" (tm).

You probably also want to offload any images and other static content
to another server (possibly on the same host, but not a virtual
server.  it needs to be a separate instance of httpd without
mod_perl).  The guide goes into many techniques on performance tuning
as well.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.Khera Communications, Inc.
Internet: [EMAIL PROTECTED]   Rockville, MD   +1-301-545-6996
GPG & MIME spoken herehttp://www.khera.org/~vivek/



Re: using mod_perl with SSI-run perl scripts

2000-08-18 Thread Bogomolnyi Constantin

Hello ,
mod_perl will never reduce your server load (in fact it will increase it )
and specialy SSI+Modperl will bring you realy huge httpd procs .
I think that you should read http://perl.apache.org/guide/performance.html
& http://perl.apache.org/guide/scenario.html

best
Constantin
- Original Message -
From: "Mike Hodson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 18, 2000 5:12 AM
Subject: using mod_perl with SSI-run perl scripts


> Hello there.
> I am currently looking for a way to reduce the server load on a very
popular
> website.  I must admit, I am not a whiz with perl, nor was I the designer
of
> our current system.  The web content designer (I myself am a server
> administrator) is using a set of small perl scripts run thru the SSI
 method to change advertizing banners on
different
> pages.  I personally want to convert them into some sort of embperl or PHP
> code embedded into the pages, however the current number of pages that
require
> these scripts number in the thousands, and I can't justify changing
everything
> over if there is another option.
>
> I need to know if mod_perl can execute the perl scripts called by the exec
cgi
> SSI command, and if so, instructions on how to make this work properly.
> Right now our server (p3-550mhz, 768 megs ram, freebsd 4.0) load average
is
> steady around 5, and spikes to over 20 when people request the SSI enabled
> pages.
>
> Thanks in advance for any help on this subject.
>
> Regards,
> Mike Hodson
>
>




Re: using mod_perl with SSI-run perl scripts

2000-08-18 Thread Mike Hodson


Ok, I have an update on this.
I found some docs on how to set things up, but ran into a problem when
compiling it.
Here's the line I used to configure mod_perl, and have it build apache:
perl Makefile.PL PERL_SSI=1 USE_APACI=1 APACI_ARGS='--prefix=/usr/apache
--enable-shared=max --disable-shared=include --disable-shared=perl
--enable-module=include'

It builds fine, and seems to do what I want, until the 'make test' stage,
which exits at:

Failed Test  Status Wstat Total Fail  Failed  List of failed
---

modules/ssi.t??   ??   %  ??
9 tests skipped.
httpd terminated
httpd terminated
*** Error code 9

Stop in /usr/src/www/mod_perl-1.24.


Is there anything that I'm doing wrong?




Re: using mod_perl with SSI-run perl scripts

2000-08-17 Thread Perrin Harkins

On Thu, 17 Aug 2000, Mike Hodson wrote:
> I need to know if mod_perl can execute the perl scripts called by the
> exec cgi SSI command, and if so, instructions on how to make this work
> properly.

Take a look at the mod_perl docs:
http://perl.apache.org/src/mod_perl.html#mod_perl_and_mod_include_integra

- Perrin