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.
Related posts:
- Fix the problem in getting 500 Internal Server Error In Localhost Due To .htaccess
- Adding Handlers Directly In httpd.conf Of Apache
- Adding apache handlers in cpanel
- Apache AddHandler application/x-httpd-php not working?
- ScriptAlias and Alias in httpd.conf at a glance
- mod_security the Apache Module, The Apache Firewall blocking your website?
- How to install XAMPP
