-<?xml version="1.0" encoding="UTF-8"?>
-<chapter version="5.0" xml:id="serversideinstallation" xml:lang="EN" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xl="http://www.w3.org/1999/xlink">
+<?xml version='1.0' encoding='UTF-8'?>
+<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:xl="http://www.w3.org/1999/xlink" version="5.0" xml:lang="EN" xml:id="serversideinstallation">
<info>
<title>Server-side Installation of Evergreen Software</title>
<abstract>
<systemitem class="username">opensrf</systemitem> user:</para>
<screen>
<userinput>cp /openils/conf/srfsh.xml.example /home/opensrf/.srfsh.xml</userinput>
+
</screen>
<para>Edit each user's file <filename>~/.srfsh.xml</filename> and make the
following changes:</para>
</step>
</substeps>
</step>
- <step><title>Configure the Apache web server</title><indexterm><primary>web server</primary><secondary>Apache</secondary></indexterm><para>In this step you will configure the Apache web server to support Evergreen
- software.</para> <para>First, you must enable some built-in Apache modules and
- install some additional Apache configuration files. Then you will create a new
- Security Certificate. Finally, you must make several changes to the Apache
- configuration file.</para><substeps><step><title>Enable the required Apache Modules</title><para>As the <systemitem class="username">root</systemitem>
+ <step>
+ <title>Configure the Apache web server</title>
+ <indexterm>
+ <primary>web server</primary>
+ <secondary>Apache</secondary>
+ </indexterm>
+ <para>In this step you will configure the Apache web server to support Evergreen
+ software.</para>
+ <para>First, you must enable some built-in Apache modules and install some
+ additional Apache configuration files. Then you will create a new Security
+ Certificate. Finally, you must make several changes to the Apache configuration
+ file.</para>
+ <substeps>
+ <step>
+ <title>Enable the required Apache Modules</title>
+ <para>As the <systemitem class="username">root</systemitem>
user, enable some modules in the Apache server, then copy the
- new configuration files to the Apache server directories:</para><indexterm><primary>Apache</primary></indexterm><screen><userinput>a2enmod ssl # enable mod_ssl</userinput><userinput>a2enmod rewrite # enable mod_rewrite</userinput><userinput>a2enmod expires # enable mod_expires</userinput></screen><para>As the commands execute, you may see warnings similar to:
+ new configuration files to the Apache server directories:</para>
+ <indexterm>
+ <primary>Apache modules</primary>
+ </indexterm>
+ <screen>
+ <userinput>a2enmod ssl # enable mod_ssl</userinput>
+ <userinput>a2enmod rewrite # enable mod_rewrite</userinput>
+ <userinput>a2enmod expires # enable mod_expires</userinput>
+ </screen>
+ <para>As the commands execute, you may see warnings similar to:
<literal>Module SOMEMODULE already enabled</literal> but you can
- safely ignore them.</para></step><step><title>Copy Apache configuration files</title><para>You must copy the Apache configuration files from the
+ safely ignore them.</para>
+ </step>
+ <step>
+ <title>Copy Apache configuration files</title>
+ <para>You must copy the Apache configuration files from the
Evergreen installation directory to the Apache directory. As the
<systemitem class="username">root</systemitem> user, perform the
- following commands:</para><screen><userinput>cd /home/opensrf/Evergreen-ILS-1.6.1.2</userinput><userinput>cp Open-ILS/examples/apache/eg.conf /etc/apache2/sites-available/</userinput><userinput>cp Open-ILS/examples/apache/eg_vhost.conf /etc/apache2/</userinput><userinput>cp Open-ILS/examples/apache/startup.pl /etc/apache2/</userinput></screen></step><step xml:id="serversideinstallation-createsslcertificate"><title>Create a Security Certificate</title><para>You must create a new Security Certificate (SSL Key) for
+ following commands:</para>
+ <screen>
+ <userinput>cd /home/opensrf/Evergreen-ILS-1.6.1.2</userinput>
+ <userinput>cp Open-ILS/examples/apache/eg.conf /etc/apache2/sites-available/</userinput>
+ <userinput>cp Open-ILS/examples/apache/eg_vhost.conf /etc/apache2/</userinput>
+ <userinput>cp Open-ILS/examples/apache/startup.pl /etc/apache2/</userinput>
+ </screen>
+ </step>
+ <step xml:id="serversideinstallation-createsslcertificate">
+ <title>Create a Security Certificate</title>
+ <para>You must create a new Security Certificate (SSL Key) for
the Apache server using the <command>openssl</command>
command. For a public production server you must configure or
purchase a signed SSL certificate, but for now you can just use
a self-signed certificate and accept the warnings in the Staff
Client and browser during testing and development. As the
<systemitem class="username">root</systemitem> user, perform the
- following commands:</para><screen><userinput>mkdir /etc/apache2/ssl</userinput><userinput>cd /etc/apache2/ssl</userinput><userinput>openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key</userinput></screen><note><para>This step generates a self-signed SSL
+ following commands:</para>
+ <screen>
+ <userinput>mkdir /etc/apache2/ssl</userinput>
+ <userinput>cd /etc/apache2/ssl</userinput>
+ <userinput>openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key</userinput>
+ </screen>
+ <note>
+ <para>This step generates a self-signed SSL
certificate. You must install a proper SSL certificate
for a public production system to avoid warning messages
when users login to their account through the OPAC or
- when staff login through the Staff Client.</para><para>For further information on installing a proper SSL
- certificate, see <xref linkend="serversideinstallation-ssl"/>.</para></note></step><step xml:id="serversideinstallation-modify-apache"><title>Update Apache configuration file</title><para>You must make several changes to the new Apache
+ when staff login through the Staff Client.</para>
+ <para>For further information on installing a proper SSL
+ certificate, see <xref
+ linkend="serversideinstallation-ssl"/>.</para>
+ </note>
+ </step>
+ <step xml:id="serversideinstallation-modify-apache">
+ <title>Update Apache configuration file</title>
+ <para>You must make several changes to the new Apache
configuration file
<filename>/etc/apache2/sites-available/eg.conf</filename> .
As the <systemitem class="username">root</systemitem> user,
- edit the file and make the following changes:</para><itemizedlist><listitem><para>In the section
+ edit the file and make the following changes:</para>
+ <itemizedlist>
+ <listitem>
+ <para>In the section
<literal><Directory "/openils/var/cgi-bin"></literal>
replace this line:
<literal>Allow from 10.0.0.0/8</literal>
- with this line: <literal>Allow from all</literal>.</para><warning>This change allows access to your configuration
+ with this line: <literal>Allow from all</literal>.</para>
+ <warning>This change allows access to your configuration
CGI scripts from any workstation on any network. This is
only a temporary change to expedite testing and should be
removed after you have finished and successfully tested
<xref linkend="serversideinstallation-postinstallation"/>
for further details on removing this change after the
Evergreen installation is complete.
- </warning></listitem><listitem><para>Comment out the line <literal>Listen 443</literal>,
+ </warning>
+ </listitem>
+ <listitem>
+ <para>Comment out the line <literal>Listen 443</literal>,
since it conflicts with the same declaration in the
configuration file:
<filename>/etc/apache2/ports.conf</filename>. Note that
<systemitem class="osname">Debian </systemitem> users
should not do this since the conflict does not apply to
- that operating system.</para></listitem><listitem><para>The following updates are needed to allow the logs
+ that operating system.</para>
+ </listitem>
+ <listitem>
+ <para>The following updates are needed to allow the logs
to function properly, but it may break other Apache
- applications on your server:</para><para>For the
+ applications on your server:</para>
+ <para>For the
<systemitem class="osname">Linux</systemitem> distributions
<systemitem class="osname">Ubuntu Hardy</systemitem> or
<systemitem class="osname">Debian Etch</systemitem>, as
<systemitem class="osname">Debian Lenny</systemitem>, as
the <systemitem class="username">root</systemitem> user,
edit the Apache configuration file and change these
- lines:</para><screen><userinput>export APACHE_RUN_USER=www-data</userinput><userinput>export APACHE_RUN_GROUP=www-data</userinput></screen><para>to instead read:</para><screen><userinput>export APACHE_RUN_USER=opensrf</userinput><userinput>export APACHE_RUN_GROUP=opensrf</userinput></screen></listitem><listitem><para>As the
+ lines:</para>
+ <screen>
+ <userinput>export APACHE_RUN_USER=www-data</userinput>
+ <userinput>export APACHE_RUN_GROUP=www-data</userinput>
+ </screen>
+ <para>to instead read:</para>
+ <screen>
+ <userinput>export APACHE_RUN_USER=opensrf</userinput>
+ <userinput>export APACHE_RUN_GROUP=opensrf</userinput>
+ </screen>
+ </listitem>
+ <listitem>
+ <para>As the
<systemitem class="username">root</systemitem> user,
edit the Apache configuration file
<filename>/etc/apache2/apache2.conf</filename> and
modify the values for <literal>KeepAliveTimeout</literal>
and <literal>MaxKeepAliveRequests</literal> to match
- the following:</para><screen><userinput>KeepAliveTimeout 1</userinput><userinput>MaxKeepAliveRequests 100</userinput></screen></listitem><listitem><para>Further configuration changes to Apache may be
+ the following:</para>
+ <screen>
+ <userinput>KeepAliveTimeout 1</userinput>
+ <userinput>MaxKeepAliveRequests 100</userinput>
+ </screen>
+ </listitem>
+ <listitem>
+ <para>Further configuration changes to Apache may be
necessary for busy systems. These changes increase the
number of Apache server processes that are started to
- support additional browser connections.</para><para>As the
+ support additional browser connections.</para>
+ <para>As the
<systemitem class="username">root</systemitem> user,
edit the Apache configuration file
<filename>/etc/apache2/apache2.conf</filename>, locate
and modify the section related to <emphasis>prefork
configuration</emphasis> to suit the load on your
- system:</para><programlisting language="xml"><![CDATA[
+ system:</para>
+ <programlisting language="xml"><![CDATA[
<IfModule mpm_prefork_module>
StartServers 20
MinSpareServers 5
MaxClients 150
MaxRequestsPerChild 10000
</IfModule>
-]]></programlisting></listitem></itemizedlist></step><step><title>Enable the Evergreen web site</title><para>Finally, you must enable the Evergreen web site. As the
+]]></programlisting>
+ </listitem>
+ </itemizedlist>
+ </step>
+ <step>
+ <title>Enable the Evergreen web site</title>
+ <para>Finally, you must enable the Evergreen web site. As the
<systemitem class="username">root</systemitem> user, execute the
following Apache configuration commands to disable the default
<emphasis>It Works</emphasis> web page and enable the Evergreen
- web site, and then restart the Apache server:</para><screen><prompt># disable/enable web sites</prompt><userinput>a2dissite default</userinput><userinput>a2ensite eg.conf</userinput><prompt># restart the server</prompt><userinput>/etc/init.d/apache2 reload</userinput></screen></step></substeps></step>
+ web site, and then restart the Apache server:</para>
+ <screen>
+ <prompt># disable/enable web sites</prompt>
+ <userinput>a2dissite default</userinput>
+ <userinput>a2ensite eg.conf</userinput>
+ <prompt># restart the server</prompt>
+ <userinput>/etc/init.d/apache2 reload</userinput>
+ </screen>
+ </step>
+ </substeps>
+ </step>
<step xml:id="serversideinstallation-opensrf-config">
<title>Update the OpenSRF Configuration File</title>
<para>As the <systemitem class="username">opensrf</systemitem> user, edit the