This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation. |
Difference between revisions of "Configuration file"
From Group-Office Groupware and CRM Documentation
(→Servermanager settings list) |
(→Z-push 2 settings list) |
||
Line 580: | Line 580: | ||
|zpush2_max_attachmentsize | |zpush2_max_attachmentsize | ||
|10485760 | |10485760 | ||
− | |Maximum syncable attachment size. If you set this too high you'll get a memory_limit exhausted error and sync will fail completely | + | |Maximum syncable attachment size in bytes (default 10MB). If you set this too high you'll get a memory_limit exhausted error and sync will fail completely |
|- | |- | ||
|} | |} |
Revision as of 10:30, 7 June 2013
The values described here can be put in your config.php file as $config['varname']='value'; The file can be located in:
- /etc/groupoffice/config.php
- /etc/groupoffice/<APACHE SERVER_NAME>/config.php
- The Group-Office directory or any of it's parent directories.
For most users it's not necessary to edit this file though. The installer sets most values.
Contents
- 1 Config file settings lists
- 1.1 General settings
- 1.2 Look and feel settings
- 1.3 Password settings
- 1.4 Localization settings list
- 1.5 User settings list
- 1.6 User group settings list
- 1.7 Debugging and logging settings list
- 1.8 Database settings list
- 1.9 Filesystem settings
- 1.10 Email settings list
- 1.11 Sieve settings list
- 1.12 Advanced SMTP
- 1.13 External program settings
- 1.14 Servermanager settings list
- 1.15 Z-push 2 settings list
Config file settings lists
General settings
Name | Default | Description |
---|---|---|
enabled | true | Enable the Group-Office installation |
id | "groupoffice" | Group-Office server ID |
default_theme | "Default" | Default theme. |
allowed_modules | "" | Comma separated list of allowed modules. Leave empty to allow all modules. |
html_editor_font | "font-size:13px; font-family:Arial, Helvetica, sans-serif;" | The font used in all HTML editor including the E-mail editor. |
tcpdf_font | "dejavusans" | The default font to be used in the generated PDF files. Change to "helvetica" for lighter PDF's but you'll lose UTF-8 support. |
tcpdf_font_size | 9 | The default font size to be used in the generated PDF files. |
full_url | Auto generated | Full URL to reach Group-Office with slash on end. This value is determined automatically if not set in config.php. |
host | "/groupoffice/" | Relative hostname with slash on both start and end. |
webmaster_email | "webmaster@example.com" | The email address of the webmaster. |
root_path | "" | The path to the root of Group-Office with trailing slash. |
tmpdir | "/tmp/" | The path to store temporary files with trailing slash. |
checker_interval | 120 | The amount of seconds before Group-Office will check for new mail or other notifications. (since 4.1.45) |
zlib_compress | true | Enable zlib compression for faster downloading of scripts and css |
nav_page_size | "50" | The number of items displayed in the navigation panels (Calendars, addressbooks etc.) Don't set this number too high because it may slow the browser and server down. |
curl_proxy | "" | If you are behind a proxy you can set it here for all CURL operations Group-Office performs. |
default_max_rows_list | "30" | The default page size of lists. |
callto_template | "callto:{phone}" | Template of "Callto: link". |
Look and feel settings
Name | Default | Description |
---|---|---|
title | "" | Title of Group-Office |
help_link | "http://wiki4.group-office.com/wiki/" | The link in menu help -> contents. |
support_link | If the pro version is installed it defaults to the Intermesh support system | The link or e-mail address in menu help -> contents. |
favicon | "" | relative URL to a custom favicon file |
custom_css_url | "" | Relative URL to a custom CSS url |
Password settings
Name | Default | Description |
---|---|---|
password_validate | true | Enable password validation (for strong passwords options below) |
password_min_length | "6" | Minimum required password length |
password_require_uc | true | Require an uppercase characters |
password_require_lc | true | Require a lowercase characters |
password_require_num | true | Require a number |
password_require_sc | true | Require a special char |
password_require_uniq | "3" | Required number of unique characters |
default_password_length | "6" | Length of the password generated when a user uses the lost password option. |
disable_security_token_check | false | Disable security check for cross domain forgeries. |
force_ssl | false | Force an HTTPS connection in the main /index.php |
session_inactivity_timeout | "0" | Automatically log a user out after n seconds of inactivity. |
Localization settings list
Name | Default | Description |
---|---|---|
language | "en" | Default language |
default_country | "NL" | Default country |
default_vat | "21" | Default VAT percentage |
default_timezone | "Europe/Amsterdam" | Default timezone |
default_currency | "€" | Default currency |
default_date_format | "dmY" | Default date format |
default_date_separator | "-" | Default date separator |
default_time_format | "G:i" | Default time format |
default_sort_name | "last_name" | Default name formatting and sorting. Can be last_name or first_name. |
default_first_weekday | "1" | Default first day of the week: 0=sunday 1=monday. |
default_decimal_separator | "," | Default decimal separator for numbers. |
default_thousands_separator | '.' | Default thousands separator for numbers. |
locale_all | default is your server's php locale | Locale setting for Group-Office command line calls, for example "en_US.UTF-8" or "nb_NO.UTF-8". Set this to a UTF-8 locale if special characters cannot be used in command line calls. Run "locale -a" to see your server's available locales. |
User settings list
Name | Default | Description |
---|---|---|
allow_themes | true | Enable theme switching by users |
allow_password_change | true | Enable password changing by users |
allow_profile_edit | true | Enable profile editing by every user through the settings dialog |
allow_registration | false | Enable user registration by everyone |
allow_duplicate_email | false | Allows email addresses to occur more than once over the user profiles |
register_user_groups | "" | Add self-registered users to these user groups. Group names are separated by a comma. |
register_visible_user_groups | "Everyone" | Add self-registered users will be visible to these user groups. Group names are separated by a comma. |
max_users | 0 | The maximum number of users. |
limit_usersearch | 0 | If set, user queries will only return this maximum number of users. Useful in large environments where you don't want users to scroll through all. |
User group settings list
Name | Default | Description |
---|---|---|
group_root | "1" | The "Administrators" user group ID |
group_everyone | "2" | The "Everyone" user group ID |
group_internal | "3" | The "Internal" user group ID |
Debugging and logging settings list
Name | Default | Description |
---|---|---|
debug | false | Run Group-Office in debug mode. This will log much info to /home/groupoffice/log/debug.log and will use uncompressed javascripts. You can also enable this as admin in Group-Office by pressing CTRL+F7. |
debug_log | false | Just enable the debug log. See debug.log in your Group-Office log folder. |
log_max_days | 14 | Set the number of days the database log will contain until it will be dumped to a CSV file on disk. The log module must be installed. |
firephp | false | Enable FirePhp |
info_log | "" | Info log location. This logs all logins and logouts. If empty it will be in <file_storage_path>/log/info.log. Leave empty to disable this log. |
syncml_debug_level | 0 | The higher you set it the more info you get in /home/groupoffice/log/syncml.log |
syncml_debug_users | array() | If set then the syncml server will only log debug info for these users |
Database settings list
Name | Default | Description |
---|---|---|
db_host | "" | The host of the database |
db_name | "" | The name of the database |
db_user | "" | The username to connect to the database |
db_pass | "" | The password to connect to the database |
db_port | "3306" | Specifies the port number to attempt to connect to the MySQL server. |
db_socket | "" | Specifies the socket or named pipe that should be used. |
db_auto_increment_increment | 1 | Useful in clustering mode. Set to the number of clustered nodes. |
db_auto_increment_offset | 1 | Give each node an incremented number. |
Filesystem settings
Name | Default | Description |
---|---|---|
file_storage_path | "/home/groupoffice" | The path to the location where the files of the file browser module are stored. This path should NEVER be inside the document root of the webserver. This directory should be writable by apache. Furthermore, choose a partition that has enough diskspace. |
convert_utf8_filenames_to_ascii | false | Convert non ASCII characters to ASCII codes when uploaded to Group-Office. Useful for Windows servers that don't support UTF8. |
max_file_size | 10000000 | The maximum file size that the file browser may upload. Note that the php.ini file must be set accordingly (http://www.php.net). |
max_file_versions | 3 | Maximum number of old file versions to keep. -1 will disable versioning. 0 will keep an infinite number of versions (Be careful!). |
file_create_mode | "0644" | The permissions mode to use when creating files |
folder_create_mode | "0755" | The permissions mode to use when creating folders |
file_change_group | "" | Sets Group-Office files to this file system group. |
filesearch_tesseract_lang | "" | Language to use when using OCR. Install tesseract-ocr-* for the lang. eg. tesseract-ocr-nld and set this value to "nld" for dutch. Or use "nld+eng" for both Dutch and English |
quota | 0 | The maximum number KB this Group-Office installation may use. 0 will allow unlimited usage of disk space. It's NOT possible to define quota's per user. |
Email settings list
Name | Default | Description |
---|---|---|
smtp_server | "localhost" | The SMTP host to use |
smtp_port | "25" | The SMTP port to use |
smtp_username | "" | The SMTP username for authentication (empty for no authentication) |
smtp_password | "" | The SMTP password for authentication |
smtp_encryption | "" | Leave blank or set to "tls" or "ssl" |
smtp_local_domain | "" | The Swift mailer component auto detects the domain you are connecting from. In some cases it fails and uses an invalid IPv6 IP like ::1. You can override it here. |
swift_qp_dot_escape | false | A special Swift preference to escape dots. For some buggy SMTP servers this is necessary. |
email_disable_aliases | false | Set to true to prevent users from changing their e-mail aliases in the email module. |
disable_imap_capabilities | "" | We stumbled upon a dovecot server that crashed when sending a command using LIST-EXTENDED. With this option we can workaround that issue. |
restrict_smtp_hosts | "" | A comma separated list of smtp server IP addresses that you want to restrict. E.g. "213.207.103.219:10,127.0.0.1:10"; will restrict those IP's to 10 e-mails per day. |
max_attachment_size | 20971520 | The maximum summed size of e-mail attachments in a message in bytes Group-Office will accept. Please be aware that the SMTP server has size limits too. |
smime_root_cert_location | Specifies the name of a file containing a bunch of extra certificates to include in the signature which can for example be used to help the recipient to verify the certificate that you used. See also http://php.net/manual/en/function.openssl-pkcs7-sign.php | |
email_autolink_contacts | false | EXPERIMENTAL. Will link ALL e-mails to contacts automatically when sending mails. |
Sieve settings list
Name | Default | Description |
---|---|---|
sieve_rewrite_hosts | "" | Rewrite IMAP hosts when using imapproxy for example. Eg. "localhost=imap.example.com,imapproxy=imap2.example.com" |
sieve_vacation_subject | "" | If set this will be used as a subject. When empty "Auto:" is prepended to the original subject |
sieve_usetls | false | Default setting for the TLS checkbox |
sieve_port | 4190 | Default sieve port |
Advanced SMTP
Name | Default | Description |
---|---|---|
smtp_account_id | false | Enable sending system emails with an email account from the email module. Needs to be the id of the wanted mail account. |
smtp_account_smime_sign | false | Enable Smime for outgoing system emails. Note: this only works when a mailaccount is used to send the system emails (Please see: $smtp_account_id) |
smtp_account_smime_password | "" | The password that is needed to sign the Smime certificate for outgoing system emails. Note: this is only needed when a mailaccount is used to send the system emails (Please see: smtp_account_id) and when smtp_account_smime_sign is set to true |
External program settings
Name | Default | Description |
---|---|---|
cmd_zip | "/usr/bin/zip" | Command to create ZIP archive. |
cmd_unzip | "/usr/bin/unzip" | Command to unpack ZIP archive. |
cmd_tar | "/bin/tar" | Command to control TAR archives. |
cmd_sudo | "/usr/bin/sudo" | Command to set system passwords. Used by passwd.users.class.inc. SUDO must be set up! |
cmd_chpasswd | "/usr/sbin/chpasswd" | Command to SUDO. |
cmd_xml2wbxml | "/usr/bin/xml2wbxml" | Command to convert xml to wbxml. |
cmd_wbxml2xml | "/usr/bin/wbxml2xml" | Command to convert wbxml to bxml. |
cmd_tnef | "/usr/bin/tnef" | Command to unpack winmail.dat files. |
cmd_php | "php" | Command to execute the php command line interface. |
Servermanager settings list
Name | Default | Description |
---|---|---|
servermanager_auto_groups | See Server_Manager#Configurable_options |
Z-push 2 settings list
Name | Default | Description |
---|---|---|
zpush2_max_attachmentsize | 10485760 | Maximum syncable attachment size in bytes (default 10MB). If you set this too high you'll get a memory_limit exhausted error and sync will fail completely |