Annotation of doc/build/install.html, revision 1.14

1.11      harris41    1: <!-- The LearningOnline Network with CAPA -->
1.14    ! harris41    2: <!-- $Id: install.html,v 1.13 2002/04/23 12:33:40 harris41 Exp $ -->
1.11      harris41    3: <html>
                      4: <head>
                      5: <title>LON-CAPA Installation</title>
1.12      harris41    6: <!-- pdfahref install.pdf -->
                      7: <!-- button INSTALL -->
1.11      harris41    8: </head>
1.12      harris41    9: <body bgcolor='#ffffff'>
                     10: <!-- preamble start -->
                     11: <br />&nbsp;
                     12: <p>
                     13: You will need to check all the following things to ensure proper
                     14: installation of your LON-CAPA system.
                     15: <ul>
1.13      harris41   16: <li><a href="#wwwuser">
                     17: Creating a user 'www'</a></li>
                     18: <li><a href="#shadow">
1.12      harris41   19: Make a LON-CAPA system work with shadow passwords</a></li>
1.13      harris41   20: <li><a href="#install">
                     21: Installing LON-CAPA files</a></li>
                     22: <li><a href="#checkrpms">
                     23: Checking your Linux RPMs</a></li>
                     24: <li><a href="#mysql">
                     25: Configuring the MySQL database</a></li>
1.12      harris41   26: </ul>
                     27: <br />&nbsp;
                     28: <!-- preamble end -->
                     29: <!-- maintext start -->
1.13      harris41   30: <a name="wwwuser" />
                     31: <h3>Creating a user 'www'</h3>
                     32: <p>
1.14    ! harris41   33: Execute the following command to create a user named 'www' on your
        !            34: LON-CAPA server:
1.13      harris41   35: </p>
1.14    ! harris41   36: <table bgcolor="#aaaaaa" border="1"><tr><td>
        !            37: <tt>/usr/sbin/useradd www</tt>
        !            38: </td></tr></table>
1.13      harris41   39: <a name="shadow" />
1.12      harris41   40: <h3>Make a LON-CAPA system work with shadow passwords</h3>
                     41: <p>
1.14    ! harris41   42: <table border="1">
1.12      harris41   43: <tr><th>Step #</th><th>Description</th></tr>
                     44: <tr><td>
1.14    ! harris41   45: <font size="+1">1</font>
1.12      harris41   46: </td><td>
                     47: <p>Is your system using shadow passwords? (Note: LON-CAPA will
                     48: work with either MD5/non-MD5 configured systems).  If your
                     49: system is not using shadow passwords, then do not perform
                     50: any of the additional steps.  If your system is using shadow
                     51: passwords, then you will need to perform the additional steps below.
                     52: </p>
                     53: <p>
                     54: <strong>How to detect:</strong>
                     55: <br />command: <tt>cat /etc/passwd | grep ':x:'</tt>
                     56: </p>
                     57: <p>If there is output such as "<tt>root:x:0:0:root:/root:/bin/bash</tt>",
                     58: then your system is using shadow passwords and you will need to continue with
                     59: the steps below.
                     60: </p>
                     61: </td></tr>
                     62: <tr><td>
                     63: <font size='+1'>2</font>
                     64: </td><td>
                     65: <p><strong>Retrieve the mod_auth_external source</strong> by
                     66: running the following command
                     67: </p>
                     68: <p><tt>
                     69: wget http://www.wwnet.net/~janc/software/mod_auth_external-2.1.13.tar.gz
                     70: </tt>
                     71: </p>
                     72: </td></tr>
1.13      harris41   73: <tr><td>
                     74: <font size='+1'>3</font>
                     75: </td><td>
                     76: <p><strong>More steps...</strong>
                     77: </p>
                     78: <p><tt>
                     79: There are more steps to include here.
                     80: </tt>
                     81: </p>
                     82: </td></tr>
                     83: </table>
                     84: </p>
                     85: <a name="install" />
                     86: <h3>Installing LON-CAPA files</h3>
                     87: <p>
                     88: Download the most current
                     89: <a href="http://install.lon-capa.org/versions/current/loncapa.tar.gz">
                     90: loncapa.tar.gz</a>.
                     91: </p>
1.14    ! harris41   92: <p>
        !            93: The <strong>UPDATE</strong> command will refresh your filesystem with all
        !            94: the latest LON-CAPA software.
        !            95: </p>
        !            96: <table bgcolor="#aaaaaa" border="1">
        !            97: <tr><td><tt>./UPDATE</tt></td></tr>
        !            98: </table>
1.13      harris41   99: <a name="checkrpms" />
                    100: <h3>Checking your Linux RPMs</h3>
                    101: <p>
1.14    ! harris41  102: The <strong>CHECKRPMS</strong> command will check the RPMs on your machine
        !           103: against an FTP repository.
1.13      harris41  104: </p>
1.14    ! harris41  105: <table bgcolor="#aaaaaa" border="1">
1.13      harris41  106: <tr><td><tt>./CHECKRPMS</tt></td></tr>
1.12      harris41  107: </table>
1.13      harris41  108: <a name="mysql" />
                    109: <h3>Configuring the MySQL database</h3>
                    110: <p>
                    111: The following commands describe how to configure the MySQL database
                    112: on your LON-CAPA server.
1.12      harris41  113: </p>
1.14    ! harris41  114: <table bgcolor="#aaaaaa" border="1"><tr><td>
1.13      harris41  115: <pre>
                    116: Enter the mysql shell---
                    117: mysql -u root -p mysql
                    118: 
                    119: Run these commands---
                    120: CREATE DATABASE loncapa;
                    121: 
                    122: INSERT INTO user (Host, User, Password)
                    123: VALUES ('localhost','www',password('SOMEPASSWORD'));
                    124: 
                    125: GRANT ALL PRIVILEGES ON *.* TO www@localhost;
                    126: 
                    127: FLUSH PRIVILEGES;
                    128: 
                    129: shell> mysql -u root mysql
                    130: mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_password');
                    131: </pre>
                    132: </td></tr></table>
1.12      harris41  133: <!-- maintext end -->
1.11      harris41  134: </body>
                    135: </html>

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