File:  [LON-CAPA] / doc / build / rh73.frag
Revision 1.4: download - view: text, annotated - select for diffs
Tue Jul 6 15:59:49 2004 UTC (20 years, 4 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, version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, 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 "the" where it belongs and changed version mention from 0.6 to 1.2.

<h1>Setting up a Red Hat 7.3 LON-CAPA Server</h1>
<h2>Integrated installation</h2>
<p>
These instructions combine the installation of RedHat 7.3 and LON-CAPA
into one straightforward process. 
More information is available at <a href="http://install.lon-capa.org/">
http://install.lon-capa.org/</a>.
</p>

<h2>Before you begin</h2>
<p>
Installing Linux is getting easier and easier.  However, it is still a
non-trivial undertaking and experience with Red Hat Linux will make this 
process easier.  You will be required to log in to the machine and execute
some routine Unix commands.  Some familiarity with Linux is assumed.
</p>

<h2>Installation Overview</h2>
<p>
The installation process takes the following steps:
</p>
<ol>
  <li> Obtain Red Hat 7.3 </li>
  <li> Gather information for installing Red Hat </li>
  <li> Install Red Hat 7.3 </li>
  <li> Determine your LON-CAPA Settings </li>
  <li> Install LON-CAPA </li>
  <li> Configure LON-CAPA </li>
  <li> Pick a hosts.tab file </li>
  <li> Create a Domain Coordinator </li>
  <li> Start/Restart services </li>
  <li> Log in to LON-CAPA </li>
</ol>

<h2>Obtain the Red Hat 7.3 installation CDs</h2>
<p>
These are freely available on the internet.
</p>

<h2>Determine Network settings for your site</h2>
<p>
You will need to have the following information for your site.  You must
have a static IP address (do not use DHCP).
</p>
<ul>
  <li>ip address </li>
  <li>netmask </li>
  <li>network </li>
  <li>broadcast </li>
  <li>hostname </li>
  <li>gateway </li>
  <li>domain name server(s) </li>
</ul>

<h2>Install Red Hat 7.3</h2>
<p>
When you install RedHat you will need to ensure the following (the list below
is in the order the issues appear in the installation of Red Hat 7.3):
</p>
<dl>
   <dt>Installation Type</dt>
   <dd>You should definitely do a "Server" install.  We do not recommend
       Trying to install LON-CAPA with a different installation type.</dd>
   <dt>Partitioning your Drive</dt>
   <dd>You may want to use the automatic partitioning feature of Red Hat,
       however you should review the results and be prepared to modify them.
       LON-CAPA resource files are stored in the /home directory, so the
       lion's share of the drive should be allocated here.  If you have 20 GB 
       of space for Red Hat, /home should receive at least 10 to 12 gigs.  
       Since MySQL uses the /var filesystem to store its databases you should
       have at least 4 gigs of space available on /var.  Be sure to 
       include adequate swap space.  A minimum is 512 Megs, but you should
       typically have 1 or 2x as much swap space as you do physical RAM.</dd>
   <dt>Network Configuration</dt>
   <dd>LON-CAPA will <b>not</b> work with a machine set up to use a dynamic 
       IP address.  When configuring your network card, be sure to unselect
       the DHCP option and enter in your network information.</dd>
   <dt>Firewall Configuration</dt>
   <dd>The installation script will create a firewall for the install,
blocking all unnecessary port for LON-CAPA. <b>Note that you may need
to tweak the firewall installation if you have other network services
the machine needs to provide, such as Kerberos authentication.</b></dd>
   <dt>Package Group Selection</dt>
   <dd>At a minimum, install the following packages:
      <ul>
        <li>NFS File Server </li>
        <li>Windows File Server </li>
        <li>Web Server </li>
      </ul>
       Other packages can be installed as you like.</dd>
   <dt>X Windows Configuration</dt>
   <dd>If you chose to install the X-windows packages you will need to 
       configure them.  If you are unsure of the support for your video
       card you may wish to skip the configuration.</dd>
</dl>
<p>
Other notes:
</p>
<ul>
  <li>Use md5 and shadow passwords if you are given the choice (this is
      the default). </li>
</ul>

<h2>Determine LON-CAPA settings</h2>
<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>
  <dt>Root password for SQL database</dt>
  <dd>In order to keep people from corrupting the MYSQL database, a root
      password is needed.  You'll need to remember this.</dd>
</dl>

<h2>Install LON-CAPA</h2>
<p>
Log in as root with the password you provided during the Red Hat 
installation process.
</p><p>
Stop the http daemon while we're installing LON-CAPA. (If you're on a
fresh install, it is probably not running.)
<pre>
/etc/init.d/httpd stop
</pre>
</p><p>
Retrieve the LON-CAPA installation package
<pre>
wget http://install.loncapa.org/versions/rh73install/loncapa-rh73install.tar
tar xf loncapa-rh73install.tar
cd install
./install.pl
</pre>
</p>

