Skip to content

Instantly share code, notes, and snippets.

@marcellobenigno
Last active May 14, 2021 12:44
Show Gist options
  • Save marcellobenigno/907435f8f40efa92f907c32906a4b6cf to your computer and use it in GitHub Desktop.
Save marcellobenigno/907435f8f40efa92f907c32906a4b6cf to your computer and use it in GitHub Desktop.
Install Geoserver on Ubuntu 14.04 LTS

GeoServer Installation On Ubuntu 14.04 LTS

Install Tomcat7:

sudo apt-get install tomcat7 tomcat7-admin

Add a new Tomcat user:

sudo gedit /etc/tomcat7/tomcat-users.xml
<role rolename="manager-gui"/>
   <user username="admin" password="admin" 
      roles="manager-gui,admin-gui,manager,admin,manager-script,admin-script"/>

Increase the deploy filesize:

sudo gedit /usr/share/tomcat7-admin/manager/WEB-INF/web.xml
<multipart-config>
     <!-- 50MB max -> Increase this value below: -->
     <max-file-size>92428800</max-file-size>
     <max-request-size>92428800</max-request-size>

Install GeoServer .war file:

    sudo mv geoserver.war /var/lib/tomcat7/webapps/

Restart Tomcat:

sudo /etc/init.d/tomcat7 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment