Changeset 11020 for trunk/gsdl3/README.txt
- Timestamp:
- 2005-12-21T10:22:15+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/README.txt
r10927 r11020 31 31 32 32 The file build.properties contains various parameters that can be set by the user. Please check these settings before running the install. 33 Note, either forward slash '/' or double backslash '\\' can be used as path separators in the build.properties file, but not single backslash '\'. 33 34 34 35 Greenstone 3 comes with MySQL and Tomcat bundled in. … … 121 122 122 123 If you want to use an existing Tomcat, set the path to its base directory 123 in build.properties (tomcat.installed.path) (on windows need to use double backslashes in paths '\\').124 in build.properties (tomcat.installed.path) 124 125 125 126 You will need to modify the Tomcat setup slightly. … … 127 128 1. Tell Tomcat about the Greenstone web app. There are two ways to do this. 128 129 129 A. Add in the Greenstone context to Tomcat's server.xml (In the <Host name="localhost"..> element)130 A. Add in the Greenstone context to Tomcat's conf/server.xml (In the <Host name="localhost"..> element) 130 131 131 132 <Context path="/greenstone3" docBase="path-to-greenstone3/web" debug="1" 132 133 reloadable="true"><Resources allowLinking='true'/></Context> 134 135 The docBase attribute should be the full path to the greenstone3 web directory. Any path separator is fine here ('/', '\\', '\'). The path attribute should remain as "/greenstone3". 133 136 134 137 B. Alternatively, you can move (and rename) the greenstone3/web directory to tomcat/webapps/greenstone3 (i.e. the resulting directories will be like … … 147 150 A: Keep all the Greenstone stuff inside the greenstone3 directory, and just modify the environment that Tomcat runs in 148 151 149 Set LD_LIBRARY_PATH (GNU/Linux), DYLD_LIBRARY_PATH (Mac OS X) or PATH (windows) to include the greenstone3/lib/jni directory.152 Set LD_LIBRARY_PATH (GNU/Linux), DYLD_LIBRARY_PATH (Mac OS X) or PATH/Path (windows) to include the greenstone3/lib/jni directory. 150 153 Add all the jar files in greenstone3/lib/jni directory to the CLASSPATH, then edit tomcats setclasspath.sh/bat to use the system CLASSPATH. 151 154 (in setclasspath.bat, change … … 169 172 B: Copy the files into Tomcat installation: 170 173 Move the greenstone3/lib/jni jar files into tomcat's shared/lib directory. 171 Move the greenstone3/lib/jni library files (.so for GNU/Linux, .jnilib for Mac OS X .dll for Windows) into shared/classes, and set LD_LIBARARY_PATH (GNU/Linux), DYLD_LIBRARY_PATH (Mac OS X) or PATH (Windows) to include this directory.174 Move the greenstone3/lib/jni library files (.so for GNU/Linux, .jnilib for Mac OS X .dll for Windows) into shared/classes, and set LD_LIBARARY_PATH (GNU/Linux), DYLD_LIBRARY_PATH (Mac OS X) or PATH/Path (Windows) to include this directory. 172 175 This has the advantage that you can use this for other webapps without modifying the Tomcat environment. 173 176 … … 177 180 ------------------------------------------------------------- 178 181 179 Set the mysql.installed.path property in build.xml to be non-empty (its not actually used) before installation.180 181 You will need to add the two greenstone users: gsdl3reader and gsdl3admin . The reader user is only used for accessing the database, the admin user can be used for modification.182 Set the mysql.installed.path property in build.xml to be the path to your installation of mysql, before running the Greenstone install process. (This path is not actually used other than to check that its non-empty). 183 184 You will need to add the two greenstone users: gsdl3reader and gsdl3admin to your mysql server. The reader user is only used for accessing the database, the admin user can be used for modification. You may also specify passwords for these two users. 182 185 183 186 Run MySQL as the root user (or a user with account creation privileges). … … 187 190 GRANT SELECT ON *.* TO gsdl3reader@localhost identified by 'reader-password'; 188 191 189 You will need to edit the greenstone3/web/WEB-INF/classes/global.properties file and set the two passwords that you used in here: 192 The "identified by 'xxx-password'" bits can be left out if you don't want to set any passwords. This will mean that anyone can log in to mysql using these usernames. 193 194 You will need to edit the global.properties file and set the two passwords that you used: 190 195 mysql.admin.password and mysql.reader.password 191 The mysql.tcp.port property specified here should be set to the port that your MySQL is running on. (default 3306). 196 Set these to be empty if you haven't used any passwords. 197 The mysql.tcp.port property specified here should be set to the port that your MySQL is running on. (default 3306), and the mysql.server property should be set to the server address. 198 199 This file is in greenstone3/resources/java/global.properties.in before greenstone3 installation, and greenstone3/web/WEB-INF/classes/global.properties after installation. 192 200 193 201 You should also load up the database for the gs3mgdemo collection: … … 206 214 207 215 Set JAVA_HOME to be /Library/Java/Home 216 217 Notes for Windows 218 ----------------------------------------------- 219 220 You can set environment variables by going to Control Panel->System->Advanced->Environment Variables. 208 221 209 222 Installing from a Source Distribution
Note:
See TracChangeset
for help on using the changeset viewer.