Executing CGI
Apache 2:
My cgi shows complete text of the script instead of executing it like
a cgi script. Am I missing something in below configuration
<Directory /usr/local/apache2/cgi-bin/>
Options +ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Order allow,deny
Allow from all
</Directory>
my cgi
#!/usr/bin/perl
print "Got it!"
------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Executing CGI
Got it working cgi_module wasn't loaded.
On Fri, Feb 19, 2010 at 11:35 AM, Mohit Anchlia <mohitanchlia [at] gmail.com> wr=
ote:
> Apache 2:
>
> My cgi shows complete text of the script instead of executing it like
> a cgi script. =A0Am I missing something in below configuration
>
> <Directory /usr/local/apache2/cgi-bin/>
> =A0 =A0Options +ExecCGI
> =A0 =A0AddHandler cgi-script .cgi .pl
> =A0 =A0AllowOverride None
> =A0 =A0Order allow,deny
> =A0 =A0Allow from all
> </Directory>
>
> my cgi
>
> #!/usr/bin/perl
>
> print "Got it!"
>
------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org