github.com/drud/ddev@v1.21.5-alpha1.0.20230226034409-94fcc4b94453/pkg/ddevapp/drupal/drupal6/settings.php (about)

     1  <?php
     2  
     3  /**
     4   * @file
     5   * Drupal site-specific configuration file.
     6   *
     7   * IMPORTANT NOTE:
     8   * This file may have been set to read-only by the Drupal installation
     9   * program. If you make changes to this file, be sure to protect it again
    10   * after making your modifications. Failure to remove write permissions
    11   * to this file is a security risk.
    12   *
    13   * The configuration file to be loaded is based upon the rules below.
    14   *
    15   * The configuration directory will be discovered by stripping the
    16   * website's hostname from left to right and pathname from right to
    17   * left. The first configuration file found will be used and any
    18   * others will be ignored. If no other configuration file is found
    19   * then the default configuration file at 'sites/default' will be used.
    20   *
    21   * For example, for a fictitious site installed at
    22   * http://www.drupal.org/mysite/test/, the 'settings.php'
    23   * is searched in the following directories:
    24   *
    25   *  1. sites/www.drupal.org.mysite.test
    26   *  2. sites/drupal.org.mysite.test
    27   *  3. sites/org.mysite.test
    28   *
    29   *  4. sites/www.drupal.org.mysite
    30   *  5. sites/drupal.org.mysite
    31   *  6. sites/org.mysite
    32   *
    33   *  7. sites/www.drupal.org
    34   *  8. sites/drupal.org
    35   *  9. sites/org
    36   *
    37   * 10. sites/default
    38   *
    39   * If you are installing on a non-standard port number, prefix the
    40   * hostname with that number. For example,
    41   * http://www.drupal.org:8080/mysite/test/ could be loaded from
    42   * sites/8080.www.drupal.org.mysite.test/.
    43   */
    44  
    45  /**
    46   * Database settings:
    47   *
    48   * Note that the $db_url variable gets parsed using PHP's built-in
    49   * URL parser (i.e. using the "parse_url()" function) so make sure
    50   * not to confuse the parser. If your username, password
    51   * or database name contain characters used to delineate
    52   * $db_url parts, you can escape them via URI hex encodings:
    53   *
    54   *   : = %3a   / = %2f   @ = %40
    55   *   + = %2b   ( = %28   ) = %29
    56   *   ? = %3f   = = %3d   & = %26
    57   *
    58   * To specify multiple connections to be used in your site (i.e. for
    59   * complex custom modules) you can also specify an associative array
    60   * of $db_url variables with the 'default' element used until otherwise
    61   * requested.
    62   *
    63   * You can optionally set prefixes for some or all database table names
    64   * by using the $db_prefix setting. If a prefix is specified, the table
    65   * name will be prepended with its value. Be sure to use valid database
    66   * characters only, usually alphanumeric and underscore. If no prefixes
    67   * are desired, leave it as an empty string ''.
    68   *
    69   * To have all database names prefixed, set $db_prefix as a string:
    70   *
    71   *   $db_prefix = 'main_';
    72   *
    73   * To provide prefixes for specific tables, set $db_prefix as an array.
    74   * The array's keys are the table names and the values are the prefixes.
    75   * The 'default' element holds the prefix for any tables not specified
    76   * elsewhere in the array. Example:
    77   *
    78   *   $db_prefix = array(
    79   *     'default'   => 'main_',
    80   *     'users'     => 'shared_',
    81   *     'sessions'  => 'shared_',
    82   *     'role'      => 'shared_',
    83   *     'authmap'   => 'shared_',
    84   *   );
    85   *
    86   * Database URL format:
    87   *   $db_url = 'mysql://username:password@localhost/databasename';
    88   *   $db_url = 'mysqli://username:password@localhost/databasename';
    89   *   $db_url = 'pgsql://username:password@localhost/databasename';
    90   */
    91  $db_url = 'mysql://username:password@localhost/databasename';
    92  $db_prefix = '';
    93  
    94  /**
    95   * Database default collation.
    96   *
    97   * All data stored in Drupal is in UTF-8. Certain databases, such as MySQL,
    98   * support different algorithms for comparing, indexing, and sorting characters;
    99   * a so called "collation". The default collation of a database normally works
   100   * for many use-cases, but depending on the language(s) of the stored data, it
   101   * may be necessary to use a different collation.
   102   * Important:
   103   * - Only set or change this value BEFORE installing Drupal, unless you know
   104   *   what you are doing.
   105   * - All database tables and columns should be in the same collation. Otherwise,
   106   *   string comparisons performed for table JOINs will be significantly slower.
   107   * - Especially when storing data in German or Russian on MySQL 5.1+, you want
   108   *   to use the 'utf8_unicode_ci' collation instead.
   109   *
   110   * @see http://drupal.org/node/772678
   111   */
   112  # $db_collation = 'utf8_general_ci';
   113  
   114  /**
   115   * Access control for update.php script
   116   *
   117   * If you are updating your Drupal installation using the update.php script
   118   * being not logged in as administrator, you will need to modify the access
   119   * check statement below. Change the FALSE to a TRUE to disable the access
   120   * check. After finishing the upgrade, be sure to open this file again
   121   * and change the TRUE back to a FALSE!
   122   */
   123  $update_free_access = FALSE;
   124  
   125  /**
   126   * Base URL (optional).
   127   *
   128   * If you are experiencing issues with different site domains,
   129   * uncomment the Base URL statement below (remove the leading hash sign)
   130   * and fill in the absolute URL to your Drupal installation.
   131   *
   132   * You might also want to force users to use a given domain.
   133   * See the .htaccess file for more information.
   134   *
   135   * Examples:
   136   *   $base_url = 'http://www.example.com';
   137   *   $base_url = 'http://www.example.com:8888';
   138   *   $base_url = 'http://www.example.com/drupal';
   139   *   $base_url = 'https://www.example.com:8888/drupal';
   140   *
   141   * It is not allowed to have a trailing slash; Drupal will add it
   142   * for you.
   143   */
   144  # $base_url = 'http://www.example.com';  // NO trailing slash!
   145  
   146  /**
   147   * PHP settings:
   148   *
   149   * To see what PHP settings are possible, including whether they can
   150   * be set at runtime (ie., when ini_set() occurs), read the PHP
   151   * documentation at http://www.php.net/manual/en/ini.php#ini.list
   152   * and take a look at the .htaccess file to see which non-runtime
   153   * settings are used there. Settings defined here should not be
   154   * duplicated there so as to avoid conflict issues.
   155   */
   156  ini_set('arg_separator.output',     '&amp;');
   157  ini_set('magic_quotes_runtime',     0);
   158  ini_set('magic_quotes_sybase',      0);
   159  ini_set('session.cache_expire',     200000);
   160  ini_set('session.cache_limiter',    'none');
   161  ini_set('session.cookie_lifetime',  2000000);
   162  ini_set('session.gc_maxlifetime',   200000);
   163  ini_set('session.use_cookies',      1);
   164  ini_set('session.use_only_cookies', 1);
   165  ini_set('session.use_trans_sid',    0);
   166  ini_set('url_rewriter.tags',        '');
   167  
   168  /**
   169   * If you encounter a situation where users post a large amount of text, and
   170   * the result is stripped out upon viewing but can still be edited, Drupal's
   171   * output filter may not have sufficient memory to process it. If you
   172   * experience this issue, you may wish to uncomment the following two lines
   173   * and increase the limits of these variables. For more information, see
   174   * http://php.net/manual/en/pcre.configuration.php.
   175   */
   176  # ini_set('pcre.backtrack_limit', 200000);
   177  # ini_set('pcre.recursion_limit', 200000);
   178  
   179  /**
   180   * Drupal automatically generates a unique session cookie name for each site
   181   * based on on its full domain name. If you have multiple domains pointing at
   182   * the same Drupal site, you can either redirect them all to a single domain
   183   * (see comment in .htaccess), or uncomment the line below and specify their
   184   * shared base domain. Doing so assures that users remain logged in as they
   185   * cross between your various domains.
   186   */
   187  # $cookie_domain = 'example.com';
   188  
   189  /**
   190   * Variable overrides:
   191   *
   192   * To override specific entries in the 'variable' table for this site,
   193   * set them here. You usually don't need to use this feature. This is
   194   * useful in a configuration file for a vhost or directory, rather than
   195   * the default settings.php. Any configuration setting from the 'variable'
   196   * table can be given a new value. Note that any values you provide in
   197   * these variable overrides will not be modifiable from the Drupal
   198   * administration interface.
   199   *
   200   * Remove the leading hash signs to enable.
   201   */
   202  # $conf = array(
   203  #   'site_name' => 'My Drupal site',
   204  #   'theme_default' => 'minnelli',
   205  #   'anonymous' => 'Visitor',
   206  /**
   207   * A custom theme can be set for the off-line page. This applies when the site
   208   * is explicitly set to off-line mode through the administration page or when
   209   * the database is inactive due to an error. It can be set through the
   210   * 'maintenance_theme' key. The template file should also be copied into the
   211   * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
   212   * Note: This setting does not apply to installation and update pages.
   213   */
   214  #   'maintenance_theme' => 'minnelli',
   215  /**
   216   * reverse_proxy accepts a boolean value.
   217   *
   218   * Enable this setting to determine the correct IP address of the remote
   219   * client by examining information stored in the X-Forwarded-For headers.
   220   * X-Forwarded-For headers are a standard mechanism for identifying client
   221   * systems connecting through a reverse proxy server, such as Squid or
   222   * Pound. Reverse proxy servers are often used to enhance the performance
   223   * of heavily visited sites and may also provide other site caching,
   224   * security or encryption benefits. If this Drupal installation operates
   225   * behind a reverse proxy, this setting should be enabled so that correct
   226   * IP address information is captured in Drupal's session management,
   227   * logging, statistics and access management systems; if you are unsure
   228   * about this setting, do not have a reverse proxy, or Drupal operates in
   229   * a shared hosting environment, this setting should be set to disabled.
   230   */
   231  #   'reverse_proxy' => TRUE,
   232  /**
   233   * reverse_proxy accepts an array of IP addresses.
   234   *
   235   * Each element of this array is the IP address of any of your reverse
   236   * proxies. Filling this array Drupal will trust the information stored
   237   * in the X-Forwarded-For headers only if Remote IP address is one of
   238   * these, that is the request reaches the web server from one of your
   239   * reverse proxies. Otherwise, the client could directly connect to
   240   * your web server spoofing the X-Forwarded-For headers.
   241   */
   242  #   'reverse_proxy_addresses' => array('a.b.c.d', ...),
   243  # );
   244  
   245  /**
   246   * String overrides:
   247   *
   248   * To override specific strings on your site with or without enabling locale
   249   * module, add an entry to this list. This functionality allows you to change
   250   * a small number of your site's default English language interface strings.
   251   *
   252   * Remove the leading hash signs to enable.
   253   */
   254  # $conf['locale_custom_strings_en'] = array(
   255  #   'forum'      => 'Discussion board',
   256  #   '@count min' => '@count minutes',
   257  # );
   258  
   259  // Automatically generated include for settings managed by ddev.
   260  if (file_exists(__DIR__ . '/settings.ddev.php') && getenv('IS_DDEV_PROJECT') == 'true') {
   261    include __DIR__ . '/settings.ddev.php';
   262  }