2.2. Configuration Options

Most of the options listed here can be configured via the Configuration page of the admin tools. The DB_ and PHPLIB_PATH options can be found in config.php.

INSTALL_PATH

Location on disk of the phpBugTracker installation. This variable is obtained by getting the working directory of the scripts.

INSTALL_URL

URL that is the home of the installation.

CVS_WEB

Location of your cvs web interface (see format_comments() in bug.php). This is for links to files in CVS generated from the comments attached to bugs.

DB_TYPE

The type of database server you are using, according to PHPlib's naming convention. Possible choices are msql, mssql, mysql, oci8, odbc, oracle, pgsql, and sybase. Note that only MySQL and PostgreSQL have been tested with phpBugTracker

DB_HOST

The hostname of the database server.

DB_DATABASE

The name of the database to be used.

DB_USER

Username to use for connecting to the database.

DB_PASSWORD

The password to use for connecting to the database.

ADMIN_EMAIL

The email address that will be used for all correspondence to and from the bug tracker.

ENCRYPT_PASS

When true, passwords will be stored as an md5() hash in the database. When false, they will be stored as plaintext.

If this is set to true, a new password will be generated for users if they request their password to be emailed to them, as the encryption is not reversible.

THEME

The directory below the templates directory (both in the top directory and the admin directory) where the HTML template files are located. This makes it easy to wrap the bug tracker in a completely different look.

USE_JPGRAPH

Whether to use the JpGraph graphing class for some reports.

MASK_EMAIL

If true, then email addresses will be shown as example at example dot com. Otherwise, email addresses will be shown as example@example.com.

HIDE_EMAIL

If true, email addresses will be shown as ****** to users who are not logged in (to help avoid spam bots on public bug trackers). If false, email addresses will be shown according the setting of MASK_EMAIL, above.

USE_SEVERITY_COLOR

Whether to color the rows of the bug list according to the severity of the bugs. The severity colors can be set via the admin interface. If this is false, the bugs will be listed with alternating background colors of white and gray.

EMAIL_IS_LOGIN

If true, then users login with their email address, and the email address is shown for fields such as Assigned To and Reported By. If false, the login is not tied to the user's email address.

STRICT_UPDATING

If set to true, the only people who can make changes to a bug are the reporter, the owner, and those with manager or admin permissions.

NEW_ACCOUNTS_DISABLED

If set to true, newaccount.php is disabled and only admins can create new accounts.

ATTACHMENT_PATH

The subdirectory in which to store bug attachments. This directory needs to writeable by the web server.

ATTACHMENT_MAX_SIZE

Maximum size (in bytes) of an attachment. This will not override the settings in php.ini if php.ini has a lower limit.

DATE_FORMAT

The format for displaying the date, according to PHP's date() function.

TIME_FORMAT

The format for displaying the date, according to PHP's date() function.

LANGUAGE

The language file (found in the languages sub-directory to use for error and warning messages.