Changes between Initial Version and Version 1 of InstallAndConfig


Ignore:
Timestamp:
Jan 15, 2009, 9:05:17 AM (15 years ago)
Author:
tomkralidis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallAndConfig

    v1 v1  
     1
     2= Installation and Configuration Examples =
     3
     4== Example 1 ==
     5
     6* from Tom Kralidis
     7
     8=== Environment ===
     9
     10 * os: fc10
     11 * db: MySQL 5.0.67
     12 * java: 1.5.0_06
     13 * apache: 2.2.10
     14 * tomcat: 6.0.18
     15 * Other notes:
     16   * required to run on port 80 (tomcat is tied to apache via proxy_ajp)
     17   * no X11 capability (restricted to command line only)
     18
     19=== Steps ===
     20
     21 1. create a MySQL geonetwork db instance
     22
     23  {{{$ mysqladmin create geonetwork}}}
     24
     25 2. Create a u/p for the database
     26
     27  {{{> grant select, insert, update, delete, drop, alter, create on table geonetwork.* to geonetwork@’localhost’ identified by ‘password’;}}}
     28
     29 3. download GeoNetwork source (either latest stable or svn trunk [I'm using SVN trunk])
     30
     31  {{{$ svn co http://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk ./geonetwork}}}
     32
     33 4. update web/geonetwork/WEB-INF/config.xml
     34
     35  * in geonet/resources, set the !McKoi resource to {{{resource/@enabled="false"}}}
     36  * in geonet/resources, set the MySQL resource to {{{resource/@enabled="true"}}}
     37  * In the MySQL XML definition:
     38    * set {{{resource/config/user}}} to the username you set in MySQL
     39    * set {{{resource/config/password}}} to the password you set in MySQL
     40    * set {{{resource/config/url}}} to {{{jdbc:mysql:HOSTNAME:PORT:DATABASE_NAME}}}
     41
     42 5. run GAST
     43
     44  {{{$ cd geonetwork/gast && java -jar ./gast.jar -setupdb}}}
     45
     46 6. Update tomcat configuration (in $CATALINA_HOME/conf/server.xml, inServer/Service/Engine/Host)
     47
     48  {{{
     49        <!-- geonetwork -->
     50        <Context path="/geonetwork" docBase="/path/to/geonetwork/web/geonetwork" reloadable="true"/>
     51        <Context path="/intermap" docBase="/path/to/geonetwork/web/intermap"/>
     52        <Context path="/geoserver" docBase="/path/to/geonetwork/web/geoserver"/>
     53        <Context path="/geonetwork/docs" docBase="/path/to/geonetwork/docs"/>
     54  }}}
     55
     56 7. Update the Apache proxy_ajp configuration (mine was in {{{/etc/httpd/conf.d/proxy_ajp.conf}}}
     57
     58  {{{
     59     ProxyPass /geonetwork ajp://localhost:8009/geonetwork/
     60     ProxyPass /geoserver ajp://localhost:8009/geoserver/
     61     ProxyPass /intermap ajp://localhost:8009/intermap/
     62     ProxyPass /geonetwork/docs ajp://localhost:8009/geonetwork/docs/
     63  }}}
     64
     65 8. Restart tomcat ({{{service tomcat6 restart OR $CATALINA_HOME/bin/shutdown.sh && $CATALINA_HOME/bin/startup.sh}}})
     66
     67 9. Restart Apache ({{{service httpd restart OR /path/to/apachectl restart}}})
     68
     6910. Go to !http://HOSTNAME/geonetwork
     70
     71=== Other info ===
     72
     73 * you have to set $SERVLET manually in {{{gast/data/index.html}}}.  {{{gast.jar}}} usually sets this up through X11.