File:  [LON-CAPA] / doc / install / fedora / single_file_install.html
Revision 1.3: download - view: text, annotated - select for diffs
Fri Feb 11 17:42:59 2005 UTC (19 years, 9 months ago) by matthew
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_X, version_2_5_99_1, version_2_5_99_0, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1, version_2_2_0, version_2_1_X, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0, version_2_1_3, version_2_1_2, version_2_1_1, version_2_1_0, version_2_12_X, version_2_11_X, version_2_11_5_msu, version_2_11_5, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, version_2_10_X, version_2_10_1, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, version_2_0_X, version_2_0_99_1, version_2_0_2, version_2_0_1, version_2_0_0, version_1_99_3, version_1_99_2, version_1_99_1_tmcc, version_1_99_1, version_1_99_0_tmcc, version_1_99_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, bz6209-base, bz6209, HEAD, GCI_3, GCI_2, GCI_1, BZ4492-merge, BZ4492-feature_horizontal_radioresponse, BZ4492-feature_Support_horizontal_radioresponse, BZ4492-Support_horizontal_radioresponse
Added a bit about copying the loncapa_yum.conf file to /etc.

<html>
<head><title>New installation instructions</title></head>
<body>
<!-- $Id: single_file_install.html,v 1.3 2005/02/11 17:42:59 matthew Exp $-->
<h1>Installing LON-CAPA on a Fedora Core 3 Linux System</h1>
<p>
This document guides you through the process of installing LON-CAPA on a
Fedora Core 3 (FC3) 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 3 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.  You will want to be sure
you have enough disk space for these two partitions.
</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 yum.conf </li>
  <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 yum.conf</h2>
<p>
You will need to copy the loncapa_yum.conf file over the default yum.conf
file.
<pre>
mv /etc/yum.conf /etc/yum.conf.backup
cp loncapa_yum.conf /etc/yum.conf
</pre>
</p>
<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 3 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.3.2
./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-1.3.2/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>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>