You are here

README.txt in Open Atrium 7.2

Same filename in this branch
  1. 7.2 README.txt
  2. 7.2 install_from_db/README.txt
Same filename and directory in other branches
  1. 6 README.txt
Open Atrium is a rich distribution of many (150+) Drupal modules. Installing 
Open Atrium may require additional resources beyond a minimal Drupal 7 
installation.

System Requirements
-------------------

In addition to the normal Drupal 7 requirements, you should ensure your PHP 
memory_limit (php.ini) is set to at least 256M and your MySQL 
max_allowed_packet (my.cnf) is at least 32M.

On a production Open Atrium site, keep in mind that the nature of 
collaboration software implies many logged-in users. Caching layers, such 
as Varnish, that are typically used to improve Drupal performance will be 
less effective because authenticated users bypass these caching layers. 
Thus, a production environment may require additional database memory and 
resources to handle larger numbers of users. Using a hosting company 
specifically tailored for Open Atrium can also help. You should not expect 
to run Open Atrium effectively on minimal (cheap) shared VM hosts.

Please also see Additional OpenAtrium requirements when installing under Aegir.

One-click installation
----------------------

Hosting companies, such as Pantheon provide an optimized infrastructure for 
Open Atrium and offer a 1-click installation process. When using Pantheon, 
skip down to the "Actual Installation" section for details.

Getting the Open Atrium files
-----------------------------

Before you can install Open Atrium, you need to get the files. There are two 
different methods for this:

** Using Releases from Drupal.org (recommended)

Official releases of Open Atrium are available on the drupal.org project page. 
Click the link for the "gz" or "zip" archive of files for the latest release. 
Older releases are also available, though not recommended. Once you have 
downloaded this file, use your systems unarchive or unzip software to extract 
all the files from the archive. These files form the "root" or top-level of 
your web site, so transfer them to the appropriate top level location of your 
web server. This will replace any existing Drupal or other web site that you 
have, so if you are overwriting existing files, be sure to make a BACKUP first!
 
** Using "git" and "drush make" for the latest -dev version (for expert Drupal devs)

(NOTE: These instructions are for *nix-based systems, such as Linux or MacOSX. 
Windows users will need to research how to use these tools on their system).

If you require the absolute latest development version of Open Atrium, you need 
to be familiar with the "git" and "drush" tools:

 * From a command line shell, run 
     "git clone --branch 7.x-2.x http://git.drupal.org/project/openatrium.git" 
   to download the latest version of Open Atrium to the "openatrium" folder 
   on your computer.

 * Move to that folder using "cd opentrium"

 * Download and build the files for Open Atrium using the script 
   "./build.sh path-to-web-server". For example, if the root of your webserver 
   is in /htdocs/drupal, then you would use "./build.sh /htdocs/drupal". 
   This will build OA2 using the latest -dev files from drupal.org. For the 
   *absolute* latest code, you can get the development code from drupal by 
   running "./build-dev.sh path-to-web-server" instead. This script requires 
   the "drush" command and uses "drush make" to download and build all of the 
   dependencies for Open Atrium 2. You should be using at least Drush 5.x.

 * If you receive the following error message when you attempt to build the 
   the files, you will need to install the Drupal.org Drush commands.

    "The drush command 'verify-makefile' could not be found. Run drush 
     cache-clear drush to clear the commandfile cache if you have installed 
     new extensions."

Updating your Open Atrium distribution
--------------------------------------

In the future when you wish to update to a newer version of Open Atrium, you 
have two choices, based on how you originally obtained the files as described 
in the previous section.

IMPORTANT NOTE: Before performing any site updates, it is extremely important 
to BACKUP your Drupal files and MySQL database for your site. Updating Open 
Atrium can cause irreversible changes to the database and if you decide to 
roll back you'll need this backup.

** Updating files from drupal.org (recommended)

