Where is CGIIRC.c Module?

These are old archives. They are kept for historic purposes only.
Post Reply
unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Where is CGIIRC.c Module?

Post by unix4linux » Mon Dec 31, 2007 2:12 pm

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

Jobe1986
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Where is CGIIRC.c Module?

Post by Jobe1986 » Mon Dec 31, 2007 4:07 pm

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
Your IP: Image

unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: Where is CGIIRC.c Module?

Post by unix4linux » Mon Dec 31, 2007 5:32 pm

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?

Jobe1986
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Where is CGIIRC.c Module?

Post by Jobe1986 » Mon Dec 31, 2007 7:05 pm

That looks fine, and it can be anywhere.

If it doesnt work then you may not have set webirc_password and default_server correctly
Your IP: Image

unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: Where is CGIIRC.c Module?

Post by unix4linux » Tue Jan 01, 2008 5:53 am

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 :-)

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Where is CGIIRC.c Module?

Post by Stealth » Tue Jan 01, 2008 6:35 am

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

unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: Where is CGIIRC.c Module?

Post by unix4linux » Tue Jan 01, 2008 7:17 am

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>

unix4linux
Posts: 20
Joined: Tue Dec 25, 2007 1:14 pm

Re: Where is CGIIRC.c Module?

Post by unix4linux » Tue Jan 01, 2008 5:32 pm

Anyone else have any thoughts?

Post Reply