anjanesh
07-27-2006, 04:29 PM
Hi
Im into PHP, Apache, MySQL and have installed it on my Widnows XP machine.
Now I got a perl script that needs to be run using the browser.
I installed Active Perl and its located at C:\Perl
I have this in my httpd.conf file :
ScriptAlias /cgi-bin/ "C:/htdocs/cgi/"
<Directory "C:/htdocs/cgi">
AllowOverride All
Options All
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
In my perl.cgi file in C:\htdocs\cgi I have
#! C:/Perl/bin/perl.exe
print "Working";
http://localhost/cgi/perl.cgi is returning Internal Server Error
Any idea whats wrong ?
Thanks
Im into PHP, Apache, MySQL and have installed it on my Widnows XP machine.
Now I got a perl script that needs to be run using the browser.
I installed Active Perl and its located at C:\Perl
I have this in my httpd.conf file :
ScriptAlias /cgi-bin/ "C:/htdocs/cgi/"
<Directory "C:/htdocs/cgi">
AllowOverride All
Options All
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
In my perl.cgi file in C:\htdocs\cgi I have
#! C:/Perl/bin/perl.exe
print "Working";
http://localhost/cgi/perl.cgi is returning Internal Server Error
Any idea whats wrong ?
Thanks