Save a copy of your Drupal sites/ directory. This contains any local code or 
customization you might have made to your site. Now run the same procedure 
shown above to download the latest version of Open Atrium from drupal.org and 
replace your entire root web directory with the new version. Finally, replace 
the copy of the sites/ directory that you previously saved. Follow the 
instructions in the "Clearing Cache" section below to update your database and 
your site should be updates.
 
** Updating the latest -dev version (for expert Drupal devs)

If you built your site using "git" and "drush" then you can use these same 
tools to update your site. First, save a copy of your Drupal sites/ directory 
as this will be overwritten by the update process. Next, go to the "openatrium" 
folder where you initially used "git" to fetch the Open Atrium repository. Use 
"git pull" to retrieve the latest version of the distribution. Then run the 
./build.sh or ./build-dev.sh script exactly as before. Instead of pointing 
these scripts to your root web directory, you can point them to a temp 
directory in case the installation fails. The build.sh scripts delete 
everything in the target directory so building to a temp directory prevents 
your current web site from being lost if the build fails. Once the build is 
successful you can move the temporary directory in place of your web root, 
then restore the /sites directory that you previously saved.

If you just need to make a quick update of a specific open atrium module, you 
can also just go to that module directory and use "git pull origin" to pull 
in the latest changes without rebuilding the entire distribution.

Do NOT update Drupal core or any modules within Open Atrium 2 manually unless 
you are an expert Drupal developer who knows exactly what you are doing. 
Drupal Distributions such as Open Atrium are a complex collection of many 
modules, often with specific patches to make them work together. If you update 
a module manually you can easily break your Open Atrium site. The Open Atrium 
distribution is regularly updated with security patches and new features and 
is constantly evaluating new versions of modules. The advantage of using a 
distribution is to let other people handle the headache of updating modules 
and keeping them all working together.

Clearing Cache
--------------

If you are installing for the first time, ignore this section. If you are 
updating your Open Atrium distribution you'll need to run a couple of commands 
to clear the drupal cache and update your database:

drush updb
    This is the same as running the update.php script on your site and is 
    needed to run any update hooks required for the new version.
drush rr
    This is an OPTIONAL command but is sometimes needed if modules or files 
    have moved to a different directory location within Open Atrium. If you 
    get weird errors when clearing cache after an update, try this command. 
    It is a shortcut for the "registry rebuild" command which might need to 
    be installed into drush separately.
drush cc all
    This clears the Drupal database cache and is the same as clicking "Clear 
    All Caches" from the admin/config/development/performance page on your 
    site. This drush command lets you clear cache from the command line more 
    quickly.
drush fra -y (Read notes first)
    This command is required to update all of Open Atrium's features to the 
    latest version. Running it will revert and overwrite any existing 
    features, including any changes that you may have made to Open Atrium's 
    configuration. It is therefore very important to capture any customization 
    using the Features Override module before running this command. This 
    command can be run at any other time to restore Open Atrium's features to 
    their default settings (Eg: if someone has inadvertently tampered with any 
    Views or layouts within Open Atrium).

Actual Installation
-------------------

To install Open Atrium the first time, you will run the "install.php" script 
from your web browser. NOTE when using a hosting company such as Pantheon, it 
will run install.php for you. The Install script will take you through 
multiple pages of steps. There is very little difference between this process 
and a normal Drupal site installation except that it takes longer to install 
the large number of modules. 

If you are a Maintainer of Open Atrium, you should copy the gitignore.example 
file to .git/info/exclude to avoid adding extra files to the repository.

The most common problem encountered during installation is the lack of system 
resources on your web server. Be sure to follow the instructions in the System 
Requirements section shown above. If you still have trouble, try doing a plain 
Drupal 7 installation using the links in the previous section to ensure that 
your host is capable of installing Drupal itself.

File

