Differences

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

Link to this comparison view

Next revision
Previous revision
en:2.0:konfigurationsdatei_config.php [2015/12/30 21:42] – created thomas-rcven:2.0:konfigurationsdatei_config.php [2024/02/11 08:21] (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 25: Line 25:
 Possible values: default by Host\\  Possible values: default by Host\\ 
 Required version: ''**from 1.0**'' Required version: ''**from 1.0**''
 +
 +==== $g_adm_port ====
 +Optionally the port to the database can be specified here. If this parameter is not set, the default port of the database (MySQL: 3306, PostgreSQL: 5432) is used.
 +
 +Possible values: Specification from the webhoster\\ 
 +Required version: ''​**from 3.2**''
  
 ==== $g_organization ==== ==== $g_organization ====
Line 36: Line 42:
  
  
-Possible values: http://demo.admidio.org 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**''
  
Line 48: 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 57: 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 70: 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 76: 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 82: 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 ====
 +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'', ''ARGON2ID'', ''ARGON2I''​\\ ​
 +Required version: ''​**from 3.2**''
 +
 +==== $gForceHTTPS ====
 +Admidio automatically recognizes whether communication is encrypted with https or not. In rare cases, this 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''​\\ ​
 +Required version: ''​**from 3.2**''
  
 ==== $gTimezone ==== ==== $gTimezone ====
  • en/2.0/konfigurationsdatei_config.php.1451508135.txt.gz
  • Last modified: 2015/12/30 21:42
  • by thomas-rcv