version 1.7, 2002/05/10 16:17:17
|
version 1.10, 2002/09/23 01:25:09
|
Line 112 make DIST='redhat7' build; make DIST='re
|
Line 112 make DIST='redhat7' build; make DIST='re
|
httpd configuration: |
httpd configuration: |
|
|
cd /etc/httpd/conf |
cd /etc/httpd/conf |
cp access.conf.lpmlnew access.conf |
cp loncapa.conf.lpmlnew loncapa.conf |
edit access.conf to reflect the correct information: |
edit loncapa.conf to reflect the correct information: |
|
|
PerlSetVar lonHostID YOUR LON-HOST ID |
PerlSetVar lonHostID YOUR LON-HOST ID |
PerlSetVar lonRole library |
PerlSetVar lonRole library |
Line 286 CREATE DATABASE loncapa;
|
Line 286 CREATE DATABASE loncapa;
|
INSERT INTO user (Host, User, Password) |
INSERT INTO user (Host, User, Password) |
VALUES ('localhost','www',password('SOMEPASSWORD')); |
VALUES ('localhost','www',password('SOMEPASSWORD')); |
|
|
GRANT ALL PRIVILEGES ON *.* TO www@localhost; |
GRANT ALL PRIVILEGES ON loncapa.* TO www@localhost; |
|
|
FLUSH PRIVILEGES; |
FLUSH PRIVILEGES; |
|
|
Line 295 shell> mysql -u root mysql
|
Line 295 shell> mysql -u root mysql
|
mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_password'); |
mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_password'); |
|
|
************************************ SECURITY: only allow access from localhost |
************************************ SECURITY: only allow access from localhost |
mysql> delete * from user where host<>'localhost' |
mysql> delete from user where host<>'localhost' |
|
|
------------------------------------------------------------------ |
------------------------------------------------------------------ |
|
|