--- doc/build/Attic/install.html 2002/02/13 15:06:22 1.12 +++ doc/build/Attic/install.html 2002/07/18 19:51:31 1.31 @@ -1,7 +1,10 @@ + - + + LON-CAPA Installation @@ -12,20 +15,48 @@

You will need to check all the following things to ensure proper installation of your LON-CAPA system. +

+

+NOTE: +If you want to simultaneously install both RedHat 7.3 and LON-CAPA +(to ensure 100% reliability), follow these +alternative directions. +

+ +

+The following instructions assume you are logged in as 'root'. +

+

Entering the mysql shell

+
+
+mysql -u root -p mysql
+OR
+mysql -u root mysql (depending on whether you have set a root password)
+
+
+

Creating the mysql 'www' user (after entering mysql shell)

+
+
+mysql> CREATE DATABASE loncapa;
+
+mysql> INSERT INTO user (Host, User, Password)
+mysql> VALUES ('localhost','www',password('localhostkey'));
+
+mysql> GRANT ALL PRIVILEGES ON *.* TO www@localhost;
+
+mysql> FLUSH PRIVILEGES;
+
+
+

SECURITY: set a password for the mysql 'root' user

+
+
+shell> mysql -u root mysql
+mysql> SET PASSWORD FOR root@localhost=PASSWORD('ROOTPASSWORD');
+
+
+

SECURITY: only allow access from localhost

+
+
+shell> mysql -u root -p mysql
+mysql> DELETE FROM user WHERE host<>'localhost';
+
+
+ +

Testing to see if the LON-CAPA server is operational

+

+The TEST command will check the installation software, +the perl libraries on your system, the MySQL database, and +will also automatically test the real-time operation of the +LON-CAPA Apache web server.

+ + +
./TEST
+

+Using the TEST command will likely +be an iterative process. +It is normal to expect that the TEST command +will recommend you perform various steps to ensure optimal +performance of your LON-CAPA server. +

+ +