v2nek/webchat2

Umm something not working in the socket.php

Closed this issue · 1 comments

What steps will reproduce the problem?
1. All I did was d/led it and added it to the webserver... and chmoded and
it dont work.... something not working with the socket.php File 


What is the expected output? What do you see instead?
#!/usr/bin/php -Cq [ERROR] /var/www/test/webchat2-1.0/libs/socket.php:38
socket_bind() [function.socket-bind]: unable to bind address [98]: Address
already in use [ERROR] /var/www/test/webchat2-1.0/libs/socket.php:39 Could
not bind socket to [0 - 2001]: Address already in use [ERROR]
/var/www/test/webchat2-1.0/chatLog.php:26 date() [function.date]: It is not
safe to rely on the system's timezone settings. Please use the
date.timezone setting, the TZ environment variable or the
date_default_timezone_set() function. In case you used any of those methods
and you are still getting this warning, you most likely misspelled the
timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST'
instead
Strict Standards: date() [function.date]: It is not safe to rely on the
system's timezone settings. Please use the date.timezone setting, the TZ
environment variable or the date_default_timezone_set() function. In case
you used any of those methods and you are still getting this warning, you
most likely misspelled the timezone identifier. We selected
'America/Los_Angeles' for 'PDT/-7.0/DST' instead in
/var/www/test/webchat2-1.0/chatLog.php on line 26
[ERROR] /var/www/test/webchat2-1.0/chatLog.php:28
fopen(/tmp/chat_/var/www/test/webchat2-1.0/libs/socket.php:39_04-08-2008_04:05:0
7.backtrace)
[function.fopen]: failed to open stream: No such file or directory

What version of the product are you using? On what operating system?
2.0

Please provide any additional information below.

 :/.... If anyone can help Email me @ RCP@techtoknow.net

Original issue reported on code.google.com by rcp2...@gmail.com on 8 Apr 2008 at 11:08

This bug reporting system isn't really meant for support questions to be 
honest, and this isn't a bug :)

First error you get is 'address is in use', which means something else is 
listening to the same port as you 
configured the chat server for.

Secondly judging from the file paths, it seems your trying to run the chat 
server inside of a webserver, which 
is not what it's made for ... its a stand alone program that you run from the 
command line, so something like:

# /usr/bin/php -Cq /path/to/chat.php

The last error your get is about your php.ini configuration, where you didn't 
configure the timezone setting 
correctly, so has nothing to do with this program at all :)

There's some basic information about how to setup an IRC server to use with 
webchat, and how to run the 
chat daemon on the website:
http://www.chabotc.com/webchat/

I'd suggest getting started by reading that first :)

Original comment by chabotc on 8 Apr 2008 at 11:36

  • Changed state: Invalid