- Installed Constants
  - Config/Constants.inc
    - Location
    - Description
    - Contents
  - Config/SqlConstants.inc
    - Location
    - Description
    - Access
  - Config/PHP/Install.pm
    - Location
    - Description
  - Config/SqlConstants.pm
    - Location
    - Description
    - Access

## Installed Constants

When you install this application, a number of files containing various constants are created based on the answers to the questions the install script asked.

Most constants are stored in the PHP file Config/Constants.inc. This provides constant values for directories, user names etc. both for the web application and for all of the Perl scripts.

There are some other files created, some of which have to be protected from casual viewing because they contain the MySQL password of the QuartzPVR database. The full pathname of the files, as installed on this system are:

### Config/Constants.inc

#### Location

%PVR_ROOT%/php/Config/Constants.inc

#### Description

Contains most of the constants/settings used by the web application and the Perl scripts. You may adjust some of these settings to change the behaviour of the application.

#### Contents

PVR_USER

  The Linux user to use for Quartz PVR Perl scripts. Set to %PVR_USER%

PVR_GROUP

  The primary group of the Linux user used for Quartz PVR. Set to %PVR_GROUP%

PVR_HOME

  The home directory of the Linux user used for Quartz PVR. Set to %PVR_HOME%

PVR_LOGDIR

  Main logging directory to use for logging Perl script output. Set to %PVR_LOGDIR%

MAIL_TO

  The mail account that the Perl scripts will send any run errors to. Set to %MAIL_TO%

DATABASE

  The MySQL database name. Set to %DATABASE%

PVR_ROOT

  The top-level directory under which the web application is installed. Set to %PVR_ROOT%

DVBT_FREQFILE

  The frequency file to use with the dvbt-scan script when setting up the DVB-T initial tuning. Set to %DVBT_FREQFILE%

VIDEO_DIR

  Top-level directory for recording videos. Video files will be stored in sub-directories under this directory. Set to %VIDEO_DIR%

AUDIO_DIR

  Top-level directory for recording audio. Audio files will be stored in sub-directories under this directory. Set to %AUDIO_DIR%

SERVER_PORT

  The TCP port number to be used by the Quartz PVR server (which interfaces requests from the web application to the Perl scheduling script). Set to %SERVER_PORT%

$DATE_TZ

  The date timezone setting for the PHP application. Currently set to "Europa/London" until I can work out how to adjust it!

### Config/SqlConstants.inc

#### Location

%PVR_ROOT%/php/Config/SqlConstants.inc

#### Description

Contains the MySQL username and password for the Quartz PVR database.

#### Access

This is only readable by root or the web server.

### Config/PHP/Install.pm

#### Location

%perl_lib%/Linux/DVB/DVBT/Apps/QuartzPVR/Config/PHP/Install.pm

#### Description

Contains the full path to the web application to allow the Perl scripts access.

### Config/SqlConstants.pm

#### Location

%perl_lib%/Linux/DVB/DVBT/Apps/QuartzPVR/Config/SqlConstants.pm

#### Description

Contains the MySQL username and password for the Quartz PVR database.

#### Access

This is only readable by root or the Quartz PVR Linux user.