A. What version of Windows are you running XAMPP on?
B. I am unaware of any reason that you should not be able to execute CGI programs in \xampp\cgi-bin. I run Perl scripts from that folder regularly on both XP and Windows 7. I think what they mean is 'you need to modify' the Handler to see Perl scripts as CGI files.
You will have to ask them if their script is mod_perl and Perl 5.10 compatible FIRST~. IF the script is compatible - this may fix everything.
Save/rename the original \xampp\apache\conf\extra\httpd-perl.conf file
copy C:\xampp177\apache\conf\extra\startup.pl to C:\xampp177\apache\conf\extra\startup.cgi
make this your new c:\xampp\apache\conf\extra\httpd-perl.conf:
- Code: Select all
LoadFile "C:/xampp177/perl/bin/perl510.dll"
LoadModule perl_module modules/mod_perl.so
PerlPostConfigRequire "C:/xampp177/apache/conf/extra/startup.cgi"
<IfModule mime_module>
AddType text/html .cgi
</IfModule>
<FilesMatch "\.cgi$">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
</FilesMatch>
<Directory "C:/xampp177/cgi-bin">
<FilesMatch "\.cgi$">
SetHandler cgi-script
</FilesMatch>
</Directory>
# ASP settings
Include "conf/extra/httpd-perl-asp.conf"
C. On the assumption that you installed XAMPP in the root of C:\, the shebang line should look like this:
#!/xampp/perl/bin/perl.exe --
You should really check with them and tell them you installed on XAMPP, they may have a complete 'fix' already.
Good Luck