...

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



jayapalchandran
10-20-2009, 09:04 AM
Hi,
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...

oesxyl
10-21-2009, 05:26 AM
perldoc, :)

http://perldoc.perl.org/
http://www.comp.leeds.ac.uk/Perl/Cgi/start.html

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

jayapalchandran
10-21-2009, 01:13 PM
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?

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

http://localhost/cgi-bin/printenv.pl



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum