Re: cgi-bin will not execute perl program

2007-06-21 Thread whitsey
On Jun 15, 6:20 am, [EMAIL PROTECTED] (Mike Williams) wrote:
 On 6/14/07, Mumia W. [EMAIL PROTECTED] wrote:





  On 06/14/2007 02:24 AM, whitsey wrote:
   Mumia W. wrote:
   On 06/12/2007 09:38 PM, whitsey wrote:
   Directory /usr/local/apache2.0.54/bindist/cgi-bin
   AllowOverride None
   Options None

   You need Options ExecCGI or (more probably) Options +ExecCGI

   The Apache/Tomcat documentation states that the ScriptAlias
   directive automatically assigns the alias as a cgi-bin, therefore all
   files within this directory are by default assigned as files to be
   executed.

   I did add this however is made no difference...

  You're right. Your configuration code (without +ExecCGI) worked on my
  system (Apache2, Debian 3.1 i386), so I can't say why it doesn't work
  for you.

 Interesting, I've been putting ExecCGI into options for years, thought
 it was required.

 Did some tinkering, commented out that option and Add-Handler which I
 also thought was required and my cgi code still worked.

 #Options ExecCGI
 #AddHandler cgi-script .cgi

 Then I found that if I commented out this line:

 LoadModule cgi_module modules/mod_cgi.so

 My cgi code no longer worked, it just displayed the source of my perl
 code in the browser window.

 Do you have a load module for mod_cgi in your httpd.conf file?

 BTW - this was with Apache/2.2.4 on fedora 6.

 Mike- Hide quoted text -

 - Show quoted text -

That is it!!! I can't beleive I didn't even check that.  Assumed it
was a given that it would be there...


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: cgi-bin will not execute perl program [SOLVED]

2007-06-21 Thread Mike Williams

On 6/20/07, whitsey [EMAIL PROTECTED] wrote:


 On 6/14/07, Mumia W. [EMAIL PROTECTED] wrote:
 Did some tinkering, commented out that option and Add-Handler which I
 also thought was required and my cgi code still worked.

 #Options ExecCGI
 #AddHandler cgi-script .cgi

 Then I found that if I commented out this line:

 LoadModule cgi_module modules/mod_cgi.so

 My cgi code no longer worked, it just displayed the source of my perl
 code in the browser window.

 Do you have a load module for mod_cgi in your httpd.conf file?

 BTW - this was with Apache/2.2.4 on fedora 6.



That is it!!! I can't beleive I didn't even check that.  Assumed it



was a given that it would be there...


Cool, thanks for the good news.

Cheers,

Mike


Re: cgi-bin will not execute perl program

2007-06-14 Thread whitsey

Mumia W. wrote:
 On 06/12/2007 09:38 PM, whitsey wrote:
  [...]
  Directory /usr/local/apache2.0.54/bindist/cgi-bin
  AllowOverride None
  Options None


 You need Options ExecCGI or (more probably) Options +ExecCGI

The Apache/Tomcat documentation states that the ScriptAlias
directive automatically assigns the alias as a cgi-bin, therefore all
files within this directory are by default assigned as files to be
executed.

I did add this however is made no difference...


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: cgi-bin will not execute perl program

2007-06-14 Thread Mumia W.

On 06/14/2007 02:24 AM, whitsey wrote:

Mumia W. wrote:

On 06/12/2007 09:38 PM, whitsey wrote:

[...]
Directory /usr/local/apache2.0.54/bindist/cgi-bin
AllowOverride None
Options None


You need Options ExecCGI or (more probably) Options +ExecCGI


The Apache/Tomcat documentation states that the ScriptAlias
directive automatically assigns the alias as a cgi-bin, therefore all
files within this directory are by default assigned as files to be
executed.

I did add this however is made no difference...




You're right. Your configuration code (without +ExecCGI) worked on my 
system (Apache2, Debian 3.1 i386), so I can't say why it doesn't work 
for you.





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: cgi-bin will not execute perl program

2007-06-14 Thread Mike Williams

On 6/14/07, Mumia W. [EMAIL PROTECTED] wrote:

On 06/14/2007 02:24 AM, whitsey wrote:
 Mumia W. wrote:
 On 06/12/2007 09:38 PM, whitsey wrote:
 Directory /usr/local/apache2.0.54/bindist/cgi-bin
 AllowOverride None
 Options None

 You need Options ExecCGI or (more probably) Options +ExecCGI

 The Apache/Tomcat documentation states that the ScriptAlias
 directive automatically assigns the alias as a cgi-bin, therefore all
 files within this directory are by default assigned as files to be
 executed.

 I did add this however is made no difference...

You're right. Your configuration code (without +ExecCGI) worked on my
system (Apache2, Debian 3.1 i386), so I can't say why it doesn't work
for you.



Interesting, I've been putting ExecCGI into options for years, thought
it was required.

Did some tinkering, commented out that option and Add-Handler which I
also thought was required and my cgi code still worked.

#Options ExecCGI
#AddHandler cgi-script .cgi

Then I found that if I commented out this line:

LoadModule cgi_module modules/mod_cgi.so

My cgi code no longer worked, it just displayed the source of my perl
code in the browser window.

Do you have a load module for mod_cgi in your httpd.conf file?

BTW - this was with Apache/2.2.4 on fedora 6.

Mike

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: cgi-bin will not execute perl program

2007-06-13 Thread Mumia W.

On 06/12/2007 09:38 PM, whitsey wrote:

[...]
Directory /usr/local/apache2.0.54/bindist/cgi-bin
AllowOverride None
Options None



You need Options ExecCGI or (more probably) Options +ExecCGI



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/