You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Kaplan, Andrew H." <AH...@PARTNERS.ORG> on 2003/05/29 16:35:55 UTC

[users@httpd] CGI Scripts Not Working

I have compiled Apache with the --enable-cgi and --enable-cgid options. When
I run httpd -l, the mod_cgi.c and mod_cgid.c modules appeared as compiled.
However, I am unable to run any cgi scripts. Whenever I try to open one
directly, or have it opened via an html file, the system either shows the
source code,
or does not know how to run the script. HELP!!!!

---------------------------------------------------------------------
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] CGI Scripts Not Working

Posted by Jeff Cohen <su...@gej-it.com>.
Make sure that the location that you are running it from have at least the
following configuration:
ScriptAlias /cgi-bin/rpgcn/awstats/ /www/cgi-bin/rpgcn/awstats
<Directory /www/cgi-bin/rpgcn/awstats>
SetHandler cgi-script .pl .cgi
Options -Indexes ExecCGI
</Directory>

That of course only if you have Perl installed on your box, also verify that
the cgi script that you are trying to run has a line like:
#!/usr/sbin/perl
that will lead the file to be executed by the perl executable file.

All the best,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!

> -----Original Message-----
> From: Kaplan, Andrew H. [mailto:AHKAPLAN@PARTNERS.ORG]
> Sent: Thursday, May 29, 2003 10:36 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] CGI Scripts Not Working
> Importance: High
> 
> I have compiled Apache with the --enable-cgi and --enable-cgid options.
When
> I run httpd -l, the mod_cgi.c and mod_cgid.c modules appeared as compiled.
> However, I am unable to run any cgi scripts. Whenever I try to open one
> directly, or have it opened via an html file, the system either shows the
> source code,
> or does not know how to run the script. HELP!!!!
> 
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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