| @@ -1,15 +1,15 @@ | | | @@ -1,15 +1,15 @@ |
1 | =========================================================================== | | 1 | =========================================================================== |
2 | $NetBSD: MESSAGE,v 1.1.1.1 2011/11/26 19:29:05 ryoon Exp $ | | 2 | $NetBSD: MESSAGE,v 1.2 2011/11/29 14:51:37 ryoon Exp $ |
3 | | | 3 | |
4 | To use aipo, you will need to perform the following steps. | | 4 | To use aipo, you will need to perform the following steps. |
5 | | | 5 | |
6 | 1. Install postgresq server, for example postgresql84-server, | | 6 | 1. Install postgresq server, for example postgresql84-server, |
7 | and enable it. | | 7 | and enable it. |
8 | | | 8 | |
9 | # cd databases/postgresql84-server | | 9 | # cd databases/postgresql84-server |
10 | # make install | | 10 | # make install |
11 | and follow MESSAGE in databases/postgresql84-server directory. | | 11 | and follow MESSAGE in databases/postgresql84-server directory. |
12 | | | 12 | |
13 | 2. Install apache tomcat server, for example apache-tomcat7 | | 13 | 2. Install apache tomcat server, for example apache-tomcat7 |
14 | | | 14 | |
15 | # cd www/apache-tomcat7 | | 15 | # cd www/apache-tomcat7 |
| @@ -52,27 +52,26 @@ To use aipo, you will need to perform th | | | @@ -52,27 +52,26 @@ To use aipo, you will need to perform th |
52 | $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 -f \ | | 52 | $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 -f \ |
53 | ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/sql/org001.sql | | 53 | ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/sql/org001.sql |
54 | $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 -f \ | | 54 | $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 -f \ |
55 | ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/sql/sample.sql | | 55 | ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/sql/sample.sql |
56 | | | 56 | |
57 | 9. Unlimit database | | 57 | 9. Unlimit database |
58 | | | 58 | |
59 | $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 \ | | 59 | $ sudo -u pgsql psql -U aipo_pgsql -d org001 -p 5432 \ |
60 | -c "UPDATE AIPO_LICENSE SET LIMIT_USERS=0" | | 60 | -c "UPDATE AIPO_LICENSE SET LIMIT_USERS=0" |
61 | | | 61 | |
62 | 10. Set Aipo location to apache tomcat | | 62 | 10. Set Aipo location to apache tomcat |
63 | $ sudo vi ${PREFIX}/share/tomcat/conf/server.xml | | 63 | $ sudo vi ${PREFIX}/share/tomcat/conf/server.xml |
64 | Add | | 64 | Add |
65 | <Context path="/aipo" docBase="${PREFIX}/share/aipo/webapps/aipo" debug=" | | 65 | <Context path="/aipo" docBase="${PREFIX}/share/aipo/webapps/aipo" debug="0" reloadable="true"> |
66 | 0" reloadable="true"> | | | |
67 | </Context> | | 66 | </Context> |
68 | in <Host> tag | | 67 | in <Host> tag |
69 | | | 68 | |
70 | 11. Regenerate securityTokenKey.txt files. | | 69 | 11. Regenerate securityTokenKey.txt files. |
71 | | | 70 | |
72 | $ sudo cat /dev/urandom | tr -dc "a-z0-9" | fold -w 64 | head -n 1 \ | | 71 | $ sudo cat /dev/urandom | tr -dc "a-zA-Z0-9" | fold -w 64 | head -n 1 \ |
73 | > ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/conf/securityTokenKey.txt | | 72 | > ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/conf/securityTokenKey.txt |
74 | $ sudo cp ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/conf/securityTokenKey.txt \ | | 73 | $ sudo cp ${PREFIX}/share/aipo/webapps/aipo/WEB-INF/conf/securityTokenKey.txt \ |
75 | ${PREFIX}/share/aipo/webapps/ROOT/WEB-INF/classes/aipo/securityTokenKey.txt | | 74 | ${PREFIX}/share/aipo/webapps/ROOT/WEB-INF/classes/aipo/securityTokenKey.txt |
76 | | | 75 | |
77 | 12. Start apache tomcat and access http://localhost/aipo/portal | | 76 | 12. Start apache tomcat and access http://localhost:8080/aipo/portal |
78 | =========================================================================== | | 77 | =========================================================================== |