Skip to content
Snippets Groups Projects
Select Git revision
  • 929904041d5994763ae92e2bc9156b198c018ea5
  • 3.9 default
  • develop
  • 6.0
  • 5.0
  • 4.0
  • scrutinizer-patch-4
  • scrutinizer-patch-3
  • scrutinizer-patch-2
  • scrutinizer-patch-1
  • 3.7
  • 3.8
  • 3.6
  • 3.9_backported
  • 3.8_backported
  • 3.7_backported
  • 3.5
  • 3.6_backported
  • 3.5_backported
  • 3.4
  • 3.3_backported
  • 6.0.4
  • 6.0.3
  • 5.0.7
  • 6.0.2
  • 6.0.1
  • 5.0.6
  • 6.0.0
  • 5.0.5
  • 6.0.0-rc
  • 5.0.4
  • 6.0.0-beta
  • 5.0.3
  • 4.0.6
  • 5.0.2
  • 5.0.1
  • 4.0.5
  • 5.0.0
  • 4.0.4
  • 5.0.0-rc2
  • 5.0.0-rc1
41 results

conf.php.example

Blame
  • conf.php.example 12.33 KiB
    <?php
    // Dolibarr example for conf.php file
    //
    // Do not edit this file without changing its name.
    // This file is an example of empty config file for Dolibarr than can be used to create "conf.php".
    //
    // Warning: Be sure to not add line feed or spaces after closing php tag.
    
    
    //###################
    // Main parameters
    //###################
    
    // dolibarr_main_url_root
    // This parameter defines the root URL of your Dolibarr index.php page without ending "/".
    // It must link to the directory htdocs.
    // In most cases, this is autodetected but it's still required 
    // * to show full url bookmarks for some services (ie: agenda rss export url, ...)
    // * or when using Apache dir aliases (autodetect fails)
    // * or when using nginx (autodetect fails)
    // Examples:
    // $dolibarr_main_url_root='http://localhost';
    // $dolibarr_main_url_root='http://mydolibarrvirtualhost';
    // $dolibarr_main_url_root='http://myserver/dolibarr/htdocs';
    // $dolibarr_main_url_root='http://myserver/dolibarralias';
    //
    $dolibarr_main_url_root='';
    
    
    // dolibarr_main_document_root
    // This parameter contains absolute file system directory of Dolibarr
    // htdocs directory
    // Examples:
    // $dolibarr_main_document_root='/var/www/dolibarr/htdocs';
    // $dolibarr_main_document_root='C:/My web sites/dolibarr/htdocs';
    //
    $dolibarr_main_document_root='';
    
    
    // dolibarr_main_url_root_alt
    // This parameter defines the relative sub URLs to add to $dolibarr_main_url_root to
    // forge alternative root directories (used by modules developers).
    // You can put several values, separated by a coma, but number of entries must match 
    // number of entries into $dolibarr_main_document_root_alt.
    // Examples:
    // $dolibarr_main_url_root_alt='/custom';
    // $dolibarr_main_url_root_alt='/extensions1,/extensions2';
    //
    //$dolibarr_main_url_root_alt='/custom';
    
    
    // dolibarr_main_document_root_alt
    // This parameter contains absolute alternative root file system directories (used by
    // modules developers).
    // You can put several values, separated by a coma, but number of entries must match 
    // number of entries into $dolibarr_main_url_root_alt.
    // Examples:
    // $dolibarr_main_document_root_alt='/var/www/dolibarr/htdocs/custom';
    // $dolibarr_main_document_root_alt='C:/My web sites/dolibarr/htdocs/extensions1,C:/My web sites/dolibarr/htdocs/extensions2';
    //
    //$dolibarr_main_document_root_alt='/var/www/dolibarr/htdocs/custom';
    
    
    // dolibarr_main_data_root
    // This parameter contains absolute file system directory of Dolibarr
    // directory used to store uploaded and generated physical files.
    // Examples:
    // $dolibarr_main_data_root='/var/www/dolibarr/documents';
    // $dolibarr_main_data_root='E:/My web sites/dolibarr/documents';
    //
    $dolibarr_main_data_root='';
    
    
    // dolibarr_main_db_host
    // This parameter contains host name or ip address of Dolibarr database
    // server.
    // Examples:
    // $dolibarr_main_db_host='localhost';
    // $dolibarr_main_db_host='127.0.0.1';
    // $dolibarr_main_db_host='192.168.0.10';
    // $dolibarr_main_db_host='mysql.myserver.com';
    //
    $dolibarr_main_db_host='';
    
    
    // dolibarr_main_db_port
    // This parameter contains the port of the Dolibarr database.
    // Default value: none
    // Examples:
    // $dolibarr_main_db_host='3306';
    //
    $dolibarr_main_db_port='';
    
    
    // dolibarr_main_db_name
    // This parameter contains name of Dolibarr database.
    // Examples:
    // $dolibarr_main_db_name='dolibarr';
    // $dolibarr_main_db_name='mydatabase';
    //
    $dolibarr_main_db_name='';
    
    
    // dolibarr_main_db_user
    // This parameter contains user name used to read and write into
    // Dolibarr database.
    // Examples:
    // $dolibarr_main_db_user='admin';
    // $dolibarr_main_db_user='dolibarruser';
    //
    $dolibarr_main_db_user='';
    
    
    // dolibarr_main_db_pass
    // This parameter contains password used to read and write into
    // Dolibarr database.
    // Examples:
    // $dolibarr_main_db_pass='myadminpass';
    // $dolibarr_main_db_pass='myuserpassword';
    //
    $dolibarr_main_db_pass='';
    
    
    // dolibarr_main_db_type
    // This parameter contains the name of the driver used to access your
    // Dolibarr database.
    // Default value: none
    // Possible values: mysql, mysqli, pgsql
    // Examples:
    // $dolibarr_main_db_type='mysql';
    // $dolibarr_main_db_type='mysqli';
    // $dolibarr_main_db_type='pgsql';
    //
    $dolibarr_main_db_type='';
    
    
    // dolibarr_main_db_character_set
    // Database character set used to store data (forced during database creation).
    // Default value: depends on database driver
    // Examples:
    // dolibarr_main_db_character_set='utf8';
    //
    $dolibarr_main_db_character_set='utf8';
    
    
    // dolibarr_main_db_collation
    // Database character set used to sort data (forced during database creation).
    // Default value: depends on database driver
    // Examples:
    // dolibarr_main_db_collation='utf8_general_ci';
    //
    $dolibarr_main_db_collation='utf8_general_ci';
    
    
    
    //##################
    // Login
    //##################
    
    // dolibarr_main_authentication
    // This parameter contains the way authentication is done.
    // If value "ldap" is used, you must also set parameters dolibarr_main_auth_ldap_*
    // Default value: dolibarr
    // Possible values: Any values found in files in htdocs/core/login directory after
    // the "function_" string and before the ".php" string. You can also separate several
    // values using a ",". In this case, Dolibarr will check login/pass for each value in 
    // order defined into value. However, note that this can't work with all values.
    // Examples:
    // $dolibarr_main_authentication='http';
    // $dolibarr_main_authentication='dolibarr';
    // $dolibarr_main_authentication='ldap';
    // $dolibarr_main_authentication='openid,dolibarr';
    // $dolibarr_main_authentication='forceuser';	// Add also $dolibarr_auto_user='loginforuser';
    
    //
    $dolibarr_main_authentication='dolibarr';
    
    
    // Parameters used to setup LDAP authentication.
    // Uncomment them if dolibarr_main_authentication = 'ldap'
    //
    // $dolibarr_main_auth_ldap_host='127.0.0.1';                  // You can define several servers here separated with a comma.
    // $dolibarr_main_auth_ldap_port='389';                        // Port
    // $dolibarr_main_auth_ldap_version='3';
    // $dolibarr_main_auth_ldap_servertype='openldap';			   // openldap, activedirectory or egroupware
    // $dolibarr_main_auth_ldap_login_attribute='loginfield';	   // Ex: uid or samaccountname for active directory
    // $dolibarr_main_auth_ldap_dn='ou=users,dc=my-domain,dc=com'; // Ex: ou=users,dc=my-domain,dc=com
    // $dolibarr_main_auth_ldap_filter = '';                       // If defined, two previous parameters are not used to find a user into LDAP. Ex: (uid=%1%) or &(uid=%1%)(isMemberOf=cn=Sales,ou=Groups,dc=opencsi,dc=com).
    // $dolibarr_main_auth_ldap_admin_login='';					   // Required only if anonymous bind disabled. Ex: cn=admin,dc=example,dc=com
    // $dolibarr_main_auth_ldap_admin_pass='';					   // Required only if anonymous bind disabled. Ex: secret
    // $dolibarr_main_auth_ldap_debug='false';
    
    
    // dolibarr_main_demo
    // Login and pass to use in a demo mode
    // Default value: ''
    // Examples:
    // $dolibarr_main_demo='autologin,autopass'
    
    
    
    //##################
    // Security
    //##################
    
    // dolibarr_main_force_https
    // This parameter allows to force the HTTPS mode.
    // 0 = No forced redirect
    // 1 = Force redirect to https, until SCRIPT_URI start with https into response
    // 2 = Force redirect to https, until SERVER["HTTPS"] is 'on' into response
    // 'https://my.domain.com' = Force reditect to https using this domain name. 
    // Warning: If you enable this parameter, your web server must be configured to
    // respond URL with https protocol. 
    // According to your web server setup, some values may works and other not. Try 
    // different values (1,2 or 'https://my.domain.com') if you experience problems.
    // Default value: 0
    // Possible values: 0, 1, 2 or 'https://my.domain.com'
    // Examples:
    // $dolibarr_main_force_https='0';
    //
    $dolibarr_main_force_https='0';
    
    // dolibarr_main_prod
    // When this parameter is defined, all errors messages are not reported.
    // This feature exists for production usage to avoid to give any information to hackers.
    // Default value: 0
    // Possible values: 0 or 1
    // Examples:
    // $dolibarr_main_prod='0';
    //
    $dolibarr_main_prod='0';
    
    // $dolibarr_main_restrict_os_commands
    // To restrict commands you can execute by the backup feature, enter allowed command here.
    // Note: If you can, defining permission on OS linux (using SELinux for example) may be a better choice.
    // Default value: 'mysqldump, mysql, pg_dump, pgrestore'
    // Examples:
    // $dolibarr_main_restrict_os_commands='mysqldump, /usr/local/bin/otherdumptool';
    //
    $dolibarr_main_restrict_os_commands='mysqldump, mysql, pg_dump, pgrestore';
    
    // dolibarr_nocsrfcheck
    // This parameter can be used to disable CSRF protection.
    // This might be required if you access Dolibarr behind a proxy that make
    // URL rewriting, to avoid false alarms.
    // Default value: 0
    // Possible values: 0 or 1
    // Examples:
    // $dolibarr_nocsrfcheck='0';
    //
    $dolibarr_nocsrfcheck='0';
    
    // dolibarr_mailing_limit_sendbyweb
    // Can set a limit for mailing send by web. Can be used for a restricted mode.
    // Default value: 0 (use database value if exist)
    // Examples:
    // $dolibarr_mailing_limit_sendbyweb='0';
    
    
    
    //##################
    // Other
    //##################
    
    // dolibarr_main_db_prefix
    // This parameter contains prefix of Dolibarr database. 'llx_' if not defined.
    // Examples:
    // $dolibarr_main_db_prefix='llx_';
    
    // dolibarr_main_limit_users
    // Can set a limit on the number of users it will be possible to create
    // (the superadmin not included). Can be used for a restricted mode.
    // Default value: 0 (unlimited)
    // Examples:
    // $dolibarr_main_limit_users='0';
    
    // dolibarr_mailing_limit_sendbyweb
    // Can set a limit for mailing send by web. This overwrite database value. Can be used to restrict on OS level.
    // Default value: '0' (no overwrite, use database value if exists)
    // Examples: '-1' (sending by web is forbidden)
    // $dolibarr_mailing_limit_sendbyweb='0';
    
    // dolibarr_mailing_limit_sendbycli
    // Can set a limit for mailing send by cli. This overwrite database value. Can be used to restrict on OS level.
    // Default value: '0' (no overwrite, use database value if exists)
    // Examples: '-1' (sending by cli is forbidden)
    // $dolibarr_mailing_limit_sendbycli='0';
    
    // dolibarr_strict_mode
    // Set this to 1 to enable the PHP strict mode. For dev environment only.
    // Default value: 0 (use database value if exist)
    // Examples:
    // $dolibarr_strict_mode=0;
    
    // dolibarr_pdf_force_fpdf
    // Set this to 1 to use the libray FPDF instead of TCPDF. FPDF is not embedded with Dolibarr, 
    // so you also have to uncomment line $dolibarr_lib_FPDF_PATH to provide path to FPDF library.
    // Warning: FPDF does not support all features supported by TCPDF used by default. So using
    // this library instead of TCPF will break some features like transparent logo, cyrillic, arab,
    // and asiatic languages, total number of pages, ...
    // Default value: 0
    // Examples:
    // $dolibarr_pdf_force_fpdf=1;
    
    
    
    //#################################
    // Path to external libraries/fonts
    //#################################
    
    // Value to overwrite path to use shared libraries instead of embedded one
    //$dolibarr_lib_ADODB_PATH='/usr/share/php/adodb';
    //$dolibarr_lib_TCPDF_PATH='/usr/share/php/tcpdf';
    //$dolibarr_lib_FPDI_PATH='/usr/share/php/fpdi';
    //$dolibarr_lib_FPDF_PATH='/usr/share/php/fpdf';
    //$dolibarr_lib_GEOIP_PATH='';
    //$dolibarr_lib_NUSOAP_PATH='/usr/share/php/nusoap';
    //$dolibarr_lib_PHPEXCEL_PATH='';
    //$dolibarr_lib_ODTPHP_PATH='';
    //$dolibarr_lib_ODTPHP_PATHTOPCLZIP="/usr/share/php/libphp-pclzip";
    // Value to overwrite path to use shared javascript instead of embedded one
    //$dolibarr_js_CKEDITOR='/javascript/ckeditor';
    //$dolibarr_js_JQUERY='/javascript/jquery';
    //$dolibarr_js_JQUERY_UI='/javascript/jquery-ui';
    //$dolibarr_js_JQUERY_FLOT='/javascript/flot';
    // Value to overwrite some path to use font instead of embedded one
    //$dolibarr_font_DOL_DEFAULT_TTF="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf";
    //$dolibarr_font_DOL_DEFAULT_TTF_BOLD="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf";
    
    
    //##############################
    // External module
    //##############################
    
    // multicompany_transverse_mode
    // Prerequisite: Need external module "multicompany"
    // Pyramidal   (0): The rights and groups are managed in each entity. Each user belongs to the entity he was created into.
    // Transversal (1): The user is created and managed only into master entity but can login to all entities if he is admmin
    //                  of entity or belongs to at least one user group created into entity.
    
    // Default value: 0 (pyramidal)
    // Examples:
    // $multicompany_transverse_mode='1';