--- doc/build/fedora_install.frag 2004/01/30 17:29:43 1.2 +++ doc/build/fedora_install.frag 2004/07/15 14:35:38 1.11 @@ -1,7 +1,7 @@ -

Installing LON-CAPA on a Fedora Linux System

+

Installing LON-CAPA on a Fedora Core 2 Linux System

This document guides you through the process of setting up a new LON-CAPA -server running Fedora Linux. The computer will be configured solely as +server running Fedora Core 2 (FC2). The computer will be configured solely as a LON-CAPA server and will be expected to have no other services running on it.

@@ -27,6 +27,7 @@ The installation process takes the follo

  • Obtain Fedora Linux
  • Determine Network Settings
  • Install Fedora
  • +
  • Uninstall the http server
  • Install LON-CAPA Dependencies
  • Determine your LON-CAPA Settings
  • Install LON-CAPA
  • @@ -57,10 +58,6 @@ DHCP is not supported.
  • domain name server(s)
  • -

    Gather needed information

    - - -

    Install Fedora

    Installing Fedora is quite easy if you've installed any of the Red Hat products @@ -101,9 +98,10 @@ There are a few sections that require co

  • Editors
  • Text Based Internet
  • Authoring and Publishing
  • -
  • Development Tools -
  • Administration Tools -
  • Printing Support +
  • Server Configuration Tools
  • +
  • Development Tools
  • +
  • Administration Tools
  • +
  • Printing Support
  • @@ -132,14 +130,38 @@ tar xf fedora_install.tar This creates a directory named installation.

    +

    Uninstall the http server

    +

    +Fedora Core 2 installs the http server even if you have not chosen it in +the package selection part of the install. LON-CAPA will not work with this +web server installed. It must be removed. +Use the following commands to remove the http and mod_perl packages if they +exist: (Note: +The commands below use backticks, not single quotes.: +

    +

    +

    +rpm -e `rpm -q -a | grep mod_perl`
    +rpm -e `rpm -q -a | grep httpd`
    +
    +

    +If the above commands returns no output (the usual indicator of success), or an +error message 'rpm: no packages given for erase' (meaning there were no +packages that contain httpd or mod_perl), you are good to go. +

    +

    Installing LON-CAPA Dependencies

    This section walks you through installing the packages which LON-CAPA requires. -There are a lot of dependencies to deal with. They have been grouped in a +There are a lot of dependencies. They have been grouped in a somewhat logical fashion to make them easier to deal with. When installing -the rpms you should watch for errors. -

    -The quick instructions are: +the rpms you should watch for errors. Errors generated by RPMs which are +already should not be considered a problem, although you will have to ensure +the other rpms in the directory get installed. +

    + +

    +To install the many LON-CAPA dependencies, execute the following commands:

     cd installation
    @@ -154,9 +176,7 @@ rpm -Uvh *rpm
     cd ../GD
     rpm -Uvh *rpm
     cd ../gnuplot
    -rpm --install --oldpackage readline-2.2.1-6.i386.rpm
    -rpm --install --oldpackage --excludedocs libpng-1.0.12-2.i386.rpm
    -rpm -Uvh gnuplot-3.7.1-5.i386.rpm libgd-1.3-4.i386.rpm ncurses4-5.0-5.i386.rpm
    +rpm -Uvh *rpm
     cd ../misc
     rpm -Uvh *rpm
     cd ..
    @@ -168,10 +188,10 @@ cd ..
             Administering LON-CAPA machines does not yet mean becoming a 
             database administrator.
         
  • Apache 1.3 and mod_perl 1.x are required by LON-CAPA. These are - provided in the installation package. -
  • A specific version of Gnuplot is required by LON-CAPA. Do not - install a version different from the one included in the LON-CAPA - installation package.
  • + provided in the installation package. The mod_perl package has been + repackaged from the Redhat sources with the name 'mod_perl_1' in + order to prevent version 1.99 of mod_perl from being installed by + yum or other package managers.

    @@ -228,7 +248,7 @@ for it to function at all. Below is a l To configure and install LON-CAPA, execute the following commands:

    -cd /root/loncapa-N.N     (N.N should correspond to a version number like '1.1')
    +cd /root/loncapa-N.N     (N.N should correspond to a version number like '1.2')
     ./UPDATE
     

    @@ -250,6 +270,10 @@ appropriate user name and your domain. 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

    Start/Restart Services

    @@ -261,9 +285,23 @@ 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 +Installing LON-CAPA Dependencies. If you still have errors, please +contact the LON-CAPA development team. +

    Log in to your LON-CAPA Machine

    Point a web browser at your new machine and log in as the domain coordinator. Congratulations!

    + +

    If Things aren't working right

    +

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