Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:2.0:konfigurationsdatei_config.php [2017/01/03 10:54] fasseen:2.0:konfigurationsdatei_config.php [2024/05/31 10:51] (current) fasse
Line 1: Line 1:
-====== The Configuration file config.php ======+====== Configuration file config.php ======
 Like many other programs Admidio also provides a central configuration file, in which the most important settings are stored. You'll find the file in the folder **adm_my_files** (up to and including 2.4 Admidio the file was directly saved in the  Admidio main folder). It is automatically created during the installation and stored there. Usually it is no longer necessary to open and edit. In rare cases, but this may still be necessary, for example, while moving the Admidio folder or to activate a more detailed logs. For this reason we want to give you an overview of the existing and possible settings in the file, as well as a explanation of each setting. Like many other programs Admidio also provides a central configuration file, in which the most important settings are stored. You'll find the file in the folder **adm_my_files** (up to and including 2.4 Admidio the file was directly saved in the  Admidio main folder). It is automatically created during the installation and stored there. Usually it is no longer necessary to open and edit. In rare cases, but this may still be necessary, for example, while moving the Admidio folder or to activate a more detailed logs. For this reason we want to give you an overview of the existing and possible settings in the file, as well as a explanation of each setting.
  
Line 43: Line 43:
  
 Possible values: https://www.admidio.org/demo or the URL to your Admidio installation\\  Possible values: https://www.admidio.org/demo or the URL to your Admidio installation\\ 
-Required version: ''**from 1.0**''\\ ​ +Required version: ''**from 1.0**''
-Deprecated:​ ''​**from 3.2**''+
  
 ==== $g_tbl_praefix ==== ==== $g_tbl_praefix ====
Line 55: Line 54:
 Any user, whether logged out or logged in, will have a unique session ID. This ID is passed on every page request. If a foreign person is now scanning the traffic between the computer and the server and gets access to this ID, he could assign with this session ID as current user. He therefore would has all the rights in the system that owns the original user. To prevent this abuse, Admidio compares additionally on every page request, the associated IP address to this session. If the IP address changes in between, so Admidio recognizes this as an invalid connection and closes the corresponding session. Any user, whether logged out or logged in, will have a unique session ID. This ID is passed on every page request. If a foreign person is now scanning the traffic between the computer and the server and gets access to this ID, he could assign with this session ID as current user. He therefore would has all the rights in the system that owns the original user. To prevent this abuse, Admidio compares additionally on every page request, the associated IP address to this session. If the IP address changes in between, so Admidio recognizes this as an invalid connection and closes the corresponding session.
  
-This setting is always enabled and does not need to be explicitly set in config.php. +This setting is deactivated by default, as it can cause problems for usersFor example, some users intentionally use services that regularly change the IP address. It can also happen that some providers deliberately change the IP address after certain period of time.
-Are there, however, some users having problems or some users are using deliberately Services that change the IP address on regular basis, so the test can be disabled.+
  
-Possible values: ''**0**'' (disabled) or ''**1**'' (enabled)\\ +Possible values: ''​true'',​ ''​false''\\ 
 Required version: ''**from 3.1**'' Required version: ''**from 3.1**''
  
Line 64: Line 62:
 Admidio supports in addition to MySQL also PostgreSQL databases. This variable specifies which database engine is to be used. Admidio supports in addition to MySQL also PostgreSQL databases. This variable specifies which database engine is to be used.
  
-Possible values: ''**mysql**'' or ''**postgresql**''\\ +Possible values: ''**mysql**'' or ''**pgsql**''\\ 
 Required version: ''**from 2.3**'' Required version: ''**from 2.3**''
  
Line 77: Line 75:
   * Uncompressed Javascript and CSS files are linked   * Uncompressed Javascript and CSS files are linked
  
-Possible values: ''**0**'' (disabled) or ''**1**'' (enabled)\\ +Possible values: ''​true'',​ ''​false''\\ 
 Required version: ''**from 2.0**'' Required version: ''**from 2.0**''
  
