View Full Version : running perl with apache xampp or just apache

10-20-2009, 08:04 AM
i know php and http concepts. I use php for web applications with apache as server. i thought of learning perl to enhance some functionality of web programming. I tried few codes and executed them with xampp perl.

I want to know how to run perl and apache like php and apache. mostly i have used xampp so all worked very well because all are bundled together.

I need links or tutorials to run perl under apache in windows. I thought i can learn from the core by not using any ide or similar.

I want to do form submit and file upload using perl. so i am here to get some hints, of brief explanation or links...

10-21-2009, 04:26 AM
perldoc, :)


the CGI module man page have a lot of examples. And ofcourse after you try some code if you have problems or question and you post on this forum I'm sure you will get an answer. :)

I hope this help.

best regards

10-21-2009, 12:13 PM
This is my cgi-bin folder

the shebang is like this

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

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?

10-21-2009, 01:24 PM
Try calling like this: