WAMP and Perl - reloaded
Posted by: catweazle (---.dhl.com)
Date: September 13, 2007 08:54AM

In addition to the unofficial tutorial by CyberSpatium I found a (imho) much more convenient way to include Perl support to the current WAMP version - as you might have noticed, the Perl add-on is hidden in the v 1.6 downloads.....

1. Install WAMP
2. get yourself a copy of ActiveState's Active Perl for Windows (link) - it's free of charge
3. Install Active Perl
4. Modify your WAMP's Apache httpd.conf as described in the tutorial mentioned above, i.e.
4.1 add the +ExecCGI directive to the line
Options Indexes FollowSymLinks (line 192 in my conf)
4.2 find #AddHandler cgi-script .cgi and change it to AddHandler cgi-script .cgi .pl (line 398 in my conf)
5. If you want to run perl scripts
5.1 have a look at the first line (the "shebang"winking smiley to find out where the script looks for perl; the line might look like this:
#!/usr/bin/perl
5.2 copy or rename your Perl directory to whatever you see in front of the /bin/perl, e.g. rename c:\perl to c:\usr
5.3 using Apache's Alias or ScriptAlias would be much nicer, but so far I haven't found the right way to get it working.....
6. restart your WAMP Apache

If you want to run Perl or CGI scripts from a command prompt (similar to ssh under Linux), follow the instructions in the Active Perl documentation (link) - basically you need to associate file extensions .pl and .cgi with perl.exe for opening.



Post Edited (09-13-07 15:41)

Options: ReplyQuote
Re: WAMP and Perl - reloaded
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: September 13, 2007 08:02PM

scriptalias is used to tell apache where for example the cgi-bin folder is located. it is not needed because the way i setup perl in my tutorial which is to allow perl in any directory, so you dont need a cgi-bin and dont need to use scriptalias


CyberSpatium
----------------------
WAMP English Forum Admin

I have WAMP5 working with (for development use only):
Windows Vista Ultimate x64 (64 bit)
Kaspersky Internet Security Suite 7.0.x
Spyware Terminater 2.x
CounterSpy 2.5.x


Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Clarify Loans
Mortgage and Home Loan Advice


LaxGo Web Directory
Powerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.

Options: ReplyQuote
Re: WAMP and Perl - reloaded
Posted by: bluemoon2007 (---.adsl.snet.net)
Date: September 17, 2007 02:45AM

I installed WAMP about a week ago and am a newbie to this but love it already. However, I haven't gotten Perl to execute properly and followed your advice.

The one thing that I have not done, according to your advice, is to install the Perl add-on because it is not on the list of WAMP add-ons.

Does that mean that Perl is now included? So, Perl scripts should work now since I followed your steps to modify httpd.conf, right?

I noticed that I can't view anything in the cgi-bin through localhost because I get the 403 Error: Forbidden - You don't have permission to access /cgi-bin/ on this server.



*-:¦:-* .· ´¨)) .·´¨¨))
((¸¸.·´ .·´-:¦:-
-:¦:- ((¸¸.·´ Dawn

Options: ReplyQuote
Re: WAMP and Perl - reloaded
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: September 17, 2007 11:52AM

you cannot not run perl scripts if you dont have perl installed




CyberSpatium
----------------------
WAMP English Forum Admin

I have WAMP5 working with (for development use only):
Windows Vista Ultimate x64 (64 bit)
Kaspersky Internet Security Suite 7.0.x
Spyware Terminater 2.x
CounterSpy 2.5.x


Need help? Check out my [url=http://forum.wampserver.com/read.php? f=2&i=12300&t=12300][u][b]WAMP User Manual/Guide[/b][/u][/url] here!


[url=http://www.webdevnewbie.com][u][b]Web Development for Newbie's Blog[/b][/u] [/url] - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


[url=http://www.clarifyloans.com][b][u]Clarify Loans[/u][/b][/url]
Mortgage and Home Loan Advice


[url=http://www.laxgo.com][b][u]LaxGo Web Directory[/u][/b][/url]
Powerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.

Options: ReplyQuote


Sorry, only registered users may post in this forum.