Line 83: Line 81:
 This parameter is only ** ** intended for test systems and allows a [[en:entwickler: testumgebung_einrichten#upload_test_data|test data import]]. In a production environment, this can lead to a complete loss of data. This parameter is only ** ** intended for test systems and allows a [[en:entwickler: testumgebung_einrichten#upload_test_data|test data import]]. In a production environment, this can lead to a complete loss of data.
  
-Possible values: ''**0**'' (disabled) or ''**1**'' (enabled)\\ +Possible values: ''​true'',​ ''​false''\\ 
 Required version: ''**from 3.0**'' Required version: ''**from 3.0**''
  
Line 89: Line 87:
 This flag ensures that a database update can only be carried out on a new Admidio version, if an administrator has given his credentials in the update script. This function is always active in the default and can be disabled in the config.php via this parameter. For security reasons, we recommend that this feature should always be enabled. In a test systems it is useful to disable the function. This flag ensures that a database update can only be carried out on a new Admidio version, if an administrator has given his credentials in the update script. This function is always active in the default and can be disabled in the config.php via this parameter. For security reasons, we recommend that this feature should always be enabled. In a test systems it is useful to disable the function.
  
-Possible values: ''**0**'' (disabled) or ''**1**'' (enabled)\\ +Possible values: ''​true'',​ ''​false''\\ 
 Required version: ''**from 3.0**'' Required version: ''**from 3.0**''
 +
 +==== $gSetCookieForDomain ====
 +This flag ensures that the cookie is valid for the entire domain where Admidio is installed. If Admidio is installed in the folder ''www.meine-domain.org/admidio'', for security reasons the default cookie is only available for scripts located in the folder ''www.my-domain.org/admidio'' or below. Scripts at ''www.meine-domain.org'' or ''www.my-domain.org/test'' can not read the cookie. If you want to use a script to log in to Admidio in another folder, you must activate this flag.
 +
 +Possible values: ''​true'',​ ''​false''​\\ ​
 +Required version: ''**from 3.2.11**''
 +
  
 ==== $gPasswordHashAlgorithm ==== ==== $gPasswordHashAlgorithm ====
-Optionally, the encryption algorithm for the user passwords can be stored here. This should always point to '' DEFAULT ''. Then the best algorithm, supported by all current PHP installations, is taken. ''SHA512'' is not automatically available on all servers, so this option should only be selected if it is ensured that the Admidio version will always run on a server that supports this encryption.+Optionally, the encryption algorithm for the user passwords can be stored here. This should always point to '' DEFAULT ''. Then the best algorithm, supported by all current PHP installations, is taken. ''SHA512'' is not automatically available on all servers, so this option should only be selected if it is ensured that the Admidio version will always run on a server that supports this encryption. The encodings ''ARGON2ID'' and ''ARGON2I'' are only available from Admidio 4
  
-Possible values: ''​DEFAULT'',​ ''​BCRYPT'',​ ''​SHA512''​\\ ​+Possible values: ''​DEFAULT'',​ ''​BCRYPT'',​ ''​SHA512'', ''ARGON2ID'', ''ARGON2I''​\\ ​
 Required version: ''​**from 3.2**'' Required version: ''​**from 3.2**''
  
 ==== $gForceHTTPS ==== ==== $gForceHTTPS ====
-Optionallya forwarding of HTTP calls to HTTPS calls can be set by Admidio. The default setting is ''false''.+Admidio automatically recognizes whether communication is encrypted with https or not. In rare casesthis recognition does not work. In this case, you can tell Admidio that the connection should always be encrypted. Set this parameter to ''true''. The default setting is ''false'' if not set.
  
 Possible values: ''​true'',​ ''​false''​\\ ​ Possible values: ''​true'',​ ''​false''​\\ ​
 Required version: ''​**from 3.2**'' Required version: ''​**from 3.2**''
 +
 +==== $gDisableEmailSending ====
 +Prevents all emails from being sent via the system. This includes both system notifications and emails created by users. This parameter should only be set in demo systems where the email interface should still be visible but the improper sending of emails should be prevented. Set this parameter to ''true''. The default setting is ''false'' if not set.
 +
 +Possible values: ''​true'',​ ''​false''​\\ ​
 +Required version: ''​**from 4.3.8**''
  
 ==== $gTimezone ==== ==== $gTimezone ====
  • en/2.0/konfigurationsdatei_config.php.1483437259.txt.gz
  • Last modified: 2017/01/03 10:54
  • (external edit)