This Tutorial to help those who have problems with cgi scrits.
You need to go though following steps to execute cgi / perl scripts in your
web hosting space :-
1. Make sure that you upload your cgi / perl scripts inside cgi-bin directory only. cgi-bin is located inside your public_html directory incase of linux / cpanel hosting. Incase of windows plesk account you need to upload them inside cgi-bin located inside your httpdocs directory.
2. Set 755 permissions to your cgi / perl scripts. Your cgi / perl scripts wont execute without 755 permission and 777 is not allowed by the server.
3. To execute cgi / perl scripts outside cgi-bin you will need to add following code inside .htaccess ( if not there then make it inside public_html ) :-
Options +ExecCGI
AddHandler cgi-script cgi pl
__________________
UK Web Hosting ||
Business Hosting ||
eUKhost Knowledgebase
Toll Free : 0808 262 0255 ||
MSN : mark @ eukhost.com ||
AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________
Great Opportunity :: Join our
Affiliate Program for
FREE and earn 20% commission on each referral.