An adoption of Mapbender, the spatial web mapping framework, for Geoport.HRO, the web map portal of the municipality of Rostock – view it in production: https://www.geoport-hro.de
-
Clone the project:
git clone https://github.com/rostock/geoporthro /srv/www/htdocs/mapbender
-
Create a new settings file by copying the template for it:
cp /srv/www/htdocs/mapbender/application/app/config/parameters_hro_default.yml /srv/www/htdocs/mapbender/application/app/config/parameters.yml -
Edit the settings file
-
Install the bundle assets into the web folder (by using symlinks instead of copying) by running the Symfony console command from the application directory:
cd /srv/www/htdocs/mapbender/application app/console assets:install --symlink web -
Initialise the database by running the Symfony console command from the application directory:
cd /srv/www/htdocs/mapbender/application app/console doctrine:database:create app/console doctrine:schema:create -
Load EPSG codes into the database:
cd /srv/www/htdocs/mapbender/application app/console doctrine:fixtures:load --fixtures=mapbender/src/Mapbender/CoreBundle/DataFixtures/ORM/Epsg/ --append -
Create an administrator account:
cd /srv/www/htdocs/mapbender/application app/console fom:user:resetroot
If you want to deploy Geoport.HRO with Apache HTTP Server, you can follow these steps:
-
Create a new symbolic link:
ln -s /srv/www/htdocs/mapbender/application /srv/www/htdocs/geoporthro -
Open your Apache HTTP Server configuration file and insert something like this:
Alias /geoporthro /srv/www/htdocs/geoporthro/web <Directory /srv/www/htdocs/geoporthro/web> AddDefaultCharset utf-8 Options +FollowSymlinks +Indexes +MultiViews </Directory>