Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jan 2007
    Location
    Chennai, Tamil Nadu, India
    Posts
    71
    Thanks
    5
    Thanked 0 Times in 0 Posts

    running perl with apache xampp or just apache

    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...
    http://vikku.info/
    - யானைக்கும் அடிசறுக்கும்

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    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

  • #3
    New Coder
    Join Date
    Jan 2007
    Location
    Chennai, Tamil Nadu, India
    Posts
    71
    Thanks
    5
    Thanked 0 Times in 0 Posts

    here are the steps i used to run perl scripts

    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?
    http://vikku.info/
    - யானைக்கும் அடிசறுக்கும்

  • #4
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,838
    Thanks
    2
    Thanked 160 Times in 155 Posts
    Try calling like this:


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •