version 1.34, 2002/09/23 01:25:09
|
version 1.38, 2002/11/16 15:45:22
|
Line 25 Make a LON-CAPA system work with shadow
|
Line 25 Make a LON-CAPA system work with shadow
|
Installing LON-CAPA files</a></li> |
Installing LON-CAPA files</a></li> |
<li><a href="#checkrpms"> |
<li><a href="#checkrpms"> |
Checking your Linux RPMs</a></li> |
Checking your Linux RPMs</a></li> |
|
<li><a href="#fixhosts"> |
|
Fixing <tt>/etc/hosts</tt></a></li> |
<li><a href="#mysql"> |
<li><a href="#mysql"> |
Configuring the MySQL database</a></li> |
Configuring the MySQL database</a></li> |
<li><a href="#testing"> |
<li><a href="#testing"> |
Line 177 against an FTP repository.
|
Line 179 against an FTP repository.
|
<table bgcolor="#aaaaaa" border="1"> |
<table bgcolor="#aaaaaa" border="1"> |
<tr><td><tt>./CHECKRPMS</tt></td></tr> |
<tr><td><tt>./CHECKRPMS</tt></td></tr> |
</table> |
</table> |
|
<a name="fixhosts" /> |
|
<h3>Fixing <tt>/etc/hosts</tt></h3> |
|
<p> |
|
A common RedHat glitch of new installations (RedHat's fault, not LON-CAPA) |
|
is the generation of /etc/hosts. |
|
</p> |
|
<p> |
|
It should look something like this (except the <tt>myschool</tt> line |
|
should be replaced with settings specific to your machine): |
|
</p> |
|
<table bgcolor="#aaaaaa" border="1"> |
|
<tr><td> |
|
<pre> |
|
127.0.0.1 localhost.localdomain localhost |
|
12.34.56.78 www.myschool.edu myschool |
|
</pre></td></tr> |
|
</table> |
<a name="mysql" /> |
<a name="mysql" /> |
<h3>Configuring the MySQL database</h3> |
<h3>Configuring the MySQL database</h3> |
<p> |
<p> |
Line 211 mysql> CREATE DATABASE loncapa;
|
Line 230 mysql> CREATE DATABASE loncapa;
|
mysql> INSERT INTO user (Host, User, Password) |
mysql> INSERT INTO user (Host, User, Password) |
mysql> VALUES ('localhost','www',password('localhostkey')); |
mysql> VALUES ('localhost','www',password('localhostkey')); |
|
|
mysql> GRANT ALL PRIVILEGES ON loncapa.* TO www@localhost; |
mysql> INSERT INTO db VALUES ('localhost','loncapa','www', |
|
mysql> 'Y','Y','Y','Y','Y','Y','N','Y','Y','Y'); |
|
|
mysql> FLUSH PRIVILEGES; |
mysql> FLUSH PRIVILEGES; |
</pre> |
</pre> |