/[drupal]/contributions/modules/provision/platform/provision_drupal_settings.tpl.php
ViewVC logotype

Contents of /contributions/modules/provision/platform/provision_drupal_settings.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.18 - (show annotations) (download) (as text)
Thu Oct 29 17:21:05 2009 UTC (4 weeks, 1 day ago) by adrian
Branch: MAIN
Changes since 1.17: +11 -6 lines
File MIME type: text/x-php
Use apaches mod_env to set the database credentials in the virtualhost file, so that they are only accessible inside a specific process. the $_SERVER values are now bootstrapped in the verify site process and the config file rewritten, so that you can now safely verify a site. the $_SERVER values are stored inside the site drushrc.php so that normal drush commands will continue to operate as they would. The open_basedir directive is commented out until we can resolve issues with it.
1
2 $databases['default']['default'] = array(
3 'driver' => urldecode($_SERVER['db_type']),
4 'database' => urldecode($_SERVER['db_name']),
5 'username' => urldecode($_SERVER['db_user']),
6 'password' => urldecode($_SERVER['db_passwd']),
7 'host' => urldecode($_SERVER['db_host']),
8 );
9 $db_url = "<?php print strtr("%db_type://%db_user:%db_passwd@%db_host/%db_name", array(
10 '%db_type' => '$_SERVER[db_type]',
11 '%db_user' => '$_SERVER[db_user]',
12 '%db_passwd' => '$_SERVER[db_passwd]',
13 '%db_host' => '$_SERVER[db_host]',
14 '%db_name' => '$_SERVER[db_name]')); ?>";
15
16 $profile = "<?php print $profile ?>";
17 /**
18 * PHP settings:
19 *
20 * To see what PHP settings are possible, including whether they can
21 * be set at runtime (ie., when ini_set() occurs), read the PHP
22 * documentation at http://www.php.net/manual/en/ini.php#ini.list
23 * and take a look at the .htaccess file to see which non-runtime
24 * settings are used there. Settings defined here should not be
25 * duplicated there so as to avoid conflict issues.
26 */
27 @ini_set('arg_separator.output', '&amp;');
28 @ini_set('magic_quotes_runtime', 0);
29 @ini_set('magic_quotes_sybase', 0);
30 @ini_set('session.cache_expire', 200000);
31 @ini_set('session.cache_limiter', 'none');
32 @ini_set('session.cookie_lifetime', 0);
33 @ini_set('session.gc_maxlifetime', 200000);
34 @ini_set('session.save_handler', 'user');
35 @ini_set('session.use_only_cookies', 1);
36 @ini_set('session.use_trans_sid', 0);
37 @ini_set('url_rewriter.tags', '');
38
39 /**
40 * Set the umask so that new directories created by Drupal have the correct permissions
41 */
42 umask(0002);
43
44
45 global $conf;
46 $conf['file_directory_path'] = 'sites/<?php print $site_url ?>/files';
47 $conf['file_directory_temp'] = 'sites/<?php print $site_url ?>/files/tmp';
48 $conf['file_downloads'] = 1;
49 $conf['cache'] = 1;
50 $conf['clean_url'] = 1;
51
52 <?php print $extra_config; ?>
53
54 /**
55 * This was added from Drupal 5.2 onwards.
56 */
57 /**
58 * We try to set the correct cookie domain. If you are experiencing problems
59 * try commenting out the code below or specifying the cookie domain by hand.
60 */
61 if (isset($_SERVER['HTTP_HOST'])) {
62 $domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
63 // Per RFC 2109, cookie domains must contain at least one dot other than the
64 // first. For hosts such as 'localhost', we don't set a cookie domain.
65 if (count(explode('.', $domain)) > 2) {
66 @ini_set('session.cookie_domain', $domain);
67 }
68 }
69
70 # Additional host wide configuration settings. Useful for safely specifying configuration settings.
71 if (file_exists('<?php print $config_path ?>/includes/global.inc')) {
72 include_once('<?php print $config_path ?>/includes/global.inc');
73 }

  ViewVC Help
Powered by ViewVC 1.1.2