To modify the server configuration stop the server ( if running ), edit the configuration files , change it and start the server again.
confserv.txt
sysadminpassword operatorpassword1 - 5 port logfile logip host ip userlimit database URL USER PASSWORD DRIVER Syntax:sysadminpassword = pass The System Administartor password for all rooms on the chat server Syntax: operatorpassword1 = pass The operators passwords from 1 to 5 - for all rooms Syntax: port = nummber The port the server listens to. If you modify it, you *must* also change the port parameter in the applet invocation page. Syntax: logfile = server.log The name of your server log file Syntax:logip = false If you want to log the IP from your user true/false. For true you must heve DNS services on your server Syntax: host = your.host.name Hostname on which the server will be started Syntax: ip = x.x.x.x The IP on which the server will be started Syntax: userlimit = (1-65000) You can set user limit (1-65000) - not for free version Syntax: database = yes/no Only for autoconnect with Database and registration module. This is if you want that the chat server check the user and password again yes or no This example configuration is for MySQL with JDBC from Mark Matthews
Syntax: URL = jdbc:mysql://localhost:3306/okchat The JDBC url to your MySQL database Syntax: USER = user_okchat The user for your MySQL database Syntax: PASSWORD = pass_okchat The password for your MySQL database Syntax: DRIVER = org.gjt.mm.mysql.Driver * * the free JDBC driver for MySQL from Mark Matthews confwelcome.txt
|142|142|142|Welcome to okChat !
Syntax: |Red|Green|Blue|Message Put there your Welcome message confroom.txt
In this file are your Default Rooms, each on separate line. After you start your own chat server you will have this rooms. Syntax: 1=Room1 2=Room2 3=Room3 ...........
After you have make your changes you can start the server again in test modus with only: <shell>java ChatServer all outputs about the starting the chat server will be on this screen If all is ok you will see this message
<shell>java ChatServer Mess:only connections log Logging option is :false ********************************* okChat okChat 2.4.8 is starting .. (c)2001 jBochi International (c) www.okchat.com ********************************* Server try run for HOST:jorodev IP:192.168.0.3 IP = 192.168.0.3 Port = 9000 Test Licence for IP: 192.168.0.3 Invalid KEY, MaxUsers changed to 10