README.txt
View source
  1. Open Atrium is a rich distribution of many (150+) Drupal modules. Installing
  2. Open Atrium may require additional resources beyond a minimal Drupal 7
  3. installation.
  4. System Requirements
  5. -------------------
  6. In addition to the normal Drupal 7 requirements, you should ensure your PHP
  7. memory_limit (php.ini) is set to at least 256M and your MySQL
  8. max_allowed_packet (my.cnf) is at least 32M.
  9. On a production Open Atrium site, keep in mind that the nature of
  10. collaboration software implies many logged-in users. Caching layers, such
  11. as Varnish, that are typically used to improve Drupal performance will be
  12. less effective because authenticated users bypass these caching layers.
  13. Thus, a production environment may require additional database memory and
  14. resources to handle larger numbers of users. Using a hosting company
  15. specifically tailored for Open Atrium can also help. You should not expect
  16. to run Open Atrium effectively on minimal (cheap) shared VM hosts.
  17. Please also see Additional OpenAtrium requirements when installing under Aegir.
  18. One-click installation
  19. ----------------------
  20. Hosting companies, such as Pantheon provide an optimized infrastructure for
  21. Open Atrium and offer a 1-click installation process. When using Pantheon,
  22. skip down to the "Actual Installation" section for details.
  23. Getting the Open Atrium files
  24. -----------------------------
  25. Before you can install Open Atrium, you need to get the files. There are two
  26. different methods for this:
  27. ** Using Releases from Drupal.org (recommended)
  28. Official releases of Open Atrium are available on the drupal.org project page.
  29. Click the link for the "gz" or "zip" archive of files for the latest release.
  30. Older releases are also available, though not recommended. Once you have
  31. downloaded this file, use your systems unarchive or unzip software to extract
  32. all the files from the archive. These files form the "root" or top-level of
  33. your web site, so transfer them to the appropriate top level location of your
  34. web server. This will replace any existing Drupal or other web site that you
  35. have, so if you are overwriting existing files, be sure to make a BACKUP first!
  36. ** Using "git" and "drush make" for the latest -dev version (for expert Drupal devs)
  37. (NOTE: These instructions are for *nix-based systems, such as Linux or MacOSX.
  38. Windows users will need to research how to use these tools on their system).
  39. If you require the absolute latest development version of Open Atrium, you need
  40. to be familiar with the "git" and "drush" tools:
  41. * From a command line shell, run
  42. "git clone --branch 7.x-2.x http://git.drupal.org/project/openatrium.git"
  43. to download the latest version of Open Atrium to the "openatrium" folder
  44. on your computer.
  45. * Move to that folder using "cd opentrium"
  46. * Download and build the files for Open Atrium using the script
  47. "./build.sh path-to-web-server". For example, if the root of your webserver
  48. is in /htdocs/drupal, then you would use "./build.sh /htdocs/drupal".
  49. This will build OA2 using the latest -dev files from drupal.org. For the
  50. *absolute* latest code, you can get the development code from drupal by
  51. running "./build-dev.sh path-to-web-server" instead. This script requires
  52. the "drush" command and uses "drush make" to download and build all of the
  53. dependencies for Open Atrium 2. You should be using at least Drush 5.x.
  54. * If you receive the following error message when you attempt to build the
  55. the files, you will need to install the Drupal.org Drush commands.
  56. "The drush command 'verify-makefile' could not be found. Run drush
  57. cache-clear drush to clear the commandfile cache if you have installed
  58. new extensions."
  59. Updating your Open Atrium distribution
  60. --------------------------------------
  61. In the future when you wish to update to a newer version of Open Atrium, you
  62. have two choices, based on how you originally obtained the files as described
  63. in the previous section.
  64. IMPORTANT NOTE: Before performing any site updates, it is extremely important
  65. to BACKUP your Drupal files and MySQL database for your site. Updating Open
  66. Atrium can cause irreversible changes to the database and if you decide to
  67. roll back you'll need this backup.
  68. ** Updating files from drupal.org (recommended)
  69. Save a copy of your Drupal sites/ directory. This contains any local code or
  70. customization you might have made to your site. Now run the same procedure
  71. shown above to download the latest version of Open Atrium from drupal.org and
  72. replace your entire root web directory with the new version. Finally, replace
  73. the copy of the sites/ directory that you previously saved. Follow the
  74. instructions in the "Clearing Cache" section below to update your database and
  75. your site should be updates.
  76. ** Updating the latest -dev version (for expert Drupal devs)
  77. If you built your site using "git" and "drush" then you can use these same
  78. tools to update your site. First, save a copy of your Drupal sites/ directory
  79. as this will be overwritten by the update process. Next, go to the "openatrium"
  80. folder where you initially used "git" to fetch the Open Atrium repository. Use
  81. "git pull" to retrieve the latest version of the distribution. Then run the
  82. ./build.sh or ./build-dev.sh script exactly as before. Instead of pointing
  83. these scripts to your root web directory, you can point them to a temp
  84. directory in case the installation fails. The build.sh scripts delete
  85. everything in the target directory so building to a temp directory prevents
  86. your current web site from being lost if the build fails. Once the build is
  87. successful you can move the temporary directory in place of your web root,
  88. then restore the /sites directory that you previously saved.
  89. If you just need to make a quick update of a specific open atrium module, you
  90. can also just go to that module directory and use "git pull origin" to pull
  91. in the latest changes without rebuilding the entire distribution.
  92. Do NOT update Drupal core or any modules within Open Atrium 2 manually unless
  93. you are an expert Drupal developer who knows exactly what you are doing.
  94. Drupal Distributions such as Open Atrium are a complex collection of many
  95. modules, often with specific patches to make them work together. If you update
  96. a module manually you can easily break your Open Atrium site. The Open Atrium
  97. distribution is regularly updated with security patches and new features and
  98. is constantly evaluating new versions of modules. The advantage of using a
  99. distribution is to let other people handle the headache of updating modules
  100. and keeping them all working together.
  101. Clearing Cache
  102. --------------
  103. If you are installing for the first time, ignore this section. If you are
  104. updating your Open Atrium distribution you'll need to run a couple of commands
  105. to clear the drupal cache and update your database:
  106. drush updb
  107. This is the same as running the update.php script on your site and is
  108. needed to run any update hooks required for the new version.
  109. drush rr
  110. This is an OPTIONAL command but is sometimes needed if modules or files
  111. have moved to a different directory location within Open Atrium. If you
  112. get weird errors when clearing cache after an update, try this command.
  113. It is a shortcut for the "registry rebuild" command which might need to
  114. be installed into drush separately.
  115. drush cc all
  116. This clears the Drupal database cache and is the same as clicking "Clear
  117. All Caches" from the admin/config/development/performance page on your
  118. site. This drush command lets you clear cache from the command line more
  119. quickly.
  120. drush fra -y (Read notes first)
  121. This command is required to update all of Open Atrium's features to the
  122. latest version. Running it will revert and overwrite any existing
  123. features, including any changes that you may have made to Open Atrium's
  124. configuration. It is therefore very important to capture any customization
  125. using the Features Override module before running this command. This
  126. command can be run at any other time to restore Open Atrium's features to
  127. their default settings (Eg: if someone has inadvertently tampered with any
  128. Views or layouts within Open Atrium).
  129. Actual Installation
  130. -------------------
  131. To install Open Atrium the first time, you will run the "install.php" script
  132. from your web browser. NOTE when using a hosting company such as Pantheon, it
  133. will run install.php for you. The Install script will take you through
  134. multiple pages of steps. There is very little difference between this process
  135. and a normal Drupal site installation except that it takes longer to install
  136. the large number of modules.
  137. If you are a Maintainer of Open Atrium, you should copy the gitignore.example
  138. file to .git/info/exclude to avoid adding extra files to the repository.
  139. The most common problem encountered during installation is the lack of system
  140. resources on your web server. Be sure to follow the instructions in the System
  141. Requirements section shown above. If you still have trouble, try doing a plain
  142. Drupal 7 installation using the links in the previous section to ensure that
  143. your host is capable of installing Drupal itself.