cgi script
Posted by: jniemt (---.gv.shawcable.net)
Date: July 28, 2006 12:11AM

I have a problem in wamp.
I installed activestate Perl Interpreter in wamp server, having the following changed in httpd files:

ScriptAlias /cgi-bin/ "c:/wamp/Apache2/cgi-bin/"

<Directory "c:/wamp/apache2/cgi-bin">
AllowOverride All
Options FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
</Directory>

When I try to process my first hello script in cgi-bin, the 500 error mesage pops up:

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request."

Can anybody help me figure out how this happened.

THX

Options: ReplyQuote
Re: cgi script
Posted by: CyberSpatium (67.170.181.---)
Date: July 28, 2006 12:17AM

you need to change the first line of your perl scritps to point to the location of perl.exe

Options: ReplyQuote
Re: cgi script
Posted by: dbzkid (---.dyn.optonline.net)
Date: July 28, 2006 07:35AM

you also need to set apache to allow perl scripts, open your httpd.conf file and find:
#AddHandler cgi-script .cgi

change it to:
AddHandler cgi-script .cgi .pl

then find:
Options Indexes FollowSymLinks

change to:
Options Indexes FollowSymLinks Includes +ExecCGI

save your file, and restart apache for the new settings to take effect.

Options: ReplyQuote
Re: cgi script
Posted by: dbzkid (---.dyn.optonline.net)
Date: July 28, 2006 07:36AM

I had the same problem this should work

Options: ReplyQuote


Sorry, only registered users may post in this forum.