[LON-CAPA-cvs] cvs: doc /install/fedora single_file_install.html

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 18 Oct 2004 20:57:38 -0000

matthew		Mon Oct 18 16:57:38 2004 EDT

  Added files:                 
    /doc/install/fedora	single_file_install.html 
  Single file installation instructions.

Index: doc/install/fedora/single_file_install.html
+++ doc/install/fedora/single_file_install.html
<head><title>New installation instructions</title></head>
<!-- $Id: single_file_install.html,v 1.1 2004/10/18 20:57:38 matthew Exp $-->
<h1>Installing LON-CAPA on a Fedora Core 2 Linux System</h1>
This document guides you through the process of installing LON-CAPA on a
Fedora Core 2 (FC2) system.  Information about Fedora is available from
<a href="http://fedora.redhat.com/">http://fedora.redhat.com/</a>.
More information about LON-CAPA is available from
<a href="http://www.loncapa.org">http://www.loncapa.org</a> and 
<a href="http://install.loncapa.org">http://install.loncapa.org</a>.
These instructions assume you have installed Fedora Core 2 on your system
and it is running properly.  All of the LON-CAPA data is stored in
/home/httpd.  MySQL is used to store temporary caches of system data, by 
default this uses storage space in /var/lib/mysql.
Please keep your system up to date.  By default, LON-CAPA will add its
own repository to your /etc/yum.conf file.  Additionally, yum will be run
every morning to determine if there are any packages which need to be 
upgraded.  If there are, an email will be sent to the server administrator
(specified in the LON-CAPA installation).  It behooves you to keep your
system up to date.

<h2>Installation Overview</h2>
The installation must be done as root.
The installation process takes the following steps:
  <li> Install LON-CAPA </li>
  <li> Create a Domain Coordinator </li>
  <li> Start/Restart services </li>
  <li> Log in to LON-CAPA </li>

<h2>Install LON-CAPA</h2>
<h3>Remove conflicting packages</h3>
You will need to remove the following packages which conflict with LON-CAPA.
<li> httpd
<li> php
<li> mod_throttle
<li> mod_bandwidth
<li> mod_perl
List the packages you have installed that match by executing:
rpm -q -f | grep PACKAGENAME
You can remove the packages individually using
You will need to remove all of the packages which depend on the ones you are 
You can remove the associated packages en mass if you are satisfied the prior 
command selected all the appropriate packages:
rpm -q -a | grep PACKAGENAME | rpm -e

<h3>Install prerequisites</h3>
We have provided many of the packages needed for LON-CAPA in the installation
bundle.  They reside in the prerequisites directory.  You will need to install them using the following commands:
cd prerequisites
rpm -Uvh *rpm
You will need to resolve any errors this process generated.  For packages that are already installed you can simply remove them from the directory:
And try the installation command again.  If there are required packages which
have not been installed, these should be found on your Fedora Core 2 installation CDs.

<h3>Determine LON-CAPA Settings</h3>
LON-CAPA requires a number of identifying parameters be set in order
for it to function at all.  Below is a list with descriptions.
  <dt>Host Type (library or access)</dt>
  <dd>The server must be designated a 'library' or an 'access' server.  In
      general you should have a library server for your instructors to create
      their course content on and run their courses.  Students should connect
      to access servers.  If you are doing the first install of LON-CAPA at 
      your site, or if you are playing with it for your own edification you
      should make your machine a 'library' server.</dd>
  <dt>LON-CAPA domain</dt>
  <dd>Each site or school which installs LON-CAPA needs its own domain.
      Here at MSU we use 'msu'.  You should choose something short but
      meaningful.  <i>Restriction: One word, no hyphens, underscores, or 
      special characters.</i>
  <dt>LON-CAPA host id</dt>
  <dd>Each LON-CAPA server requires a unique internal name.  We use names
      such as "msul1" for the first library server. <i>Restriction: One word, 
      no hyphens, underscores, or special characters.</i>
  <dt>Host administrator email</dt>
  <dd>The amount of email sent to this address is relatively minimal.  Messages
      are sent every time the system starts up, or if the system is in 
      serious trouble. On a laptop, make this <tt>root@localhost</tt>.

<h3>Install and Configuring LON-CAPA</h3>
To configure and install LON-CAPA, execute the following commands:
cd ~/loncapa_install/
You will need to enter a root password for MySQL.  Once this is complete
you will need to execute:
cd /root/loncapa-1.2.1
You will need to enter the LON-CAPA configuration information you determined 
in the previous section.  

<h2>Creating a Domain Coordinator</h2>
You will need at least one user at your site who has the role of
'domain coordinator'.  This user creates accounts for other users and
grants them additional privileges.  The make_domain_coordinator.pl script
invoked below requires that you enter the users password.  The password will
show in plaintext as you type it.  Feel free to use the "passwd username"
command to change it later.  Replace USERNAME and DOMAIN with an 
appropriate user name and your domain.
cd /root/loncapa-N.N/loncom/build
perl make_domain_coordinator.pl USERNAME DOMAIN
mkdir ~USERNAME/public_html
chown USERNAME:www ~USERNAME/public_html
chmod 0775 ~USERNAME/public_html
chmod a+x ~USERNAME

<h2>Start/Restart Services</h2>
The LON-CAPA network services take a moment to start.  Most misconfigurations
will be appearant at this step.
/etc/init.d/loncontrol start
/etc/init.d/httpd start
If you receive warnings when starting the httpd about missing perl modules,
please make sure you followed the instructions in 
<b>Installing LON-CAPA Dependencies</b>.  If you still have errors, please
contact the LON-CAPA development team.
<h2>Log in to your LON-CAPA Machine</h2>
Point a web browser at your new machine and log in as the domain
coordinator.  Congratulations!

<h2>If Things aren't working right</h2>
If you've followed the steps above and the server doesn't start or you think 
there's something wrong, please get in touch with the LON-CAPA developers.
If there were errors in installation of the dependency RPMs or during the
automatic setup, please send us as much information as possible.
If some part of this document is unclear please let us know.