This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

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

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.5.7_846]
Rating: 10.0/10 (1 vote cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)

Related posts:

  1. Fix the problem in getting 500 Internal Server Error In Localhost Due To .htaccess
  2. Adding Handlers Directly In httpd.conf Of Apache
  3. Adding apache handlers in cpanel
  4. Apache AddHandler application/x-httpd-php not working?
  5. ScriptAlias and Alias in httpd.conf at a glance
  6. mod_security the Apache Module, The Apache Firewall blocking your website?
  7. How to install XAMPP

Leave a Reply

Comments (required)

Spam Protected