My 7 semester lab exams got scheduled for 22 of Nov,2011,to work out programs at hostel I have been struggling to configure perl to execute my “Web Programming Lab” programs. It took hell lot of time and could finally complete it.So i thought sharing the configuring the steps which might be useful for those who are stuck jus like how I was, few days before.
Perl, a scripting language developed by Larry Wall in 1987. Perl has been constantly getting huge user response for its simplicity in text processing from the day of its release.
Here, I choose WAMP, a packages of independently-created programs which includes Apache(web server), MySQL(open source database) and PHP as principal components.
Ok let’s start with the step by step instructions to configure.
STEP 1: Download and install wamp 2. version.Click here to download.
STEP2:Similar to step 1 download and install Active Perl 5.10.0 build 1005 from active state web.
STEP 3:Now right click on wamp server icon which is at the left corner of windows taskbar and select put offline option else select stop all the sevices.Once all wamp services are stopped again right click on wamp server icon and select Apache then open httdp.conf file.
STEP 4: Now we need to make some changes in this httpd.conf file let’s do it one by one;
a)scroll down and look for the line “Options Indexes FollowSymLinks ” and replace it with “Options Indexes FollowSymLinks Includes ExecCGI ”
b)scroll down and look for the line “#AddHandler cgi-script .cgi” and replace it with “AddHandler cgi-script .cgi
AddHandler cgi-script .pl ”
c)Now look for the line “DirectoryIndex index.php index.php3 index.html index.htm“ and add index.cgi and index.pl in this line.
STEP 5:server is now configured and ready to run perl and cgi script.Now need to add additional repository and install from that repository. For that:
1. Open command prompt , then type
“ppm repo add uwinnipeg”
2. After the “uwinnipeg” repository is added successfully, install DBD-mysql by typing this command
“ppm install DBD-mysql”
Hmmm, now were done with configuring stuffs.Try writing some simple perl scripts and save them in C:\wamp\bin\apache\Apache2.2.11\cgi-bin\
to run the scripts open the browser and type this url :http://localhost/cgi-bin/ followed by your program name as shown
NOTE: Please make sure that no process is running on port 80
Explanation is nice and crisp… Well done!.
Getting error as per bellow
==========================
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.
I can’t access the site by “http://localhost/cgi-bin/index.pl” or “http://localhost/perl_test/index.pl”
i have save the index.pl in both area.in “d:\wamp\bin\apache\Apache2.2.11\cgi-bin\” and “d:\wamp\www\perl_test”
Hi, Are you still having issue accessing the site?
ppm repo failed:repo.packklist_uri may not be NULL………..error…????
I also stuck with the same problem..
thanks for the valuable information…
Thank you !
Suggestions are welcome
great information. very useful. Thank you 🙂
Thank you!
Everything went accordingly till step 5:
“repo failed: the repository must be absolute or a local directory”
Pingback: Awesome Tshirts Identify by itself provides excellent the reassurance of Summer times - Sayfa 1068
Thank you very much… it helped a lot… keep up good work
A video on this would be much appreciated…Thanks