JLBN – Setup CGI Perl on WAMP

Perl is a dynamic programming language created by Larry Wall and first released in 1987. Perl borrows features from a variety of other languages including C, shell scripting (sh), AWK, sed and Lisp. Perl was widely adopted because it provides powerful text processing facilities without arbitrary data length limits, as were present in many Unix tools at the time

In this instruction guide for WAMP, we will show you how to install and setup Perl for WAMPSERVER in Windows Server 2008. Fortunately, the procedure to install Perl is about the same in Windows Vista and XP, so you can use this guide to setup Perl in either Operating System.

Note: Even this guide is used for Wampserver, you can apply this method on other wamp package such as Xampp, EasyPHP, so on. Just make sure to select correct file(s) in proper location(s) πŸ˜‰

[Read more…]

37 thoughts on “JLBN – Setup CGI Perl on WAMP

  • September 28, 2010 at 3:58 pm
    Permalink

    Like some previous users, I believe I followed the steps to the letter, and when I try to open it it gives me an open/download dialog

    I am not sure if Missed a step, but there is one thing that may be a bit quirky about my install of WAMP, I run it off of a non default port setting (not 80). Could that be the reason why?

    • September 28, 2010 at 9:31 pm
      Permalink

      Veretax, did you include port in URL?

    • September 29, 2010 at 7:14 am
      Permalink

      Aye, in the form of http://localhost:portnum/cgi-bin/printenv.pl

      Now i checked it from the command line and it ran, so I’m not sure why Internet Explorer wants to open it. (Note just tried it in latest FireFox stable, and it doesn’t do that in it. Could it be something to do with the .pl file extension association I wonder?)

    • September 29, 2010 at 7:30 am
      Permalink

      Veretax, so you have no problem with Firefox but Internet Explorer and we wonder what version of Internet Explorer are you using now? Did you try it with different versions?

  • August 27, 2010 at 3:43 am
    Permalink

    Hello BN,

    i really appreciate for the installation help of perl…it worked like charm for me and i am able to work on Perl with PHP…..Thanks a lot man hope you will keep helping guy like this in future and hope all the very best for your future

    Thanks & Regards
    Abhinav Verma

  • April 18, 2010 at 1:31 pm
    Permalink

    Brilliant! Many thanks for this excellent guide. You have my gratitude, and a well-earned donation! (from Oh My Goddess – 7 Angels).
    In joy,
    Bodhi

  • August 4, 2009 at 7:33 am
    Permalink

    Thank you very Much,This is the clean & neat installation step by step procedure.

  • June 15, 2009 at 5:41 am
    Permalink

    i followed all the instructions to install and configure perl on wamp but it didn`t work and got “Internal Server Error:The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.”

    Please help me out favourably

    • June 15, 2009 at 6:17 am
      Permalink

      neha hemani, did you download Perl from our Download Page? If yes, check the last 2 steps πŸ˜‰

  • May 28, 2009 at 7:37 am
    Permalink

    I have used your tutorial to configure perl in my wamp. Now I am trying to add MASON in cgi. Can you give me some feedback.

    I will highly appreciate it

    • May 30, 2009 at 11:34 am
      Permalink

      Mason is 100% free and open source. Although it can be used from CGI or even stand-alone, it is optimally designed for use with two other open source technologies: mod_perl and Apache.

      This is quoted from Mason site and as it stated and instructed on their site mostly for mod_perl which is not the same as FastCGI as guided here, so you should check w/ them how to run it πŸ˜‰ if we have time, we might take a look and post here the easy way to run it πŸ˜‰

  • April 3, 2009 at 12:16 am
    Permalink

    I just tried this guide and it worked. I can honestly say I wouldn’t have ever figured out how to do this myself. Thanks for everything.

    Also it when I can printevn.pl it also asked me to download the file in IE. Firefox displayed the text fine. But if you save the file and open it in a text editor you can see that the script ran and the output is displayed. So there your perl installation is working.

    Thanks again. Ad clicked.

    • March 4, 2009 at 6:15 pm
      Permalink

      Go over the guide again to make sure you didn’t miss a step or two, most likely step 29-30 πŸ˜‰

  • February 21, 2009 at 11:42 am
    Permalink

    “Don’t be fooled, this is really a tutorial on how to pack as many ads into a tutorial as possible.”

    πŸ™‚ This site is laughable. It is almost impossible to read and distinguish an ad from actual text. Not to be mean, but seriously, less ads and better content will get you more money that so many ads that people leave from frustration. Bye bye, I will probably avoid all links back to jlbn.net, as they only lead to frustration.

    • February 23, 2009 at 11:37 am
      Permalink

      @ MorAdsPlz + Jimmy Bockles
      Thank you for your comments, even they’re negative, and since they’re negative, we guess you guys only look ONE aspect when posting while our sites serve TWO purposes: tutorial guides for wamp users and implementing ads for template users, so wamp users just simply follow the guides and ignore the ads if not interested; on the other hand, our sites are good examples for template users when they wonder where possible to put the ads, Google search or Paypal, if they want to, on a particular template they just downloaded from our sites, so they just pick a spot or two for ad implementing that meet their desire needs πŸ˜‰

      Nevertheless, even we’ve already tested on various monitor/LCD, due to some negative comments on this particular template, we will make a change soon πŸ˜‰

  • February 20, 2009 at 7:48 pm
    Permalink

    Don’t be fooled, this is really a tutorial on how to pack as many ads into a tutorial as possible.

    πŸ™‚

  • January 6, 2009 at 6:16 pm
    Permalink

    Hey,

    Thanks a lot, trying to install perl and wamp, this site should help, will come back if it does, anyways thanks a lot!!!!!

  • November 8, 2008 at 12:23 pm
    Permalink

    Added perl\cgi to WAMP without a problem, thanks to your guide.
    An excellent and clear indtuction BN.
    And Thank you (and Andreas) for the templates too.

  • October 29, 2008 at 4:28 am
    Permalink

    thanx.. i found this sites where i begin to convused about running .cgi script from wamp. πŸ™‚

  • August 7, 2008 at 6:31 am
    Permalink

    @ DjAligator
    First, after install Perl, did you try to run the example Perl file to make sure it works?
    Second, did you follow the second Perl guide to setup Perl for folder “upo”?
    Third, did you include your shebang line on very top of all Perl files?

  • August 6, 2008 at 2:17 pm
    Permalink

    It dosen’t work perl i make all like in tutorial now it give this error
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.
    http://djaligator.ath.cx/upo/cgi-bin/install.cgi

  • July 21, 2008 at 3:11 am
    Permalink

    Change font color tutorial : Perl CGI on Wamp. Now its unreadable.

Leave a Reply