You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Prathima Dandapani -X (pdandapa - HCL at Cisco)" <pd...@cisco.com> on 2008/10/01 14:01:24 UTC

[users@httpd] Apache not executing Perl script,but perl script is getting downloaded.

Hello All,
 
            I have Apache 2.2.9 running.Perl script is not getting
executed,but it is getting downloaded.Here is the configuration done for
executing perl scripts.
              
  ScriptAlias /cgi-bin/ "C:/PROGRA~1/CSCOpx/cgi-bin/"
<Directory "C:/PROGRA~1/CSCOpx/cgi-bin/">
AllowOverride None
Options ExecCGI
AddHandler cgi-script .pl
ScriptInterpreterSource Registry-Strict
</Directory>
    
Please help me to resolve the issue.
 
Thanks and Regards,
Prathima.

RE: [users@httpd] Apache not executing Perl script,but perl script is getting downloaded.

Posted by "Prathima Dandapani -X (pdandapa - HCL at Cisco)" <pd...@cisco.com>.
 
Hello Nick,

           Thanks for the details.I have attached the downloaded perl file
that has some other content in it.
            Let me know your suggestions.
Thanks,
Prathima.
-----Original Message-----
From: Nick Kew [mailto:nick@webthing.com] 
Sent: Wednesday, October 01, 2008 6:37 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache not executing Perl script,but perl script
is getting downloaded.

On Wed, 1 Oct 2008 18:25:24 +0530
"Prathima Dandapani -X \(pdandapa - HCL at Cisco\)"
<pd...@cisco.com> wrote:

> Hello frank,
> 
>         I removed Option ExecCGI and also mod_cgi is loaded.But still 
> facing the issue.
>         I have an html file,which on submitting,calls one perl file 
> for execution,but instead perl file is getting downloaded with some 
> other content in it.

/me looks in his crystal ball

guesses the perl script is running, but producing output that fails to
comply with the CGI spec.

cg-eye could help diagnose that.  As could we, if we had a URL.

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: [users@httpd] Apache not executing Perl script,but perl script is getting downloaded.

Posted by Nick Kew <ni...@webthing.com>.
On Wed, 1 Oct 2008 18:25:24 +0530
"Prathima Dandapani -X \(pdandapa - HCL at Cisco\)"
<pd...@cisco.com> wrote:

> Hello frank,
> 
>         I removed Option ExecCGI and also mod_cgi is loaded.But still
> facing the issue.
>         I have an html file,which on submitting,calls one perl file
> for execution,but instead perl file is getting downloaded with some
> other content in it.

/me looks in his crystal ball

guesses the perl script is running, but producing output that fails
to comply with the CGI spec.

cg-eye could help diagnose that.  As could we, if we had a URL.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache not executing Perl script,but perl script is getting downloaded.

Posted by "Prathima Dandapani -X (pdandapa - HCL at Cisco)" <pd...@cisco.com>.
Hello frank,

        I removed Option ExecCGI and also mod_cgi is loaded.But still facing
the issue.
        I have an html file,which on submitting,calls one perl file for
execution,but instead perl file is getting downloaded with some other
content in it.
        Thanks for your help.
Thanks,
Prathima. 

-----Original Message-----
From: Francois Gingras [mailto:francois.gingras@gmail.com] 
Sent: Wednesday, October 01, 2008 5:49 PM
To: users@httpd.apache.org; pdandapa@cisco.com
Subject: Re: [users@httpd] Apache not executing Perl script,but perl script
is getting downloaded.

Hello,

With ScriptAlias, you don't actually need Option (+)ExecCGI. You simply need
to allow access to that directory.

Also, make sure that the mod_cgi module is loaded, and you should be good to
go.

Frank

On Wed, Oct 1, 2008 at 8:01 AM, Prathima Dandapani -X (pdandapa - HCL at
Cisco) <pd...@cisco.com> wrote:
> Hello All,
>
>             I have Apache 2.2.9 running.Perl script is not getting 
> executed,but it is getting downloaded.Here is the configuration done 
> for executing perl scripts.
>
>   ScriptAlias /cgi-bin/ "C:/PROGRA~1/CSCOpx/cgi-bin/"
> <Directory "C:/PROGRA~1/CSCOpx/cgi-bin/"> AllowOverride None Options 
> ExecCGI AddHandler cgi-script .pl ScriptInterpreterSource 
> Registry-Strict </Directory>
>
> Please help me to resolve the issue.
>
> Thanks and Regards,
> Prathima.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache not executing Perl script,but perl script is getting downloaded.

