You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Fernando Rowies <ro...@usa.net> on 2000/02/24 21:12:11 UTC

Requisites to run SSI with #perl tags?

Someone can help me to run a counter script
with perl SSI?
Those are steps I accomplish.

Build mod_perl with EVERYTHING=1

Uncomment the lines:
AddType    text/html     .shtml
AddHandler server-parsed .shtml
in httpd.conf

Add the following lines:
Alias /perl/ /usr/local/apache/perl/
<Location /perl>
   SetHandler     perl-script
   PerlHandler    Apache::Registry
   PerlSendHeader On
   Options        +ExecCGI
</Location>
in httpd.conf

Run chmod 755 the cgi script:
/perl/counter.pl

The script have the line:
#!/usr/bin/perl
pointing correctly

Put index.shtml in DocumentRoot
with the line:
<!--#perl sub="Apache::Include" arg="/perl/counter.pl"-->
inside html text

Beside that there were best ways to put counters to work,
my intent was try in several ways, without succeed using
Perl Server Side Includes.

Thanks in advance

Fernando Rowies
Monte Grande
Buenos Aires
Argentina

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

Re: Requisites to run SSI with #perl tags?

Posted by "G.W. Haywood" <ge...@jubileegroup.co.uk>.
Hello again,

On 24 Feb 2000, Fernando Rowies wrote:

> Someone can help me to run a counter script
> with perl SSI?

What if anything does it say in the logs?

73,
Ged.

> Those are steps I accomplish.
> 
> Build mod_perl with EVERYTHING=1
> 
> Uncomment the lines:
> AddType    text/html     .shtml
> AddHandler server-parsed .shtml
> in httpd.conf
> 
> Add the following lines:
> Alias /perl/ /usr/local/apache/perl/
> <Location /perl>
>    SetHandler     perl-script
>    PerlHandler    Apache::Registry
>    PerlSendHeader On
>    Options        +ExecCGI
> </Location>
> in httpd.conf
> 
> Run chmod 755 the cgi script:
> /perl/counter.pl
> 
> The script have the line:
> #!/usr/bin/perl
> pointing correctly
> 
> Put index.shtml in DocumentRoot
> with the line:
> <!--#perl sub="Apache::Include" arg="/perl/counter.pl"-->
> inside html text
> 
> Beside that there were best ways to put counters to work,
> my intent was try in several ways, without succeed using
> Perl Server Side Includes.
> 
> Thanks in advance
> 
> Fernando Rowies
> Monte Grande
> Buenos Aires
> Argentina