--- doc/build/centos5_install.frag 2008/12/10 19:13:41 1.1 +++ doc/build/centos5_install.frag 2011/02/10 10:36:47 1.6 @@ -23,27 +23,28 @@ perl, and MySQL are not required to inst The installation process takes the following steps:

    -
  1. Obtain CentOS Linux 5 installation CDs
  2. -
  3. Determine Network Settings
  4. -
  5. Install CentOS Linux 5
  6. -
  7. Update your system
  8. -
  9. Install LON-CAPA
  10. -
  11. Create a Domain Coordinator
  12. -
  13. Start/Restart services
  14. -
  15. Log in to LON-CAPA
  16. +
  17. Obtain CentOS Linux 5 installation CDs
  18. +
  19. Determine Network Settings
  20. +
  21. Install CentOS Linux 5
  22. +
  23. Update your system
  24. +
  25. Install LON-CAPA
  26. +
  27. Create a Domain Coordinator
  28. +
  29. Start/Restart services
  30. +
  31. Log in to LON-CAPA
-

Obtain CentOS Linux 5 CDs

+
+

1. Obtain CentOS Linux 5 CDs

-CentOS isos can be obtained from links included on the CentOS download page
+CentOS isos can be obtained from links included on the CentOS download page
For the minimal install on 32-bit architecture you will need only the first CD. For the minimal install on 64-bit architecture you will need CDs 1, 2, and 4. -

+

-

Determine Network Settings

+

2. Determine Network Settings

-You will need to know the following network settings for your installation. +You will need to know the following network settings for your installation. Note:You must have a static IP address to use LON-CAPA. DHCP is not supported. @@ -55,12 +56,12 @@ DHCP is not supported.

  • domain name server(s)
  • -

    Minimal CentOS Linux 5 Install

    +

    3. Minimal CentOS Linux 5 Install

    Installing CentOS Linux is quite easy, particularly if you've installed any of the Red Hat, Fedora or CentOS Linux distributions before. Documentation is available from http://wiki.centos.org/ -Most of the installation screens are self explanatory. +Most of the installation screens are self explanatory. There are a few steps that require comment and are dealt with below.

    @@ -87,28 +88,32 @@ There are a few steps that require comme
    Software
    Click the "Customize Now" radio button and for a minimal install uncheck all packages except "Base" in the Base System category. If you leave other packages checked in any of the other categories, you'll need additional ISO CDs.
    -

    -Finish installing your server, reboot it, and log in as root. The -first time you log-in, the Setup Agent will be displayed. (If you exit it early you can enter it again buy running the command -

    -setup
    -
    - This should tool be used to configure the Firewall and SELinux. +

    +Finish installing your server, reboot it, and log in as root. +

    -
    Firewall Configuration
    +

    Firewall and SELinux Configuration

    +

    +The first time you log-in, the Setup Agent will be displayed. +If you exit it early you can enter it again buy running the command +

    +
    setup
    +

    +This tool should be used to configure the Firewall and SELinux. +

    -
    Select Security Level: Enabled, and Customize, to allow +
      +
    1. Select Security Level: Enabled, and Customize, to allow incoming: SSH (remote login), WWW (HTTP) and secure WWW - (HTTPS). (LON-CAPA also will use ports 5663 and 8080, but the - loncontrol startup script should open and close thos ports - itself.) -
    -
    Set SELinux to Disabled.
    -
    Select OK, and then Quit
    -

    + (HTTPS). + +
  • Set SELinux to Disabled.
  • +
  • Select OK, and then Quit
  • + + -

    Update your system

    +

    4. Update your system

    Update your system to the latest versions of the system software using yum.

    @@ -119,7 +124,7 @@ yum update Reboot your system before continuing with the installation.

    -Retrieve the rhel5_loncapa_yum file from the LON-CAPA install site: +Retrieve the centos5_loncapa_yum file from the LON-CAPA install site:

     wget http://install.loncapa.org/versions/centos/5/centos5_loncapa_yum.conf
    @@ -127,14 +132,16 @@ wget http://install.loncapa.org/versions
     

    Install the centos5_loncapa_yum.conf

    -

     mv /etc/yum.conf /etc/yum.conf.backup
     cp centos5_loncapa_yum.conf /etc/yum.conf
     yum update
     
    -

    -

    Installing LON-CAPA

    + + +

    5. Installing LON-CAPA

    +

    Import the LON-CAPA encryption key

    +
    rpm --import http://install.loncapa.org/versions/centos/RPM-GPG-KEY-loncapa

    Install prerequisites

    Execute:

    @@ -164,9 +171,10 @@ cd installation
     ./install.pl
     

    -This script will prompt you for the MySQL root password and will download the latest LON-CAPA release.
    -You can safely ignore the following warnings from gcc 4 when compiling pwauth:
    - +This script will prompt you for the MySQL root password and will download the latest LON-CAPA release.
    +You can safely ignore the following warnings from gcc 4 when compiling pwauth:
    +

    +
    pwauth.c: In function ‘lastlog’:
    -

    Determine LON-CAPA Settings

    @@ -197,7 +204,7 @@ for it to function at all. Below is a l

    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. Restriction: One word, no hyphens, underscores, or - special characters.
    Domain names which include a departmental + special characters.
    Domain names which include a departmental abbreviation are not recommended as although LON-CAPA may start in a single department, other departments frequently join subsequently. For a domain name: 'msu' is a superior choice to 'msuphys' for example. @@ -233,10 +240,10 @@ cd /root/loncapa-N.N (N.N should cor

    You will need to enter the LON-CAPA configuration information you determined -in the previous section. +in the previous section.

    -

    Creating a Domain Coordinator

    +

    6. Creating a Domain Coordinator

    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 @@ -252,7 +259,7 @@ perl make_domain_coordinator.pl USERNAME (WILL PROMPT FOR PASSWORD HERE) -

    Start/Restart Services

    +

    7. Start/Restart Services

    The LON-CAPA network services take a moment to start. Most misconfigurations will be apparent at this step. @@ -267,12 +274,14 @@ please make sure you followed the instru Installing LON-CAPA Dependencies. If you still have errors, please contact the MSU LON-CAPA group.

    -

    Log in to your LON-CAPA Machine

    + +

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