Posted by Nilesh Govindrajan <li...@itech7.com>.
I tested it on apache and found that it doesn't work. This method is
successful in running php-cgi. Use mod_perl instead of CGI-perl. It gives
better performance.

On Wed, Oct 1, 2008 at 6:38 PM, Prathima Dandapani -X (pdandapa - HCL at
Cisco) <pd...@cisco.com> wrote:

>  Hi Nilesh,
>
>                Thanks for your suggestion.
>                 Inorder to use Action directive,should i copy the perl
> binary to cgi-bin directory?
> Thanks,
> Prathima
>
>  ------------------------------
> *From:* Nilesh Govindrajan [mailto:lists@itech7.com]
> *Sent:* Wednesday, October 01, 2008 6:20 PM
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] Apache not executing Perl script,but perl
> script is getting downloaded.
>
>  I'd rather say use mod_actions. Link your perl binary to cgi-bin and
> specify Options +FollowSymLinks in cgi-bin directory configuration. Then use
> this -
>
> AddHandler perl-script .pl
>
> Action perl-script /cgi-bin/perl-bin
>
> This will interpret .pl anywhere found using the perl binary interpreter.
> But the directory .pl file exists must have ExecCGI enabled if its not
> cgi-bin.
>
> On Wed, Oct 1, 2008 at 5:49 PM, Francois Gingras <
> francois.gingras@gmail.com> wrote:
>
>> Hello,
>>
>> With ScriptAlias, you don't actually need Option (+)ExecCGI. You
>> simply need to allow access to that directory.
>>
>> Also, make sure that the mod_cgi module is loaded, and you should be good
>> to go.
>>
>> Frank
>>
>> On Wed, Oct 1, 2008 at 8:01 AM, Prathima Dandapani -X (pdandapa - HCL
>> at Cisco) <pd...@cisco.com> wrote:
>> > Hello All,
>> >
>> >             I have Apache 2.2.9 running.Perl script is not getting
>> > executed,but it is getting downloaded.Here is the configuration done for
>> > executing perl scripts.
>> >
>> >   ScriptAlias /cgi-bin/ "C:/PROGRA~1/CSCOpx/cgi-bin/"
>> > <Directory "C:/PROGRA~1/CSCOpx/cgi-bin/">
>> > AllowOverride None
>> > Options ExecCGI
>> > AddHandler cgi-script .pl
>> > ScriptInterpreterSource Registry-Strict
>> > </Directory>
>> >
>> > Please help me to resolve the issue.
>> >
>> > Thanks and Regards,
>> > Prathima.
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
> --
> Nilesh Govindrajan (nilesh@itech7.com)
>
> iTech7 Site and Server Administrator
>
> www.itech7.com
>



-- 
Nilesh Govindrajan (nilesh@itech7.com)

iTech7 Site and Server Administrator

www.itech7.com

RE: [users@httpd] Apache not executing Perl script,but perl script is getting downloaded.

Posted by "Prathima Dandapani -X (pdandapa - HCL at Cisco)" <pd...@cisco.com>.
Hi Nilesh,
 
               Thanks for your suggestion.
                Inorder to use Action directive,should i copy the perl
binary to cgi-bin directory?
Thanks,
Prathima

  _____  

From: Nilesh Govindrajan [mailto:lists@itech7.com] 
Sent: Wednesday, October 01, 2008 6:20 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache not executing Perl script,but perl script
is getting downloaded.


I'd rather say use mod_actions. Link your perl binary to cgi-bin and specify
Options +FollowSymLinks in cgi-bin directory configuration. Then use this -

AddHandler perl-script .pl

Action perl-script /cgi-bin/perl-bin

This will interpret .pl anywhere found using the perl binary interpreter.
But the directory .pl file exists must have ExecCGI enabled if its not
cgi-bin.


On Wed, Oct 1, 2008 at 5:49 PM, Francois Gingras
<fr...@gmail.com> wrote:


