How to run CGI or Perl Scripts in IBM Http Server [IHS] or Apache Servers

This Tutorial Has Been Viewed 4,223 Times.

Hi Guys,

I am back again with yet another tutorial on how to run cgi scripts in Apache or IBM IHS [HTTP Server]

1)First of all as i always say, take backup of HTTPD.CONF
2)Now open the httpd.conf with you favourite editor.Mine is notepad ++ ofcourse.
3)Find this entry LoadModule cgi_module modules/mod_cgi.so and uncomment it if it is commented otherwise leave that.
4)Then find
<Directory />
Options FollowSymLinks +ExecCGI
AllowOverride None
</Directory>
And add +ExecCGI as i have added above.
5)Uncomment this ScriptAlias /cgi-bin/ “<IHS INSTALLED PATH>/cgi-bin/” or ADD that entry if that is not existing, here i am giving the alias name as /cgi-bin/ itself if you want you can change it accordingly.
6)Then add one more directive
<Directory “<IHS INSTALLED PATH>/cgi-bin”>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
7)Then add AddHandler cgi-script .cgi .pl
8)Last but not least recycle the IHS or Apache :)

Put the cgi or perl scripts in the cgi-bin directory and access it with http://<YOURHOST>/cgi-bin/yourscript.cgi
Hope this will help you guys.Any issues reply me bye guys.

VN:F [1.9.13_1145]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)

How to run CGI or Perl Scripts in IBM Http Server [IHS] or Apache Servers, 10.0 out of 10 based on 2 ratings

Incoming search terms:





You will also be interested in ,

Tags:

Leave a Reply

Spam protection by WP Captcha-Free

Proudly designed by Mistonline.in.
Affordable Seo PackagesSeo BlogEdu Backlinks