Configuration File
What?
It is a plain text file the uses to store its settings, such as SMTP server information, help desk email address, company name. Here is a fragment of configuration file.
HTMLBASEWIDTH=700
admpwd=test123
basedir=/web/localhost/htdocs/ttx
blockautoresponder=1
company=Trouble Ticket Express Demo
email=
emailfix=0
group1=Billing
group2=Sales
group3=Customer Service
grpsellbl=Department
httphost=www.company.com
imgurl=.
scriptname=/ttx/ttx.cgi
smtp=
smtptrace=0
timezone=-300
ttx.version=2.21
usecache=0
xOS=3
xSN=2
As you can see, each line defines one configuration variable. You probably recognized some variables, because they correspond to the setup form fields. Some variables do not have setup form counterparts. Trouble Ticket Express uses these variables to store internal information.
Where.
The Trouble Ticket Express looks for the configuration file under the scripts directory. The name of the file is ttxcfg.cgi. But it is not an executable CGI script. It uses cgi extension for security reasons only – trying to open the file using web browser will result in Internal Server Error rather than disclosing its contents. Depending on your system settings, the ttxcfg.cgi file contains either list of configuration variables or a single line with a reference to real configuration file, which resides outside scripts directory.
How
Normally, you do not need to edit the configuration file, as the Trouble Ticket Express does the job. Just use setup.cgi script to change system settings. You may need to edit the ttxcfg.cgi if you want to
- Adjust file system paths when moving the system to another host.
- Use undocumented features. These undocumented features are the ones, which are already implemented but not available in setup forms yet. This usually happens if we had to make an intermediate release to address some bugs.
To edit the configuration file please use plain text editor, such as Notepad on Windows or vi on Unix. Do not forget to build a backup copy before applying changes to the file.