Posted by:
CyberSpatium
(---.hsd1.or.comcast.net)
kironban wrote:
> im having problem of "cgi-bin" directory .
> when i want to access cgi-bin it show me "You don't have
> permission to access /cgi-bin/ on this server." plz help me
you will need to install the wamp perl add-on, and then configure it. the installation of perl add-on does not configure apache to work with perl, so you will have to do that yourself.
I posted a post over a year ago on how to install and configure perl for wamp. since that post can be hard to find (especially for newbies) i will post how to do it here.
you need to open apache's config file ( c:\wamp\apache2\conf\httpd.conf ) and find:
<Directory "C:/wamp/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinkschange it to:
<Directory "C:/wamp/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks +ExecCGIadding the
+ExecCGI to the
Options directive above means you can now run perl scripts, and you can run them in the any directory, you dont need to create a separate cgi-bin folder for your perl scripts to run in. we still need to do a few more steps to get perl to work.
now find this line:
#AddHandler cgi-script .cgichange it to:
AddHandler cgi-script .cgi .plthis step tells apache how to handle files that end with the .cgi and .pl extension.
now you need to open each of your .cgi and .pl files and change the location to perl at the top line of each script. so, change
#!c:/usr/bin/perlto
#!c:/wamp/perl/bin/perl.exenow you need to restart apache for all the changes to take effect.
CyberSpatium----------------------WAMP English Forum Admin
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 LoansMortgage and Home Loan Advice
LaxGo Web DirectoryPowerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.