You are here

INSTALL.txt in Domain Access 5

Same filename in this branch
  1. 5 INSTALL.txt
  2. 5 domain_conf/INSTALL.txt
  3. 5 domain_prefix/INSTALL.txt
Same filename and directory in other branches
  1. 6.2 domain_conf/INSTALL.txt

INSTALL file for Domain Conf

File

domain_conf/INSTALL.txt
View source
  1. /**
  2. * @file
  3. * INSTALL file for Domain Conf
  4. */
  5. Domain Access: Site Configuration
  6. Advanced site configuration options for Domain Access.
  7. CONTENTS
  8. --------
  9. 1. Introduction
  10. 2. Installation
  11. 2.1 Option 1 -- Preferred
  12. 2.2 Option 2
  13. 2.3 Testing Your Configuration
  14. 2.4 Additional Resources
  15. 3. Reminder
  16. 4. Unistalling
  17. ----
  18. 1. Introduction
  19. This routine was in hook_init(), but there are cases where
  20. the $conf array needs to be loaded in early phases of bootstrap.
  21. In particular, these variables need to be available during variable_init().
  22. ----
  23. 2. Installation
  24. In the Domain Access download, find the following file:
  25. domain > domain_conf > settings_domain_conf.inc
  26. You will need to load this file from inside your settings.php file. There
  27. are two methods for this.
  28. ----
  29. 2.1 Option 1 -- Preferred
  30. This method is preferred, since any updates to the module release
  31. will be reflected in this file.
  32. NOTE: the elements inside the ==== marks are php code that
  33. should be copied into your settings.php file. DO NOT COPY THE ==== MARKS.
  34. Add the following lines to the end of your settings.php file:
  35. ====
  36. /**
  37. * Add the domain_conf settings override
  38. */
  39. require_once './path/to/modules/domain/domain_conf/settings_domain_conf.inc';
  40. ====
  41. In this case, change 'path/to/modules' with the directory where your modules are
  42. stored. Typically this will be 'sites/all/modules', which makes the lines:
  43. ====
  44. /**
  45. * Add the domain_conf settings override
  46. */
  47. require_once './sites/all/modules/domain/domain_conf/settings_domain_conf.inc';
  48. ====
  49. ----
  50. 2.2 Option 2
  51. If you are having difficulty determining the correct path, copy the file
  52. into your settings folder.
  53. domain > domain_conf > settings_domain_conf.inc
  54. The file should be in the same directory as your active settings.php file. Then
  55. add the following lines:
  56. ====
  57. /**
  58. * Add the domain_conf settings override
  59. */
  60. require_once 'settings_domain_conf.inc';
  61. ====
  62. ----
  63. 2.3 Testing Your Configuration
  64. After editing your settings.php file, go to Admin > Build > Domains. If you
  65. see a warning at the top of the page beginning:
  66. "The Domain Configuration module is not installed correctly..."
  67. This message means that your PHP server cannot find the include file. You
  68. may need to test other path options for the include code.
  69. ----
  70. 2.4 Additional Resources
  71. If you are having trouble configuring the module, you should check your
  72. PHP include path. You may need to use an absolute path to your server root.
  73. http://us3.php.net/manual/en/ini.core.php#ini.include-path
  74. ----
  75. 3. Reminder
  76. With the Domain Access module, you are running multiple sites from one
  77. installation and one settings.php file. The change you make to this file will
  78. affect all active domains configured with this module.
  79. ----
  80. 4. Uninstalling
  81. When you disable this module, you must remove the lines from your settings.php
  82. file.