<h2>Configure LON-CAPA</h2>
<p>
Execute the following commands
</p>
<pre>
cd /root/loncapa-N.N     (N.N should correspond to a version number like '1.2')
./UPDATE
</pre>
<p>
You will need to enter the LON-CAPA configuration information you requested
above.
</p>

<h2>Update your system</h2>
<p>
It is very important that you update your LON-CAPA system to use the
latest RedHat packages.  LON-CAPA uses CHECKRPMS to notify users their system
needs updating.  
<pre>
/usr/local/loncapa/bin/CHECKRPMS
</pre>
CHECKRPMS will give you the option of downloading the updates you need.
Say yes.  Then issue the following commands:
<pre>
cd /tmp/loncapa_rpm_updates
rpm -Uvh *
</pre>
</p><p>
You will need to reboot your system to begin running the new Linux Kernel
put out by RedHat.  You can wait until the end of the LON-CAPA installation
process to reboot.
</p><p>
Congratulate yourself - your system is up to date.  Please do your best to
keep it that way!  When LON-CAPA is installed it sets itself up to run the
CHECKRPMS script every night and email you the results.  
<b>Please do not ignore these emails.</b>  
You will need to update the RPMs yourself when it notifies you.  
Keeping your system up-to-date goes a long way towards ensuring the 
integrity of your student records.
</p>

<h2>Picking a hosts.tab file</h2>
<p>
The "hosts.tab" file controls which LON-CAPA servers your server attempts 
to access and which servers it will respond to.  If this is your first 
install of LON-CAPA on your network, we suggest choosing a 'standalone' 
"hosts.tab".  On a laptop, you must choose 'standalone'.
Please contact the support staff at www.loncapa.org for
information about adding more hosts to your "hosts.tab" file.
</p>
<p>
<b>Note:</b> for <b>non</b>-standalone configurations, you do need to add 
yourself  to the <tt>/home/httpd/lonTabs/hosts.tab</tt> to initially test your 
configuration. Eventually, you will be added to the general cluster tables by
LON-CAPA staff, so this is temporary. A <tt>hosts.tab</tt> entry has the 
format
</p>
<pre>
lonHostID:domain:hosttype:dns-name:ipaddress
</pre>
<p>
for example
</p>
<pre>
103l5:library:s17.lite.msu.edu:35.8.63.27
</pre>
<p>
Please edit this file with a UNIX editor, not a PC or Mac one, so that the 
linebreaks are correct.
</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 about a minute to start.
</p>
<pre>
/etc/init.d/loncontrol start
/etc/init.d/httpd restart
</pre>

<h2>Make Sure that Services Autostart on Boot</h2>
<p>On Redhat 7.3 it is not guaranteed that Apache and MySQL automatically 
restart on boot.  You should run /usr/sbin/ntsysv and set the following 
daemons to be started at boot:
</p>
<pre>
httpd
mysqld
</pre>
<p>
It is not necessary to reboot after doing this as they should already be 
running by this point in the installation.  
</p>
<pre>
/etc/init.d/httpd restart
/etc/init.d/mysqld restart
</pre>

<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>


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