Running perl in xampp in windows os

Alles, was Perl betrifft, kann hier besprochen werden.

Running perl in xampp in windows os

Postby jayapalchandran » 21. October 2009 12:11

Hi,
This is my cgi-bin folder
D:\www\xampp\cgi-bin

the shebang is like this
#!"D:/www/xampp/perl/bin/perl.exe"

and perl is in the folder like in the above path of shebang

here is my script alias entry in httpd.conf

ScriptAlias /cgi-bin/ "D:/www/xampp/cgi-bin/"

and the directory entry is as follows

<Directory "D:/www/xampp/cgi-bin">
AllowOverride All
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
</Directory>

my file is printenv.pl and is saved in cgi-bin folder

but still i couldn't make the file run

i call it like localhost/printenv.pl

i get 404 error.

what shall i do?
jayapalchandran
 
Posts: 2
Joined: 21. October 2009 12:05

Re: Running perl in xampp in windows os

Postby Izzy » 22. October 2009 08:48

i call it like localhost/printenv.pl

i get 404 error.

what shall i do?
You should call it like it is configured
http://localhost/cgi-bin/printenv.pl
which will instantly get you moving forward.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to Perl

Who is online

Users browsing this forum: No registered users and 6 guests