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_prefix/INSTALL.txt

INSTALL file for Domain Prefix

File

domain_prefix/INSTALL.txt
View source
  1. /**
  2. * @file
  3. * INSTALL file for Domain Prefix
  4. */
  5. Domain Access: Table Prefixing
  6. Dynamic table prefixing 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. Uninstalling
  17. ----
  18. 1. Introduction
  19. Table prefixing is an advanced Drupal option; it should only be performed by
  20. experienced admins or by those willing to learn how table prefixing functions.
  21. This module replaces the default $db_prefix routine documented inside
  22. settings.php.
  23. IT IS ADVISED THAT YOU DO NOT USE THE $db_prefix VARIABLE IF
  24. YOU ARE USING THIS MODULE.
  25. If you must prefix all tables, do not set $db_prefix as an array. This module
  26. should still work if $db_prefix = 'string_'.
  27. ----
  28. 2. Installation
  29. In the Domain Access download, find the following file:
  30. domain > domain_prefix > settings_domain_prefix.inc
  31. You will need to load this file from inside your settings.php file. There
  32. are normally two methods for this.
  33. ----
  34. 2.1 Option 1 -- Preferred
  35. This method is preferred, since any updates to the module release
  36. will be reflected in this file.
  37. NOTE: the elements inside the ==== marks are php code that
  38. should be copied into your settings.php file. DO NOT COPY THE ==== MARKS.
  39. Add the following lines to the end of your settings.php file:
  40. ====
  41. /**
  42. * Add the domain_prefix tables
  43. */
  44. require_once './path/to/modules/domain/domain_prefix/settings_domain_prefix.inc';
  45. ====
  46. In this case, change 'path/to/modules' with the directory where your modules are
  47. stored. Typically this will be 'sites/all/modules', which makes the lines:
  48. ====
  49. /**
  50. * Add the domain_prefix tables
  51. */
  52. require_once './sites/all/modules/domain/domain_prefix/settings_domain_prefix.inc';
  53. ====
  54. ----
  55. 2.2 Option 2
  56. If you are having difficulty determining the correct path, copy the file
  57. into your settings folder.
  58. domain > domain_prefix > settings_domain_prefix_inc
  59. The file should be in the same directory as your active settings.php file. Then
  60. add the following lines:
  61. ====
  62. /**
  63. * Add the domain_prefix tables
  64. */
  65. require_once 'settings_domain_prefix.inc';
  66. ====
  67. ----
  68. 2.3 Testing Your Configuration
  69. After editing your settings.php file, go to Admin > Build > Domains. If you
  70. see a warning at the top of the page beginning:
  71. "The Domain Prefix module is not installed correctly..."
  72. This message means that your PHP server cannot find the include file. You
  73. may need to test other path options for the include code.
  74. ----
  75. 2.4 Additional Resources
  76. If you are having trouble configuring the module, you should check your
  77. PHP include path. You may need to use an absolute path to your server root.
  78. http://us3.php.net/manual/en/ini.core.php#ini.include-path
  79. ----
  80. 3. Reminder
  81. With the Domain Access module, you are running multiple sites from one
  82. installation and one settings.php file. The change you make to this file will
  83. affect all active domains configured with this module.
  84. ----
  85. 4. Uninstalling
  86. When you disable this module, you must remove the lines from your settings.php
  87. file.