V
vol30w60
I've tried searching this topic and only found a few tutorials on this,
but I still cannot get CGI working.
The machine is Mac OS 10.5.3
I do have Perl installed by default:
perl -v
This is perl, v5.8.8 built for darwin-2level
I've set-up my Apache config files with the following options:
<Directory "/Users/mike/Sites/">
Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
DirectoryIndex index.html index.shtml index.php
AllowOverride FileInfo AuthConfig Limit
AddHandler cgi-script .cgi
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
When I try to access a cgi script, it outputs the code (does not process
the script):
http://127.0.0.1/~mike/cgi-bin/test.cgi
Output:
#!/usr/bin/perl -wT
print "Content-type: text/html\n\n";
print "<h2>Hello, World!</h2>\n";
file is set to:
-rwxr-xr-x
What am I missing?
but I still cannot get CGI working.
The machine is Mac OS 10.5.3
I do have Perl installed by default:
perl -v
This is perl, v5.8.8 built for darwin-2level
I've set-up my Apache config files with the following options:
<Directory "/Users/mike/Sites/">
Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
DirectoryIndex index.html index.shtml index.php
AllowOverride FileInfo AuthConfig Limit
AddHandler cgi-script .cgi
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
When I try to access a cgi script, it outputs the code (does not process
the script):
http://127.0.0.1/~mike/cgi-bin/test.cgi
Output:
#!/usr/bin/perl -wT
print "Content-type: text/html\n\n";
print "<h2>Hello, World!</h2>\n";
file is set to:
-rwxr-xr-x
What am I missing?