version 1.13, 2001/02/19 20:08:39
|
version 1.18, 2002/09/23 01:25:09
|
Line 50 of a resource).
|
Line 50 of a resource).
|
</UL> |
</UL> |
</P> |
</P> |
<P> |
<P> |
|
Security occurs as a function of the user 'www', |
|
and the permissions on the files in the /usr/local/mysql |
|
directory. (These files and directories should |
|
be 700, 600, 500, 400, etc; not allow access to anyone |
|
but user 'www'.) |
|
</P> |
|
<P> |
These commands create the loncapameta database. |
These commands create the loncapameta database. |
<PRE> |
<PRE> |
mysql> CREATE DATABASE IF NOT EXISTS loncapa; |
mysql> CREATE DATABASE IF NOT EXISTS loncapa; |
mysql> USE loncapa; |
mysql> USE loncapa; |
mysql> CREATE TABLE IF NOT EXISTS metadata (title TEXT, author TEXT, subject TEXT, notes TEXT, abstract TEXT, mime TEXT, language TEXT, creationdate TEXT, lastrevisiondate TEXT, owner TEXT, copyright TEXT, FULLTEXT (title, author, subject, notes, abstract, mime, language, creationdate, lastrevisiondate, owner, copyright)) TYPE=MYISAM; |
mysql> CREATE TABLE IF NOT EXISTS metadata (title TEXT, author TEXT, subject TEXT, url TEXT, keywords TEXT, version TEXT, notes TEXT, abstract TEXT, mime TEXT, language TEXT, creationdate DATETIME, lastrevisiondate DATETIME, owner TEXT, copyright TEXT, FULLTEXT idx_title (title), FULLTEXT idx_author (author), FULLTEXT idx_subject (subject), FULLTEXT idx_url (url), FULLTEXT idx_keywords (keywords), FULLTEXT idx_version (version), FULLTEXT idx_notes (notes), FULLTEXT idx_abstract (abstract), FULLTEXT idx_mime (mime), FULLTEXT idx_language (language), FULLTEXT idx_owner (owner), FULLTEXT idx_copyright (copyright)) TYPE=MYISAM; |
mysql> INSERT INTO metadata VALUES ('1','2','3','4','5','6','7','8','9','10','11'); |
mysql> INSERT INTO metadata VALUES ('The Structure of Scientific Revolutions','Thomas S. Kuhn','scientific philosophy','/res/msu/shh1/poobah2.html','aphorisms, theories, paradigm, revolution','current','still developing','This famous book stands out in contrast to the more rigid theories of Popper.','html','seniso','1999-03-03 12:34:56','1999-03-03 3:12:00','shh1@msu.edu','default'); |
mysql> SELECT * FROM metadata WHERE title REGEXP "1"; |
mysql> SELECT * FROM metadata WHERE title REGEXP "1"; |
</PRE> |
</PRE> |
</P> |
</P> |
Line 398 These files are installed.
|
Line 405 These files are installed.
|
</P> |
</P> |
<P> |
<P> |
This is how I installed the DBI perl modules. |
This is how I installed the DBI perl modules. |
<PRE> |
<PRE>$dbh |
[root@fenchurch DBI-1.14]# perl Makefile.PL |
[root@fenchurch DBI-1.14]# perl Makefile.PL |
*** Note: |
*** Note: |
The optional PlRPC-modules (RPC::PlServer etc) are not installed. |
The optional PlRPC-modules (RPC::PlServer etc) are not installed. |
Line 519 and typing the several "make" commands f
|
Line 526 and typing the several "make" commands f
|
</FONT> |
</FONT> |
<H2>Configuration (automated)</H2> |
<H2>Configuration (automated)</H2> |
<P> |
<P> |
Not yet developed. This will be part of an interface |
Not yet stabilized. We are looking at webmin |
present on LON-CAPA systems that can be launched by |
and/or a text-UI tool with less software dependencies |
entering the command <TT>/usr/sbin/loncapaconfig</TT>. |
than the python-anaconda hunk represented by |
|
the prior loncapaconfig. |
</P> |
</P> |
<H2>Manual configuration</H2> |
<H2>Manual configuration</H2> |
<P> |
<P> |
Line 549 VALUES ('localhost','www',password('newm
|
Line 557 VALUES ('localhost','www',password('newm
|
<P> |
<P> |
<STRONG>Granting privileges to user 'www'</STRONG>: |
<STRONG>Granting privileges to user 'www'</STRONG>: |
<PRE> |
<PRE> |
GRANT ALL PRIVILEGES ON *.* TO www@localhost; |
GRANT ALL PRIVILEGES ON loncapa.* TO www@localhost; |
FLUSH PRIVILEGES; |
FLUSH PRIVILEGES; |
</PRE> |
</PRE> |
</P> |
</P> |
Line 610 As user www, run this command
|
Line 618 As user www, run this command
|
enter the password as SOMEPASSWORD |
enter the password as SOMEPASSWORD |
|
|
To add the user www to the MySQL server, and grant all |
To add the user www to the MySQL server, and grant all |
privileges on *.* to www@localhost identified by 'SOMEPASSWORD' |
privileges on loncapa.* to www@localhost identified by 'SOMEPASSWORD' |
with grant option; |
with grant option; |
|
|
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; |
|
|