[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
Log:
Single file installation instructions.
Index: doc/install/fedora/single_file_install.html
+++ doc/install/fedora/single_file_install.html
<html>
<head><title>New installation instructions</title></head>
<body>
<!-- $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>
<p>
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>.
</p><p>
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.
</p><p>
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.
</p>
<h2>Installation Overview</h2>
<p>
The installation must be done as root.
</p><p>
The installation process takes the following steps:
</p>
<ol>
<li> Install LON-CAPA </li>
<li> Create a Domain Coordinator </li>
<li> Start/Restart services </li>
<li> Log in to LON-CAPA </li>
</ol>
<h2>Install LON-CAPA</h2>
<h3>Remove conflicting packages</h3>
<p>
You will need to remove the following packages which conflict with LON-CAPA.
<ul>
<li> httpd
<li> php
<li> mod_throttle
<li> mod_bandwidth
<li> mod_perl
</ul>
List the packages you have installed that match by executing:
<pre>
rpm -q -f | grep PACKAGENAME
</pre>
You can remove the packages individually using
<pre>
rpm -e PACKAGENAME
</pre>
You will need to remove all of the packages which depend on the ones you are
removing.
You can remove the associated packages en mass if you are satisfied the prior
command selected all the appropriate packages:
<pre>
rpm -q -a | grep PACKAGENAME | rpm -e
</pre>
</p>
<h3>Install prerequisites</h3>
<p>
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:
<pre>
cd prerequisites
rpm -Uvh *rpm
</pre>
You will need to resolve any errors this process generated. For packages that are already installed you can simply remove them from the directory:
<pre>
mv CONFLICTINPACKAGE*.rpm ..
</pre>
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.
</p>
<h3>Determine LON-CAPA Settings</h3>
<p>
LON-CAPA requires a number of identifying parameters be set in order
for it to function at all. Below is a list with descriptions.
</p>
<dl>
<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>
</dd>
<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>
</dd>
<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>.
</dd>
</dl>
<h3>Install and Configuring LON-CAPA</h3>
<p>
To configure and install LON-CAPA, execute the following commands:
</p>
<pre>
cd ~/loncapa_install/
./install.pl
</pre>
You will need to enter a root password for MySQL. Once this is complete
you will need to execute:
<pre>
cd /root/loncapa-1.2.1
./UPDATE
</pre>
<p>
You will need to enter the LON-CAPA configuration information you determined
in the previous section.
</p>
<h2>Creating a Domain Coordinator</h2>
<p>
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.
</p>
<pre>
cd /root/loncapa-N.N/loncom/build
perl make_domain_coordinator.pl USERNAME DOMAIN
(WILL PROMPT FOR PASSWORD HERE)
mkdir ~USERNAME/public_html
chown USERNAME:www ~USERNAME/public_html
chmod 0775 ~USERNAME/public_html
chmod a+x ~USERNAME
</pre>
<h2>Start/Restart Services</h2>
<p>
The LON-CAPA network services take a moment to start. Most misconfigurations
will be appearant at this step.
</p>
<pre>
/etc/init.d/loncontrol start
/etc/init.d/httpd start
</pre>
<p>
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.
</p>
<h2>Log in to your LON-CAPA Machine</h2>
<p>
Point a web browser at your new machine and log in as the domain
coordinator. Congratulations!
</p>
<h2>If Things aren't working right</h2>
<p>
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.
</p>
</body>
</html>