Results 1 to 1 of 1
I am running SUSE 10.1 at home.
With Firefox I open http://localhost/myscript.html , which includes
<FORM METHOD="POST" ACTION="cgi-bin/myscript.cgi">
myscript.cgi is a Perl script, beginning with
#!/usr/local/bin/perl
read(STDIN,$temp,$ENV{'CONTENT_LENGTH'});
....
When the ...
- 01-29-2007 #1Just Joined!
- Join Date
- May 2006
- Posts
- 8
Apache2 will not execute cgi Perl
I am running SUSE 10.1 at home.
With Firefox I open http://localhost/myscript.html, which includes
<FORM METHOD="POST" ACTION="cgi-bin/myscript.cgi">
myscript.cgi is a Perl script, beginning with
#!/usr/local/bin/perl
read(STDIN,$temp,$ENV{'CONTENT_LENGTH'});
....
When the POST is executed, I get:
"you have chosen to open myscript.cgi which is a CGI script from http://localhost
What should Firefox do with this file? etc"
When I put the same html and cgi files on a commercial server they work.
Do I not have CGI enabled in Apache?
/etc/apache2/default-server.conf contains this:
ScriptAlias /cgi-bin/ "/hdb/www/cgi-bin/"
<Directory "/hdb/www/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
I would appreciate any suggestions.
Peter


Reply With Quote