You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "ABDUL RAHMAN......." <ab...@gulfnetksa.com> on 2000/09/04 18:43:23 UTC

Executing Perl Scripts on the Web Browser.

Dear All,

Can any body say me how to execute perl scripts on the web server apache.  What are the 
configuration steps required to configure to execute the perl scripts on the any browsers.

Please send me the steps if any body knows.


Abdul Rahman.

Re: Executing Perl Scripts on the Web Browser.

Posted by "ABDUL RAHMAN......." <ab...@gulfnetksa.com>.
Dear All,

Iam presently using BSDI unix. When I am trying to execute the perl scripts on the browser I am not able to execute.  
I went to httpd.conf file and checked for your given below steps for configuring.  But, I was able to see the related configuration steps in 
srm.conf file instead of httpd.conf file. i.e., as follows:

/var/www/conf/httpd.conf
                    /srm.conf
                    /access.conf

Please provide me the steps properly ...I mean to say..... step by step by which I can configure the Unix machine in such a way that I can easily execute the PERL SCRIPTS on the Browser.


Please help me out.


Best Regards.,
Abdul Rahman.






  ----- Original Message ----- 
  From: deraco@ipsogen.fr 
  To: ABDUL RAHMAN....... 
  Cc: modperl@apache.org ; Matt Sergeant 
  Sent: ???????, ????? 04, 2000 8:15 PM
  Subject: RE: Executing Perl Scripts on the Web Browser.


  On 04-Sep-00 ABDUL RAHMAN....... wrote:
  >Dear All,
  >
  >Can any body say me how to execute perl scripts on the web server apache.
   What are the 
  >configuration steps required to configure to execute the perl scripts on
  the any browsers.
  >
  >Please send me the steps if any body knows.
  >
  >
  >Abdul Rahman.

  Hi,

  You'll need a directory in which you'll put your scipts (usually : cgi-bin)

  In httpd.conf, you have to modify the lines ScriptAlias :
          ScriptAlias /cgi-bin/ /my/path/to/cgi-bin/ 

  the location lines :
  <Location /cgi-bin>
          SetHandler perl-script
          PerlHandler Apache::Registry
          Options +ExecCGI
  </Location>

  and the Directory lines
  <Directory "/my/path/to/cgi-bin">
          Options ExecCgi
          AllowOverride AuthConfig FileInfo Indexes Limit Options
      Order allow,deny
      Allow from all
  </Directory>   

  This works for me.

  Take a look at the docs on the Apache website

  Hope this helps

  Steph



------------------------------------------------------------------------------


  Dear All,

  Can any body say me how to execute perl scripts on the web server apache.  What are the 
  configuration steps required to configure to execute the perl scripts on the any browsers.

  Please send me the steps if any body knows.


  Abdul Rahman.

RE: Executing Perl Scripts on the Web Browser.

Posted by de...@ipsogen.fr.
On 04-Sep-00 ABDUL RAHMAN....... wrote:
>Dear All,
>
>Can any body say me how to execute perl scripts on the web server apache.
 What are the 
>configuration steps required to configure to execute the perl scripts on
the any browsers.
>
>Please send me the steps if any body knows.
>
>
>Abdul Rahman.

Hi,

You'll need a directory in which you'll put your scipts (usually : cgi-bin)

In httpd.conf, you have to modify the lines ScriptAlias :
        ScriptAlias /cgi-bin/ /my/path/to/cgi-bin/ 

the location lines :
<Location /cgi-bin>
        SetHandler perl-script
        PerlHandler Apache::Registry
        Options +ExecCGI
</Location>

and the Directory lines
<Directory "/my/path/to/cgi-bin">
        Options ExecCgi
        AllowOverride AuthConfig FileInfo Indexes Limit Options
    Order allow,deny
    Allow from all
</Directory>   

This works for me.

Take a look at the docs on the Apache website

Hope this helps

Steph