From: Steve Sheppard Date: Thu, 16 Sep 2010 14:11:20 +0000 (-0400) Subject: expand section "Installing OpenSRF 1.0.7"; X-Git-Tag: sprint4-merge-nov22~4203^2~376^2~3 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bdf84a5af3f3f9c877b840ebbfddc0e878bf8ce7;p=working%2FEvergreen.git expand section "Installing OpenSRF 1.0.7"; shorten section "Installing Evergreen 1.4.0.6"; various corrections to s to properly integrate; --- diff --git a/1.6/admin/ServersideInstallation.xml b/1.6/admin/ServersideInstallation.xml index c3e001ab9c..06cbc1142b 100644 --- a/1.6/admin/ServersideInstallation.xml +++ b/1.6/admin/ServersideInstallation.xml @@ -54,7 +54,7 @@ Previous Software Releases Earlier releases of Evergreen are also available. Instructions for installing, configuring and testing earlier versions are found in . The next most recent previous release of Evergreen is version 1.4.0.6. Instructions for installing, configuring and testing that version are found in . - The accompanying previous release of OpenSRF is version 1.0.x. Instructions for installing, configuring and testing that version are found in . + The accompanying previous release of OpenSRF is version 1.0.7. Instructions for installing, configuring and testing that version are found in .
@@ -63,7 +63,7 @@ As far as possible, you should perform the following steps in the exact order given since the success of many steps relies on the successful completion of earlier steps. You should make backup copies of files and environments when you are instructed to do so. In the event of installation problems those copies can allow you to back out of a step gracefully and resume the installation from a known state. See for further information. Of course, after you successfully complete and test the entire Evergreen installation you should take a final snapshot backup of your system(s). This can be the first in the series of regularly scheduled system backups that you should probably also begin.
- Installing OpenSRF 1.2.x On <systemitem class="osname">Ubuntu</systemitem> or <systemitem class="osname">Debian</systemitem> + Installing OpenSRF 1.2.2 On <systemitem class="osname">Ubuntu</systemitem> or <systemitem class="osname">Debian</systemitem> This section describes the installation of the latest version of the Open Service Request Framework (OpenSRF), a major component of the Evergreen server-side software, on Ubuntu or Debian systems. Evergreen software is integrated with and depends on the OpenSRF software system. Follow the steps outlined here and run the specified tests to ensure that OpenSRF is properly installed and configured. Do not continue with any further Evergreen installation steps until you have verified that OpenSRF has been successfully installed. @@ -118,7 +118,7 @@ - Keywords Targets for <application>make</application> + Keywords Targets for <application>make</application> Command @@ -252,7 +252,7 @@ Comment out the line {mod_offline, []} by placing two % comment signs in front. -
+
Restart the <systemitem class="service">ejabberd</systemitem> service As the root user, restart the ejabberd service to test the configuration changes and to register your users:
@@ -453,7 +453,7 @@
- Installing Evergreen 1.6.x.x On <systemitem class="osname">Ubuntu</systemitem> or <systemitem class="osname">Debian</systemitem> + Installing Evergreen 1.6.0.7 On <systemitem class="osname">Ubuntu</systemitem> or <systemitem class="osname">Debian</systemitem> This section outlines the installation process for the latest stable version of Evergreen. In this section you will download, unpack, install, configure and test the Evergreen system, including the Evergreen server and the PostgreSQL database system. You will make several configuration changes and adjustments to the software, including updates to configure the system for your own locale, and some updates needed to work around a few known issues. @@ -497,7 +497,7 @@
- Keywords Targets for <application>make</application> + Keywords Targets for <application>make</application> Command @@ -785,7 +785,7 @@ $ a2enmod ssl # enable mod_ssl $ a2enmod rewrite # enable mod_rewrite $ a2enmod expires # enable mod_expires - $ cd /home/opensrf/Evergreen-ILS-1.6.0.7 + $ cd /home/opensrf/Evergreen-ILS-1.x.x.x # copy files $ cp Open-ILS/examples/apache/eg.conf /etc/apache2/sites-available/ @@ -1449,9 +1449,9 @@
Installing Previous Versions of Evergreen Earlier releases of Evergreen are available. Instructions for installing, configuring and testing earlier versions are found below. - The next most recent previous release of Evergreen is version 1.4.0.6. The accompanying previous release of OpenSRF is version 1.0.x. + The next most recent previous release of Evergreen is version 1.4.0.6. The accompanying previous release of OpenSRF is version 1.0.7.
- Installing Evergreen 1.4.x.x On <systemitem class="osname">Ubuntu</systemitem> or <systemitem class="osname">Debian</systemitem> + Installing Evergreen 1.4.0.6 On <systemitem class="osname">Ubuntu</systemitem> or <systemitem class="osname">Debian</systemitem> This section outlines the installation process for the previous version 1.4.0.6 of Evergreen. In this section you will download, unpack, install, configure and test the Evergreen system, including the Evergreen server and the PostgreSQL database system. You will make several configuration changes and adjustments to the software, including updates to configure the system for your own locale, and some updates needed to work around a few known issues. @@ -1459,7 +1459,7 @@ If you are starting with a clean install of Ubuntu or Debian, you are strongly recommended not to install the packaged PostgreSQL server. This can confuse port numbers and system configuration. Evergreen 1.4 requires PostgreSQL 8.2.
- Installing OpenSRF + Installing OpenSRF 1.0.7 Evergreen software is integrated with and depends on the Open Service Request Framework (OpenSRF) software system. For further information on installing, configuring and testing OpenSRF, see . Follow the steps outlined in that section and run the specified tests to ensure that OpenSRF is properly installed and configured. Do not continue with any further Evergreen installation steps until you have verified that OpenSRF has been successfully installed.
@@ -1490,7 +1490,7 @@
- Keywords Targets for <application>make</application> + Keywords Targets for <application>make</application> Command @@ -1660,49 +1660,197 @@
- Modify the Apache Configuration - The Apache configuration must be updated. See for further information. -
-
- Modify the OpenSRF Configuration File - The OpenSRF configuration must be modified. See for further information. -
-
- Create Configuration Files for Users Needing <application>srfsh</application> - Special configuration files are needed for all users who need to use the application srfsh for testing. See for further information. -
-
- Modify the OpenSRF Environment - Several simple changes to the OpenSRF environment are required. See for further information. -
-
- (OPTIONAL) Enabling and Disabling Language Localizations - Before starting Evergreen, you can add language localization for a number of languages beyond American English (en-US). For further information on language localization, see . -
-
- Starting Evergreen - Start Evergreen according to the instructions in . -
-
- Testing the Installation - Simple tests can be used to verify that Evergreen server-side software has been installed and configured properly and is running as expected. See for further information on testing the latest version of Evergreen. Earlier versions can be tested similarly. -
-
- Stopping Evergreen - Stop Evergreen according to the instructions in . -
-
- Post-Installation Chores - A few additional steps must be performed after Evergreen has been successfully installed and tested. See for the list of final steps. + Evergreen installation - (continued) + The remainder of the Evergreen installation procedure is identical to that for installing the latest version of Evergreen. Continue with the instructions found in .
-
- Installing OpenSRF 1.0.x - - ZZZ-REVIEW - ADD CONTENT FOR INSTALLING OPENSRF 1.0.x - - ADD CONTENT FOR INSTALLING OPENSRF 1.0.x +
+
+ Installing OpenSRF 1.0.7 On <systemitem class="osname">Ubuntu</systemitem> or <systemitem class="osname">Debian</systemitem> + This section describes the installation of the previous version of the Open Service Request Framework (OpenSRF), a major component of the Evergreen server-side software, on Ubuntu or Debian systems. Evergreen software is integrated with and depends on the OpenSRF software system. + Follow the steps outlined here and run the specified tests to ensure that OpenSRF is properly installed and configured. Do not continue with any further Evergreen installation steps until you have verified that OpenSRF has been successfully installed. + + The following steps have been tested on the x86 (32-bit) and x86-64 (64-bit) platforms. OpenSRF 1.0.7 has been tested on Debian Etch (4.0), Debian Lenny, Ubuntu Hardy Heron (8.04), and Ubuntu Intrepid Ibex (8.10). + In the following instructions, you are asked to perform certain steps as either the root user, the opensrf user, or the postgres user. + + Debian -- To become the root user, issue the command su - and enter the password of the root user. + Ubuntu -- To become the root user, issue the command sudo su - and enter the password of the root user. + + To switch from the root user to a different user, issue the command su - USERNAME. For example, to switch from the root user to the opensrf user, issue the command su - opensrf. Once you have become a non-root user, to become the root user again, simply issue the command exit". + +
+ Add the OpenSRF User + As the root user, add the opensrf user to the system. The default shell for the new user is automatically set to /bin/bash to inherit a reasonable environment: +
+ Commands to add <systemitem class="username">opensrf</systemitem> user + + $ su - opensrf + $ useradd -m -s /bin/bash opensrf + $ passwd opensrf + Enter new UNIX password: ****** + Retype new UNIX password: ****** + passwd: password updated successfully + $ + +
+
+
+ Download and Unpack Latest OpenSRF Version + As the opensrf user, download and extract the latest version of OpenSRF. The latest version can be found here: +
+ Commands to download and unpack OpenSRF + + $ su - opensrf + $ wget http://evergreen-ils.org/downloads/OpenSRF-1.0.7.tar.gz + $ tar zxf OpenSRF-1.0.7.tar.gz + +
+ The new directory /home/opensrf/OpenSRF-1.0.7 will be created. +
+
+ Install Prerequisites to Build OpenSRF + In this section you will install and configure a set of prerequisites that will be used to build OpenSRF. In a following step you will actually build the software using the make utility. + As the root user, enter the commands show below to build the prerequisites from the software distribution that you just downloaded and unpacked. Remember to replace [DISTRIBUTION] in the example with the keyword corresponding to the actual Linux distribution listed in the "Keywords" figure below. +
+ Commands to install prerequisites for OpenSRF + + $ su - root + $ cd /home/opensrf/OpenSRF-1.0.7 + $ make -f src/extras/Makefile.install [DISTRIBUTION] + ... + +
+
+ Keywords Targets for <application>make</application> Command + + + + + + Keyword + Description + + + + + debian-lenny + for Debian Lenny (5.0) + + + debian-etch + for Debian Etch (4.0) + + + ubuntu-intrepid + for Intrepid (8.10) + + + ubuntu-hardy + for Ubuntu Hardy (8.04) + + + +
+ This will install a number of packages on the system that are required by OpenSRF, including some Perl modules from CPAN. You can say No to the initial CPAN configuration prompt to allow it to automatically configure itself to download and install Perl modules from CPAN. The CPAN installer will ask you a number of times whether it should install prerequisite modules - say Yes. +
+
+ Configure OpenSRF + As the opensrf user, return to the OpenSRF build directory and use the configure utility to prepare for the next step of compiling and linking the software. You can include the and configuration options if you wish to include support for Python and Java, respectively: +
+ Commands to configure OpenSRF + + $ su - opensrf + $ cd /home/opensrf/OpenSRF-1.0.7 + $ ./configure --prefix=/openils --sysconfdir=/openils/conf + $ make + ... + +
+
+
+ Compile, Link and Install OpenSRF + As the root user, return to the OpenSRF build directory and use the make utility to compile, link and install OpenSRF: +
+ Commands to build, link and install OpenSRF + + $ su - opensrf + $ cd /home/opensrf/OpenSRF-1.0.7 + $ make install + ... + +
+
+
+ Update the System Dynamic Library Path + As the root user, you must update the system dynamic library path to make your system recognize the newly installed libraries. Do this by creating the new file /etc/ld.so.conf.d/osrf.conf containing a new library path, then run the command ldconfig to automatically read the file and modify the system dynamic library path: +
+ Commands to modify system dynamic library path + + $ su - root + $ echo "/openils/lib" > /etc/ld.so.conf.d/osrf.conf + $ ldconfig + +
+
+
+ Define Public and Private OpenSRF Domains + Define your public and private OpenSRF domains. For security purposes, OpenSRF uses Jabber domains to separate services into public and private realms. Throughout these instructions, we will use the example domains public.localhost for the public domain and private.localhost for the private domain. On a single-server system, the easiest way to define public and private domains is to define separate hostnames by adding entries to the file /etc/hosts. + As the root user, edit the file /etc/hosts and add the following entries for our example domains: +
+ Example public and private domains in /etc/hosts + + 127.0.1.2 public.localhost public + 127.0.1.3 private.localhost private + +
+
+
+ Change File Ownerships + As the root user, change the ownership of files installed in the directory /openils to the opensrf user: +
+ Commands to change file ownerships + + $ chown -R opensrf:opensrf /openils + +
+
+
+ Stop the <systemitem class="service">ejabberd</systemitem> Service + As the root user, stop the ejabberd service: +
+ Commands to stop the <systemitem class="service">ejabberd</systemitem> service + + $ /etc/init.d/ejabberd stop + +
+ If ejabberd reports that it is already stopped, it may have run into a problem starting back at the installation stage. One possible fix is to kill any remaining beam and epmd processes, then edit the configuration file /etc/ejabberd/ejabberd.cfg to hardcode a domain: +
+ Commands to recover from <systemitem class="service">ejabberd</systemitem> errors + + $ su - root + $ epmd -kill + $ killall beam; killall beam.smp + $ rm /var/lib/ejabberd/* + $ echo 'ERLANG_NODE=ejabberd@localhost' >> /etc/default/ejabberd + +
+
+
+ Edit the <systemitem class="service">ejabberd</systemitem> configuration + As the root user, edit the file /etc/ejabberd/ejabberd.cfg and make the following changes: + + Change {hosts, ["localhost"]}. to {hosts, ["localhost", "private.localhost", "public.localhost"]}. + Change {max_user_sessions, 10}. to {max_user_sessions, 1000}. If you see something like this instead: {access, max_user_sessions, [{10, all}]}., then change it to {access, max_user_sessions, [{1000, all}]}. + Change all three occurrences of max_stanza_size to 2000000. + Change both occurrences of maxrate to 500000. + Comment out the line {mod_offline, []} by placing two % comment signs in front. + +
+
+ OpenSRF installation - (continued) + + The remainder of the OpenSRF installation procedure is identical to that for installing the latest version of OpenSRF. Continue with the instructions found in . +
@@ -2206,7 +2354,7 @@ The Staff Client is automatically built by default as part of the normal make install process for Evergreen server-side software. See to review details related to building the Staff Client in the final compile/link/install phase of the default Evergreen build process.
Building the Staff Client - You can also manually build the Staff Client by using the make utility in the Staff Client source directory (e.g., the directory /home/opensrf/Evergreen-ILS-1.6.0.x/Open-ILS/xul/staff_client for the current Evergreen version). There are a number of possible options to manually build special versions of the Staff Client on a Linux system. Following is a list of environment variables that can be passed to make to influence the manual build process: + You can also manually build the Staff Client by using the make utility in the Staff Client source directory (e.g., the directory /home/opensrf/Evergreen-ILS-1.6.0.7/Open-ILS/xul/staff_client for the current Evergreen version). There are a number of possible options to manually build special versions of the Staff Client on a Linux system. Following is a list of environment variables that can be passed to make to influence the manual build process:
Option STAFF_CLIENT_BUILD_ID During the normal make install Evergreen server-side software build process, the variable defaults to an automatically generated date/time string, but you can also override the value of BUILD_ID.