Changeset 5430
- Timestamp:
- 2003-09-03T09:38:29+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/INSTALL
r4848 r5430 2 2 3 3 This stuff is all done by a script now: 4 need to carry out the following:4 just need to carry out the following: 5 5 6 6 source setup.bash … … 8 8 source setup.bash 9 9 10 Note: if you are using mozilla it doesn't seem to like localhost - you should edit the siteConfig files (web/sites/ localsite/siteConfig.xml) to have your computer name instead of localhost.10 Note: if you are using mozilla it doesn't seem to like localhost - you should edit the siteConfig files (web/sites/<sitename>/siteConfig.xml) to have your computer name instead of localhost. 11 11 12 12 Note: the second setup.bash is needed to add the newly created jar files to the CLASSPATH … … 26 26 Tomcat is a servlet container. It is used to serve a greenstone site using a servlet. 27 27 28 The file web/WEB-INF/web.xml contains the setup information for tomcat---tells it what servlets to load, what initial paramaters to pass them, and what web names map to the servlets.29 There are three servlets specified in web.xml: one is a test servlet that just prints ``hello greenstone'' to a web page. This is useful if you are having trouble getting tomcat set up. The other two are greenstone library servlets, ``library'', which serves localsite, and ``library1'' which serves site1.28 The file $GSDL3HOME/web/WEB-INF/web.xml contains the setup information for tomcat---tells it what servlets to load, what initial paramaters to pass them, and what web names map to the servlets. 29 There are three servlets specified in web.xml: one is a test servlet that just prints ``hello greenstone'' to a web page. This is useful for testing tomcat. The other two are greenstone library servlets, ``library'', which serves localsite, and ``library1'' which serves site1. 30 30 31 31 To run tomcat, you need to have sourced setup.bash in $GSDL3HOME to set up $CLASSPATH. Then, … … 44 44 any classes or jar files used by the servlets 45 45 46 Note: stdin and stdout for the servlets both go to comms/jakarta/tomcat/logs/catalina.out 46 Also if you change any collections, you can restart tomcat to reload them. 47 48 Note: stdin and stdout for the servlets both go to $GSDL3HOME/comms/jakarta/tomcat/logs/catalina.out 49 50 Symlinks: 51 52 Tomcat by default doesn't follow symlinks (although the symlink to lib seems to work). To make it follow symlinks, eg to have the collect directory of a site somewhere else, you need to add the following to tomcats server.xml ($GSDL3HOME/comms/jakarta/tomcat/conf/server.xml): 53 <Resources allowLinking='true'/> 54 This needs to go inside the gsdl3 context, i.e. 55 56 <Context path="/gsdl3" docBase="$GSDL3HOME/web" debug="1" 57 reloadable="true"> 58 <Resources allowLinking='true'/> 59 </Context> 60 61 By default, tomcat allows directory listings for everything in the docBase directory. For example, you can enter localhost:8080/gsdl3/sites and it will give you a list of all the sites. To turn this off, you need to edit Tomcat's default web.xml file ($GSDL3HOME/comms/jakarta/tomcat/conf/web.xml): 62 63 In the default servlet definition, change the 'listings' param to false. 47 64 48 65 SITES:
Note:
See TracChangeset
for help on using the changeset viewer.