Working install of cgiirc on Windows with IIS, a howto

View: New views
1 Messages — Rating Filter:   Alert me  

Working install of cgiirc on Windows with IIS, a howto

by Ing-Long Eric Kuo-2 :: Rate this Message:

| View Threaded | Show Only this Message

Here's how to get cgiirc to work on Windows.   Yup on Windows using IIS. Tested on Windows XP, IIS 5.  Should work on later IIS versions too. The steps below are for IIS 5.
 
1) Setup your normal IIS environment.  e.g. make sure http://localhost works.
2) Install cygwin.  You'll need to select perl during installation.
3) Extract cgiirc to somwhere like you would an aspx site. e.g. c:\Inetpub\www\chat
4) Create an application for the directory like you would an aspx site.  Right click directory in the manager, go to properties.  Click create. Don't close the window yet.  Besure you are not reusing an existing pool on IIS 6 and 7. 
5) Create an application mapping for .cgi files.  Click configuration. Click add.  Browse for perl.exe, it should be c:\cygwin\bin\perl.exe.   Add the string "%s" %s after perl.exe.  It should now look like
c:\cygwin\bin\perl.exe "%s" %s
extension should say .cgi
Click all verbs.  make sure script engine is checked.  Click ok.  Click ok to close configuration.  Click ok to close properties.
6) Change CGITimeout to more than 5mins to like 2 days. See http://www.iisadmin.co.uk/?p=7     Use metaedit for IIS5.  Metabase explorer for IIS6, IIS7 is much easier.  Don't forget to restart IIS to reload the metabase
7) Edit irc.cgi, line 38.  Remove the last two strings so it only check the current dir for the config file.  that line should now just say for('') {
8) Edit nph-irc.cgi, line 24, comment out use strict;  line 63, remove the last two strings so it only check the current dir for the config file. that line should now just say for('') {
9) configure cgiirc.config according the normal documentation.
10) browse to http:\\server\somedir\irc.cgi.  Login page should show up.
 
For those that are paranoid about turning off use strict.  You can use strict if you remove any IPV6 or AF_INET6 related code path in nph-irc.cgi.  Hopefully ipv6 perl support will be included in cygwin soon.  Note that, Activestate Perl did not work for me.  Tested with unrealircd
 
Enjoy!
 
 
 

------------------------------------------------------------------------------

_______________________________________________
cgiirc-general mailing list
cgiirc-general@...
https://lists.sourceforge.net/lists/listinfo/cgiirc-general