Page 1 of 1

Where is CGIIRC.c Module?

Posted: Mon Dec 31, 2007 2:12 pm
by unix4linux
Hi All,

Running 3.2.7 and looked in ./src/modules and there is no cgiirc.c module. I did a search everyone else on the system and nothing. I also found out on the CGI::IRC FAQ that cgiirc.c module no longer compiles by default on 3.2.4+

So, where can I get the module? I have looked everywhere and can't find it. Is there something different I need to do because my cgiirc web client is not communicating at all with my unrealirc server.

Thanks

BTW - this is running on a linux server

Re: Where is CGIIRC.c Module?

Posted: Mon Dec 31, 2007 4:07 pm
by Jobe
There isnt a module, you dont need one as the cgiirc support is built into the core now. http://www.unrealircd.com/files/docs/un ... ure_cgiirc

Re: Where is CGIIRC.c Module?

Posted: Mon Dec 31, 2007 5:32 pm
by unix4linux
Hmmm...ok. I was wondering because I can't get my CGIIRC to connect to it. My irc server is up and running fine. I have the password in the cgi config file set and in the unrealircd.conf I have the following:

cgiirc {
type webirc;
username *;
hostname "192.168.4.2";
password "mypasswd";
};

Does this look ok?

Does it have to be in a particular are of the unrealircd.conf file or could it be anywhere?

Re: Where is CGIIRC.c Module?

Posted: Mon Dec 31, 2007 7:05 pm
by Jobe
That looks fine, and it can be anywhere.

If it doesnt work then you may not have set webirc_password and default_server correctly

Re: Where is CGIIRC.c Module?

Posted: Tue Jan 01, 2008 5:53 am
by unix4linux
I have the default_server and webirc_password are fine:

default_server = localhost
webirc_password = myPasswd

So, I know thats fine. Anything else I can look at?

Thanks for the help so far :-)

Re: Where is CGIIRC.c Module?

Posted: Tue Jan 01, 2008 6:35 am
by Stealth
If the connections are going to localhost, then your host in the cgiirc block needs to be 127.0.0.1, not 192.168.4.2

Re: Where is CGIIRC.c Module?

Posted: Tue Jan 01, 2008 7:17 am
by unix4linux
Ok, I made the adjustment for localhost and 127.0.0.1 and still nothing.

What happens is that the page loads fine. I get no errors when going to the page. But, it doesn't go into any channels and I can't do anything like /join because it will error out saying "Not connected to IRC!"

Is there any error log in specific I can look at to see whats failing?

The thing that I noticed is that when I hit the login button at http://localhost/cgichat at the page, it shows on the url the following:

http://localhost/cgichat/cgichat/irc.cgi instead of http://localhost/cgichat/irc.cgi

So, looks like it is looking for cgichat within cgichat. That could be the problem but I have no idea how to fix it. In my apache.conf file I have the following:

# Note: order matters

ScriptAlias /cgiwebchat /usr/lib/cgi-bin/cgichat/irc.cgi
<Directory "/usr/lib/cgi-bin/cgichat/irc.cgi">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script cgi pl
Order allow,deny
Allow from all
</Directory>

Re: Where is CGIIRC.c Module?

Posted: Tue Jan 01, 2008 5:32 pm
by unix4linux
Anyone else have any thoughts?