Annotation of doc/install/redhat7.3/new_install_rh73.html, revision 1.7
1.7 ! harris41 1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
! 2: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
! 3: <html>
! 4: <head>
! 5: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
! 6: <title>Setting up a Red Hat7.3 LON-CAPA Server</title>
! 7: </head>
! 8: <body>
! 9: <!-- $Id: new_install_rh73.html,v 1.6 2002/06/19 21:09:52 matthew Exp $ -->
1.3 www 10: <h1>Setting up a Red Hat 7.3 LON-CAPA Server</h1>
1.1 matthew 11:
12: <h2>Before you begin</h2>
13: <p>
14: Installing Linux is getting easier and easier. However, it is still a
15: non-trivial undertaking and experience with Red Hat Linux will make this
16: process easier. You will be required to log in to the machine and execute
17: some routine Unix commands. Some familiarity with Linux is assumed.
18: </p>
19:
20: <h2>Installation Overview</h2>
21: <p>
22: The installation process takes the following steps:
1.7 ! harris41 23: </p>
1.1 matthew 24: <ol>
1.2 matthew 25: <li> Obtain Red Hat 7.3 </li>
26: <li> Gather information for installing Red Hat </li>
27: <li> Install Red Hat 7.3 </li>
28: <li> Determine your LON-CAPA Settings </li>
29: <li> Install LON-CAPA </li>
30: <li> Configure LON-CAPA </li>
31: <li> Pick a hosts.tab file </li>
32: <li> Create a Domain Coordinator </li>
33: <li> Start/Restart services </li>
34: <li> Log in to LON-CAPA </li>
1.1 matthew 35: </ol>
36:
37: <h2>Obtain the Red Hat 7.3 installation CDs</h2>
38: <p>
39: If you like, you may contact the LON-CAPA development staff and we can
40: mail the CDs to you. Another option is to download the cd images and
1.3 www 41: burn them yourself, or install from a mirror site using ftp or http.
1.1 matthew 42: </p>
43:
1.2 matthew 44: <h2>Determine Network settings for your site</h2>
1.1 matthew 45: <p>
1.2 matthew 46: You will need to have the following information for your site. You must
47: have a static IP address (do not use DHCP).
1.7 ! harris41 48: </p>
1.1 matthew 49: <ul>
1.2 matthew 50: <li>ip address </li>
51: <li>netmask </li>
52: <li>network </li>
53: <li>broadcast </li>
54: <li>hostname </li>
55: <li>gateway </li>
56: <li>domain name server(s) </li>
1.1 matthew 57: </ul>
58:
59: <h2>Install Red Hat 7.3</h2>
60: <p>
61: When you install RedHat you will need to ensure the following (the list below
62: is in the order the issues appear in the installation of Red Hat 7.3):
1.7 ! harris41 63: </p>
1.1 matthew 64: <dl>
1.7 ! harris41 65: <dt>Installation Type</dt>
1.1 matthew 66: <dd>You should definitely do a "Server" install. We do not recommend
1.7 ! harris41 67: Trying to install LON-CAPA with a different installation type.</dd>
! 68: <dt>Partitioning your Drive</dt>
1.1 matthew 69: <dd>You may want to use the automatic partitioning feature of Red Hat,
70: however you should review the results and be prepared to modify them.
71: LON-CAPA resource files are stored in the /home directory, so the
72: lion's share of the drive should be allocated here. If you have 8 GB
73: of space for Red Hat, /home should receive 4 to 6 gigs. Be sure to
74: include adequate swap space. A minimum is 512 Megs, but you should
1.7 ! harris41 75: typically have 1 or 2x as much swap space as you do physical RAM.</dd>
! 76: <dt>Network Configuration</dt>
1.1 matthew 77: <dd>LON-CAPA will <b>not</b> work with a machine set up to use a dynamic
78: IP address. When configuring your network card, be sure to unselect
1.7 ! harris41 79: the DHCP option and enter in your network information.</dd>
! 80: <dt>Firewall Configuration</dt>
! 81: <dd>The installation script will remove and disable your firewall.</dd>
! 82: <dt>Package Group Selection</dt>
1.1 matthew 83: <dd>At a minimum, install the following packages:
84: <ul>
1.2 matthew 85: <li>NFS File Server </li>
86: <li>Windows File Server </li>
87: <li>Web Server </li>
1.1 matthew 88: </ul>
1.7 ! harris41 89: Other packages can be installed as you like.</dd>
! 90: <dt>X Windows Configuration</dt>
1.1 matthew 91: <dd>If you chose to install the X-windows packages you will need to
92: configure them. If you are unsure of the support for your video
1.7 ! harris41 93: card you may wish to skip the configuration.</dd>
1.1 matthew 94: </dl>
1.7 ! harris41 95: <p>
1.1 matthew 96: Other notes:
1.7 ! harris41 97: </p>
1.1 matthew 98: <ul>
99: <li>Use md5 and shadow passwords if you are given the choice (this is
1.2 matthew 100: the default). </li>
1.1 matthew 101: </ul>
102:
103: <h2>Determine LON-CAPA settings</h2>
104: <p>
105: LON-CAPA requires a number of identifying parameters be set in order
106: for it to function at all. Below is a list with descriptions.
1.7 ! harris41 107: </p>
1.1 matthew 108: <dl>
1.7 ! harris41 109: <dt>Host Type (library or access)</dt>
1.1 matthew 110: <dd>The server must be designated a 'library' or an 'access' server. In
111: general you should have a library server for your instructors to create
112: their course content on and run their courses. Students should connect
113: to access servers. If you are doing the first install of LON-CAPA at
114: your site, or if you are playing with it for your own edification, you
1.7 ! harris41 115: should make your machine a 'library' server.</dd>
! 116: <dt>LON-CAPA domain</dt>
1.1 matthew 117: <dd>Each site or school which installs LON-CAPA needs its own domain.
118: Here at MSU we use 'msu'. You should choose something short but
1.7 ! harris41 119: meaningful.
1.6 matthew 120: <i>Restriction: One word, no hyphens, underscores, or special characters</i>
1.7 ! harris41 121: </dd>
! 122: <dt>LON-CAPA host id</dt>
1.1 matthew 123: <dd>Each LON-CAPA server requires a unique internal name. We use names
1.6 matthew 124: such as "msul1" for the first library server.
125: <i>Restriction: One word, no hyphens, underscores, or special characters</i>
1.7 ! harris41 126: </dd>
! 127: <dt>Host administrator email</dt>
1.1 matthew 128: <dd>The amount of email sent to this address is relatively minimal. Messages
1.6 matthew 129: are sent every time the system starts up, or if the system is in
130: serious trouble. On a laptop, make this <tt>root@localhost</tt>.
1.7 ! harris41 131: </dd>
! 132: <dt>Root password for SQL database</dt>
1.1 matthew 133: <dd>In order to keep people from corrupting the MYSQL database, a root
1.7 ! harris41 134: password is needed. You'll need to remember this.</dd>
1.1 matthew 135: </dl>
136:
137: <h2>Install LON-CAPA</h2>
138: <p>
139: Log in as root with the password you provided during the Red Hat
140: installation process.
1.7 ! harris41 141: </p>
1.1 matthew 142: <pre>
143: wget http://install.loncapa.org/versions/rh73install/loncapa-rh73install.tar
144: tar xf loncapa-rh73install.tar
145: cd install
146: ./install.pl
147: </pre>
148:
149: <h2>Configure LON-CAPA</h2>
150: <p>
151: Execute the following commands
1.7 ! harris41 152: </p>
1.1 matthew 153: <pre>
154: cd /root/loncapa/
155: ./UPDATE
156: </pre>
1.7 ! harris41 157: <p>
1.1 matthew 158: You will need to enter the LON-CAPA configuration information you requested
1.6 matthew 159: above.
1.1 matthew 160: </p>
161:
162: <h2>Picking a hosts.tab file</h2>
1.7 ! harris41 163: <p>
1.1 matthew 164: The "hosts.tab" file controls which LON-CAPA servers your server attempts
165: to access and which servers it will respond to. If this is your first
166: install of LON-CAPA on your network, we suggest choosing a 'standalone'
1.3 www 167: "hosts.tab". On a laptop, you must choose 'standalone'.
168: Please contact the support staff at www.loncapa.org for
1.1 matthew 169: information about adding more hosts to your "hosts.tab" file.
1.7 ! harris41 170: </p>
1.3 www 171: <p>
172: <b>Note:</b> for <b>non</b>-standalone configurations, you do need to add
173: yourself to the <tt>/home/httpd/lonTabs/hosts.tab</tt> to initially test your
174: configuration. Eventually, you will be added to the general cluster tables by
175: LON-CAPA staff, so this is temporary. A <tt>hosts.tab</tt> entry has the
176: format
1.7 ! harris41 177: </p>
1.3 www 178: <pre>
179: lonHostID:domain:hosttype:dns-name:ipaddress
180: </pre>
1.7 ! harris41 181: <p>
1.3 www 182: for example
1.7 ! harris41 183: </p>
1.3 www 184: <pre>
185: 103l5:library:s17.lite.msu.edu:35.8.63.27
186: </pre>
1.7 ! harris41 187: <p>
1.3 www 188: Please edit this file with a UNIX editor, not a PC or Mac one, so that the
189: linebreaks are correct.
190: </p>
1.7 ! harris41 191:
1.1 matthew 192: <h2>Creating a Domain Coordinator</h2>
193: <p>
194: You will need at least one user at your site who has the role of
195: 'domain coordinator'. This user creates accounts for other users and
196: grants them additional privileges. The make_domain_coordinator.pl script
197: invoked below requires that you enter the users password. The password will
1.2 matthew 198: show in plaintext as you type it. Feel free to use the "passwd username"
1.1 matthew 199: command to change it later. Replace USERNAME and DOMAIN with an
200: appropriate user name and your domain.
1.7 ! harris41 201: </p>
1.1 matthew 202: <pre>
203: cd /root/loncapa/loncom/build
204: perl make_domain_coordinator.pl USERNAME DOMAIN
1.3 www 205: (WILL PROMPT FOR PASSWORD HERE)
1.1 matthew 206: mkdir ~USERNAME/public_html
207: chown USERNAME:www ~USERNAME/public_html
208: chmod 0775 ~USERNAME/public_html
1.6 matthew 209: chmod a+x ~USERNAME
1.1 matthew 210: </pre>
211:
212: <h2>Start/Restart Services</h2>
213: <p>
214: The services take about 10 minutes to start.
1.7 ! harris41 215: </p>
1.1 matthew 216: <pre>
217: /etc/init.d/loncontrol start
218: /etc/init.d/httpd restart
219: </pre>
220:
1.4 www 221: <h2>Make Sure that Services Autostart on Boot</h2>
222: <p>On Redhat 7.3 it is not guaranteed that Apache and MySQL automatically
1.5 matthew 223: restart on boot. You should run /usr/sbin/ntsysv and set the following
224: daemons to be started at boot:
1.7 ! harris41 225: </p>
1.5 matthew 226: <pre>
227: httpd
228: mysqld
229: </pre>
1.7 ! harris41 230: <p>
1.5 matthew 231: It is not necessary to reboot after doing this as they should already be
232: running by this point in the installation.
1.7 ! harris41 233: </p>
1.5 matthew 234: <pre>
235: /etc/init.d/httpd restart
236: /etc/init.d/mysqld restart
237: </pre>
1.7 ! harris41 238:
1.1 matthew 239: <h2>Log in to your LON-CAPA Machine</h2>
240: <p>
241: Point a web browser at your new machine and log in as the domain
242: coordinator. Congratulations!
243: </p>
1.7 ! harris41 244: </body>
! 245: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>