GeoServer/GeoNode configuration
Bug #972195 reported by
Ben Wyss
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The GeoServer root directory is maintained as a GitHub repository. Because of this the /var/lib/
When GeoNode and GeoServer interact with the file system, it seems that root becomes the owner of some of the files and directories in /var/lib/
We need to identify how this can be resolved so that tomcat maintains ownership of all files and directories in /var/lib/
Changed in openquake: | |
status: | New → Confirmed |
Changed in openquake: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
geoserver configuration
Download
Download the git repository:
$ git clone git://github. com/gem/ oq-ui-geoserver .git
Enter into oq-ui-client directory:
Installation
$ sudo su # (remember to turn on at the end of the paragraph) openquake/ oq-ui-geoserver openquake/ oq-ui-geoserver
# service tomcat6 stop
# mkdir -p /var/lib/
# cd oq-ui-geoserver
# git archive master | tar -x --owner=tomcat6 --group=tomcat6 -C /var/lib/
# # ONLY IF YOU HAVE AN ORIGINAL INSTALLATION tomcat6/ webapps/ geoserver /var/lib/ openquake/ geoserver. orig
# mv /var/lib/
# ln -s /var/lib/ openquake/ oq-ui-geoserver /geoserver /var/lib/ tomcat6/ webapps/ geoserver
Configuration
Into /var/lib/ tomcat6/ webapps/ geoserver/ WEB-INF/ web.xml:
modify the GEONODE_BASE_URL with your <hostname> name>GEONODE_ BASE_URL< /param- name> /</param- value> name>GEOSERVER_ DATA_DIR< /param- name> value>/ var/lib/ tomcat6/ webapps/ geoserver/ data/</ param-value>
update the GEOSERVER_DATA_DIR with the new path.
...
<context-param>
<param-
<param-value>http://<YOUR_HOSTNAME>
</context-param>
...
<context-param>
<param-
<param-
</context-param>
Run again tomcat:
# service tomcat6 start
test
Use your browser to navigate the url http://<your_hostname> /geoserver/