Recent Changes - Search:

CONGO

PmWiki

edit SideBar

ServerConfiguration

The appserver ('cserver') is configured via a configuration file called 'cserver.conf'. If you start the app server without a configuration file, one will be created. This is a handy way to figure out what directory cserver will look in for the file. Without any baseline configuration, the cserver will fail to connect and exit. Look in the congo top level directory and you should find the 'cserver.conf' file it created as it tried to start.

The default configuration file created by the appserver simply has a header in it:

   #cserver.conf configuration options.
   #Wed Jul 18 21:37:40 EDT 2007

Most likely the first thing to set in the conf file is the information necessary to connect to the MySQL? database. Options are specified one to a line, with a keyword, an equals sign, and a value. Here's a fairly typical setup:

   #cserver.conf configuration options.
   #Fri Jun 01 23:21:06 EDT 2007
   preferredregtype=None
   dbname=congodb
   preferredcid=18
   mailcc=reg@arisia.org
   username=dbuser
   badgeclass=generic
   receiptprintcommand=echo
   enablekiosk=0
   badgeprintcommand=echo
   labelprintcommand=lpr -Pseiko -oscaling\=100
   mailname=CONGO Registration System
   password=dbpassword
   portnumber=8081

Details on what all these keywords mean can be found in the cserver API documentation, but MySQL? connect information uses 'dbname' 'username' and 'password'.

Edit - History - Print - Recent Changes - Search
Page last modified on May 22, 2008, at 11:28 PM