Microbizz configuration
config.php
Most system configuration is done in the config.php file, where the array $config
is populated. The array contains the following keys:
systemname | The name identifying this installation of Microbizz. It is used in error mails, and in some page headlines, such as the login page. |
---|---|
systemurl | In these days this parameter is mostly present for legacy reasons. It is still referred many places in the source code, but these could be replaced by systemurlssl |
systemurlssl | The base url for the server, when running on a secure connection. The system will try to redirect to this url, if it detects another url is used. This cannot be used to run microbizz from a subfolder. |
mailserver | The mail server to use for outgoing mail. |
mailuser | The user name for the outgoing mail server. Leave empty to not authenticate. |
mailpwd | The password for the outgoing mail server. |
mailport | The port on which to connect to the mail server. |
mailname | Obsolete. Isn't referred in the source code. |
mailemail | The from-mail to use in order to track bounces. |
bounceserver | The mail server to connect to, when checking for bounced mails. |
bounceuser | The user name for the mail server, when checking for bounced mails. |
bouncepwd | The password for the mail server, when checking for bounced mails. |
testmaildomains | An array. If this server is configured as a test server, then only mails for these domains are actually sent. |
database | The base name of the database. The main server is expected to have a database named exactly like this, and each contract gets a database named database_X where X is the contract-number. |
dbuser | The database user name |
dbpass | The database password |
dbrootpass | The database root password. This is used when installing Microbizz, and when creating new contracts and granting permissions to these. |
errormail | Error mails are sent to this email address. |
mgname | The name of the mail getter. This is used as the sender name, when we need to report back to a user, using the mail getter system. |
mgdomain | The domain name for the mail getter system. Each contract gets an inbound email like X@mgdomain where X is the contract-number. This mail can be used for sending mails into the Microbizz system. |
mgserver | The mail getter mail server name |
mguser | The mail getter mail user name |
mgpwd | The mail getter password |
testserver | Indicates if this is a test server. A test server posts a banner, that it is a test server. It only send mails to specific domains (see above), and it can enable some debug functions in the code. |
salt | A salt to use when generating hashes throughout the system. |
mobile | Deprecated. Used to detect if the mobile branch of the source code is accessed. |
logdir | Where MB should save global log files. |
tempdir | Where MB should save temporary files. |
filestore | The root of the MB filestore. For each contract a subfolder is created here. |
backuppath | Obsolete. Used for old backup system. |
contractbackupdir | Where images of MB-solutions are saved. |
requiressl | Indicates if ssl is required. Should always be true. |
use-layout | Obsolete. Isn't referred in the source code. |
debug | Obsolete. Isn't referred in the source code. |