Hello,

With ScriptAlias, you don't actually need Option (+)ExecCGI. You
simply need to allow access to that directory.

Also, make sure that the mod_cgi module is loaded, and you should be good to
go.

Frank


On Wed, Oct 1, 2008 at 8:01 AM, Prathima Dandapani -X (pdandapa - HCL
at Cisco) <pd...@cisco.com> wrote:
> Hello All,
>
>             I have Apache 2.2.9 running.Perl script is not getting
> executed,but it is getting downloaded.Here is the configuration done for
> executing perl scripts.
>
>   ScriptAlias /cgi-bin/ "C:/PROGRA~1/CSCOpx/cgi-bin/"
> <Directory "C:/PROGRA~1/CSCOpx/cgi-bin/">
> AllowOverride None
> Options ExecCGI
> AddHandler cgi-script .pl
> ScriptInterpreterSource Registry-Strict
> </Directory>
>
> Please help me to resolve the issue.
>
> Thanks and Regards,
> Prathima.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
  "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org






-- 
Nilesh Govindrajan (nilesh@itech7.com)

iTech7 Site and Server Administrator

www.itech7.com


Re: [users@httpd] Apache not executing Perl script,but perl script is getting downloaded.

Posted by Nilesh Govindrajan <li...@itech7.com>.
I'd rather say use mod_actions. Link your perl binary to cgi-bin and specify
Options +FollowSymLinks in cgi-bin directory configuration. Then use this -

AddHandler perl-script .pl

Action perl-script /cgi-bin/perl-bin

This will interpret .pl anywhere found using the perl binary interpreter.
But the directory .pl file exists must have ExecCGI enabled if its not
cgi-bin.

On Wed, Oct 1, 2008 at 5:49 PM, Francois Gingras <francois.gingras@gmail.com
> wrote:

> Hello,
>
> With ScriptAlias, you don't actually need Option (+)ExecCGI. You
> simply need to allow access to that directory.
>
> Also, make sure that the mod_cgi module is loaded, and you should be good
> to go.
>
> Frank
>
> On Wed, Oct 1, 2008 at 8:01 AM, Prathima Dandapani -X (pdandapa - HCL
> at Cisco) <pd...@cisco.com> wrote:
> > Hello All,
> >
> >             I have Apache 2.2.9 running.Perl script is not getting
> > executed,but it is getting downloaded.Here is the configuration done for
> > executing perl scripts.
> >
> >   ScriptAlias /cgi-bin/ "C:/PROGRA~1/CSCOpx/cgi-bin/"
> > <Directory "C:/PROGRA~1/CSCOpx/cgi-bin/">
> > AllowOverride None
> > Options ExecCGI
> > AddHandler cgi-script .pl
> > ScriptInterpreterSource Registry-Strict
> > </Directory>
> >
> > Please help me to resolve the issue.
> >
> > Thanks and Regards,
> > Prathima.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
Nilesh Govindrajan (nilesh@itech7.com)

iTech7 Site and Server Administrator

www.itech7.com

Re: [users@httpd] Apache not executing Perl script,but perl script is getting downloaded.

Posted by Francois Gingras <fr...@gmail.com>.
Hello,

With ScriptAlias, you don't actually need Option (+)ExecCGI. You
simply need to allow access to that directory.

Also, make sure that the mod_cgi module is loaded, and you should be good to go.

Frank

On Wed, Oct 1, 2008 at 8:01 AM, Prathima Dandapani -X (pdandapa - HCL
at Cisco) <pd...@cisco.com> wrote:
> Hello All,
>
>             I have Apache 2.2.9 running.Perl script is not getting
> executed,but it is getting downloaded.Here is the configuration done for
> executing perl scripts.
>
>   ScriptAlias /cgi-bin/ "C:/PROGRA~1/CSCOpx/cgi-bin/"
> <Directory "C:/PROGRA~1/CSCOpx/cgi-bin/">
> AllowOverride None
> Options ExecCGI
> AddHandler cgi-script .pl
> ScriptInterpreterSource Registry-Strict
> </Directory>
>
> Please help me to resolve the issue.
>
> Thanks and Regards,
> Prathima.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org