Last updated on February 17th, 2022 at 11:48 am

Hi Guys,

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

We have our latest tutorial on how to run perl script in Apache (Ubuntu, Red Hat or CentOS), take a look.

1)First of all as i always say, take backup of HTTPD.CONF
2)Now open the httpd.conf with you favorite editor.Mine is notepad ++ of course.
3)Find this entry LoadModule cgi_module modules/ and uncomment it if it is commented otherwise leave that.
4)Then find

<Directory />
Options FollowSymLinks +ExecCGI

And add +ExecCGI as i have added above.
5)Uncomment this

ScriptAlias /cgi-bin/ "IHS_INSTALLED_PATH/cgi-bin/" 

or ADD this entry if it is not existing, Here I am giving 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

7)Then add AddHandler cgi-script .cgi .pl
8)Last but not least recycle the IHS 🙂

Put the cgi or perl scripts in the cgi-bin directory and access it using URL similar to https://YOURHOST/cgi-bin/yourscript.cgi
Hope this helps..

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *