Benutzer Diskussion:Gunther Rahmlow: Unterschied zwischen den Versionen

Aus kvwmap
Wechseln zu: Navigation, Suche
K (Hilfe)
K
Zeile 1: Zeile 1:
Hallo und Willkommen auf meiner Diskussionsseite. Ich möchte nachfolgend die Zwischenschritte auf dem Weg zu einer laufenden kvwmap-Installation dokumentieren. Sollten Fehler auffallen bist Du herzlich eingeladen, einen Lösungsweg zu ergänzen.
+
Hallo und Willkommen auf meiner Diskussionsseite,
 +
 
 +
ich möchte nachfolgend die Zwischenschritte auf dem Weg zu einer laufenden kvwmap-Installation dokumentieren. Diese soll Naturschutzmaßnahmen im Rahmen des Ökokontos und Kompensationsflächenkatasters abbilden, wie es dass neue [http://mv.juris.de/mv/NatSchAG_MV_rahmen.htm Landesnaturschutzgesetz] in den Paragraphen § 3 Nr. 2 und §12 Nr. 5 fordert. Zunächst ist der Aufbau einer Testumgebung geplant, der anschließend in den Echtbetrieb in Client-Server-Architektur überführt werden soll. Die Serverbereitstellung erfolgt durch das LUNG. Clients sind vorrangig die unteren Naturschutzbehörden in Landkreisen und kreisfreien Städten des Landes.
 +
 
 +
Wir haben uns für kvwmap entschieden, da es, aus unserer Sicht, folgende Vorteile bietet:
 +
# Verbindung von Datenbank und GIS
 +
# Einbindung von Webdiensten, wie Topografie, Biotopen, Schutzgebieten und ALK sowie Nutzung letzerer als Vorlage zur Flächenabgrenzung der Naturschutzmaßnahmen.
 +
# angestrebte enge Verzahnung mit den Landkreisen, welche Daten eingeben und pflegen müssen und zum Großteil über Erfahrungen mit kvwmap verfügen
 +
# Echtzeitzugriff für alle internen Nutzer
 +
# zeitnahe laufende Veröffentlichung ausgewählter Daten im WWW (vorgesehen sind LUNG-Homepage mit Statistik sowie Kartenportal Umwelt mit WMS)
 +
# Open-Source-Hintergrund
 +
 
 +
Sollten Fehler auffallen bist Du herzlich eingeladen, einen Lösungsweg zu ergänzen.
  
 
Herzliche Grüße!
 
Herzliche Grüße!
--[[Benutzer:Gunther Rahmlow|Gunther Rahmlow]] 16:07, 19. Mai 2010 (CEST)
+
--[[Benutzer:Gunther Rahmlow|Gunther Rahmlow]] 09:14, 25. Mai 2010 (CEST)
  
== Ziele ==
+
== Arbeitsschritte ==
 
# Aufbau einer Testumgebung
 
# Aufbau einer Testumgebung
 
## Installation openSuse11 (Status: erledigt)
 
## Installation openSuse11 (Status: erledigt)
 
## Installation FGS-Packet und Test (Status: in Arbeit)
 
## Installation FGS-Packet und Test (Status: in Arbeit)
 +
###MySQL zum laufen bringen: *Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
 +
###phpMyAdmin als Admintool installieren
 
##Installation kvwmap und Test (Status: offen)
 
##Installation kvwmap und Test (Status: offen)
 +
###kvwmap runterladen und in /fgs/fgs9.5/apps/kvwmap entpacken
 +
###kvwmap Ordnerrechte 755 vergeben und alias vergeben in fgs9.5/www/conf.d
 +
###Installationsdateien im Ordner /kwmap/layouts/sql_dumps ausführen
 +
###mysql_install.sql und mysql_install_help.sql müssen in phpMyAdmin ausgeführt werden.
 +
###in kvwmap die config_default.php kopieren und im selben Verzeichnis als config.php speichern. config.php editieren: Dauer 6 Stunden
 +
###kvmwap starten und Fehlermeldungen bearbeiten
 +
###dann Lernen: Stelle, Nutzer, Layer, Rolle. Wie binde ich Nutzer an Stelle (=Rolle). Layer an Stelle (=used_layer)
 
## Entwurf NVP einspielen (Status: offen)
 
## Entwurf NVP einspielen (Status: offen)
 +
###Ökokontoentwurf einspielen
 
# Aufbau Echtbetriebsumgebung (Status: offen)
 
# Aufbau Echtbetriebsumgebung (Status: offen)
 +
 
== Hilfe ==
 
== Hilfe ==
 
*[http://kvwmap.geoinformatik.uni-rostock.de/index.php/Dokumentation#Installation kvwmap-Dokumentation]
 
*[http://kvwmap.geoinformatik.uni-rostock.de/index.php/Dokumentation#Installation kvwmap-Dokumentation]
Zeile 16: Zeile 39:
 
*weitere Foren: [http://www.linux-club.de LX], [http://www.windows-7-forum.net Win7], [http://www.de.openoffice.info/index.php OO]
 
*weitere Foren: [http://www.linux-club.de LX], [http://www.windows-7-forum.net Win7], [http://www.de.openoffice.info/index.php OO]
  
== Systemeigenschaftenn ==
+
== Systemeigenschaften der Testumgebung ==
 
*Medion-Akoya P7612, IntelCore Duo CPU T6500 2,1 GHZ 2,1 GHZ, 4 GB  RAM
 
*Medion-Akoya P7612, IntelCore Duo CPU T6500 2,1 GHZ 2,1 GHZ, 4 GB  RAM
 
*Betriebssystem: SUSE Linux 11.0
 
*Betriebssystem: SUSE Linux 11.0
 
*Partitionen: Win7x32 und openSuse11x32
 
*Partitionen: Win7x32 und openSuse11x32
 
*Festplatten: 500 GB, davon Suse 100 GB
 
*Festplatten: 500 GB, davon Suse 100 GB
*Raid1: (none!)
+
*Backup über Kopie des Ordners /fgs/fgs9.5, der bis auf MySQL alle Daten enthält.
 
*MAC-Adresse:
 
*MAC-Adresse:
 
*WWW-Zugang über Web'nWalk III-Stick von Huawei
 
*WWW-Zugang über Web'nWalk III-Stick von Huawei
 +
 +
== Serveranforderungen Echtbetrieb ==
  
 
== Neuinstallation Linux ==
 
== Neuinstallation Linux ==
 
*Installationsmedium: DVD Suse11 i586 32bit
 
*Installationsmedium: DVD Suse11 i586 32bit
 
*Pakete von DVD nachinstallieren: /media/SU1110.001/suse/i586
 
*Pakete von DVD nachinstallieren: /media/SU1110.001/suse/i586
 +
 +
== Installation FGS-Packet ==
 +
*Anleitung: [[FGS installieren]]
 +
*Abweichungen:
 +
**FGS unter Port 80 und 443: Punkt übersprungen, Port bleibt 8080
 +
**PgAdmin Version pgadmin3-1.10.0-1.i586 verwendet, da aktuelle Versionen (phpPgAdmin-4.2.2 und 4.2.3) keine PHP-Verbindung zuliessen.
 +
 +
== FGS-Verzeichnis-Struktur (unter /home/fgs/fgs) ==
 +
 
 +
*apps – Contains the modules data “not the executable itself” <br>
 +
*bin – Contains all the binary’s. Similar to “/usr/bin”<br>
 +
*etc – Contains the module configuration data. Similar to “/etc”<br>
 +
*include – Contains the source includes for modules. Similar to “/usr/includes”<br>
 +
*lib – Contains the necessary libraries for the modules. Similar to “/lib”<br>
 +
*share – Contains the shared installed libraries. Similar to “/usr/share”<br>
 +
*tmp – Contains the temporary files. Similar to “/tmp”<br>
 +
*var – Contains any modules “var” data. Similar to “/var”<br>
 +
*www – Contains everything “apache”<br>
 +
   
 +
Quelle: http://research.dmsolutions.ca/?p=68
 +
 +
== Tests ==
 +
*Ob Mapserver/Apache läuft: http://localhost:8080/cgi-bin/mapserv (Ausgabe: No query information to decode. QUERY_STRING is set, but empty.)
 +
*komplette PHP-Konfiguration: http://localhost:8080/phpinfo.php (suche nach Mapscript)
 +
 +
== Sicherheit ==
 +
Steuerung DB-Zugriff über Datei pg_hba.conf und dort IP4v local connection
 +
Name und IP-Adresse werden fest hinterlegt! Voraussetzung ist ein freier Port für die Postgres-DB (z.B. 5432).
 +
Für DB-Anlage wird local Nutzer fgs angelegt, der sich ohne PW einwählen kann. Auskommentieren wenn DB läuft, um Recht zu entfernen.
 +
 +
== vorgesehene Web-Dienste ==
 +
* ALK als WMS und WFS (kostenfreie Verfügbarkeit für Land und Kommune lt. VermKostVO § 2 Abs. 1(e) am 09.04.2010 mit Fr.Rick (Tel.0385/4801-3415) vom geoportal-mv.de geklärt)
 +
Folien Fluren, Flurstücke und Nutzungsarten werden lt. VermKostVO Punkt 4.1.1.4 angeboten. ALB-Daten sind in Zukunft vorgesehen.
 +
Dienstaufruf: [http://www.geoportal-mv.de/land-mv/GeoPortalMV_prod/de/Geowebdienste/Liegenschaftskarte.jsp Link]. Unterstützung in technischen Fragen gibt Hr.Kufahl (Tel. 0385/800327).
  
 
== Tastenkombinationen ==
 
== Tastenkombinationen ==
 
*Strg + Alt + F2 = Konsolenmodus
 
*Strg + Alt + F2 = Konsolenmodus
*Strg + Alt + F7/F8 = Benutzersitzung wechseln  
+
*Strg + Alt + F7/F8 = Benutzersitzung wechseln
  
 
== Befehlsreferenz ==
 
== Befehlsreferenz ==
Zeile 55: Zeile 114:
 
*ls        = Auflistung Dateien im Ordner
 
*ls        = Auflistung Dateien im Ordner
 
*cp        = Datei kopieren
 
*cp        = Datei kopieren
 +
*sudo cp -R phpPgAdmin-4.2.3/ /home/fgs/fgs9.5/apps/
 
*rm [-rf]  = Datei löschen [alles unterhalb Verzeichnis]
 
*rm [-rf]  = Datei löschen [alles unterhalb Verzeichnis]
 
*mv        = Datei verschieben/umbenennen
 
*mv        = Datei verschieben/umbenennen
Zeile 80: Zeile 140:
  
 
*chmod 700 [Datei] = Dateiattribute ändern, hier: Datei ausführbar machen
 
*chmod 700 [Datei] = Dateiattribute ändern, hier: Datei ausführbar machen
 
== FGS-Verzeichnis-Struktur (unter /home/fgs/fgs) ==
 
 
 
*apps – Contains the modules data “not the executable itself” <br>
 
*bin – Contains all the binary’s. Similar to “/usr/bin”<br>
 
*etc – Contains the module configuration data. Similar to “/etc”<br>
 
*include – Contains the source includes for modules. Similar to “/usr/includes”<br>
 
*lib – Contains the necessary libraries for the modules. Similar to “/lib”<br>
 
*share – Contains the shared installed libraries. Similar to “/usr/share”<br>
 
*tmp – Contains the temporary files. Similar to “/tmp”<br>
 
*var – Contains any modules “var” data. Similar to “/var”<br>
 
*www – Contains everything “apache”<br>
 
   
 
Quelle: http://research.dmsolutions.ca/?p=68
 
 
== Installation FGS-Packet ==
 
*Anleitung: [[FGS installieren]]
 
 
*User "fgs" mit Yast angelegt und in Gruppe root aufgenommen
 
* '''Logbuch vom 19.05.2010:'''
 
#> cp /media/fgs-mapserver/fgs-mapserver_extended_5.6.3-fgs_9.5-linux-i386.bin /home/fgs 
 
#> chmod 700 fgs-mapserver_extended_5.6.3-fgs_9.5-linux-i386.bin
 
#> ./fgs-mapserver_extended_5.6.3-fgs_9.5-linux-i386.bin
 
  * FGS - starting installation...
 
  * Extracting FGS modules files... ok
 
  * Starting FGS installation :     
 
  ***** Welcome to the FGS Installer v01.2009 *****
 
  This script is meant to make installing FGS components as easy as possible.
 
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 
  FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
 
  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
 
  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 
 
  Please send any questions to <fgs@dmsolutions.ca>.
 
  To install the FGS suite, press ENTER.
 
  To cancel, press Control-C.
 
Where do you want to install the FGS suite [/opt/fgs] ? /home/fgs/fgs
 
  + Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.plI7iK...ok
 
  + Running base's installer                                       
 
  + module : base                                                 
 
  + Running fgs install mapserver-php                             
 
  * Probing last version of module 'mapserver-php'... 5.6.3       
 
  + Installing mapserver-php:                                     
 
  + Getting and extracting module 'mapserver-php'... ok         
 
  + Getting and extracting module 'mapserver-base'... ok       
 
  + Getting and extracting module 'libstdc++-lib'... ok     
 
  + Getting and extracting module 'libgcc-lib'... ok         
 
  + Getting and extracting module 'apache-base'... ok       
 
  + Getting and extracting module 'expat-base'... ok       
 
  + Getting and extracting module 'gd-lib'... ok             
 
  + Getting and extracting module 'jpeg-lib'... ok         
 
  + Getting and extracting module 'freetype-lib'... ok     
 
  + Getting and extracting module 'libpng-lib'... ok       
 
  + Getting and extracting module 'zlib-lib'... ok       
 
  + Getting and extracting module 'curl-lib'... ok           
 
  + Getting and extracting module 'openssl-lib'... ok     
 
  + Getting and extracting module 'proj-lib'... ok           
 
  + Getting and extracting module 'postgresql-lib'... ok     
 
  + Getting and extracting module 'gdal-base'... ok         
 
  + Getting and extracting module 'tiff-lib'... ok         
 
  + Getting and extracting module 'libgeotiff-lib'... ok   
 
  + Getting and extracting module 'xerces_c-base'... ok   
 
  + Getting and extracting module 'unixODBC-base'... ok   
 
  + Getting and extracting module 'libungif-base'... ok   
 
  + Getting and extracting module 'libiconv-base'... ok     
 
  + Getting and extracting module 'proj4_epsg42xxx-support'... ok
 
  + Getting and extracting module 'geos-lib'... ok             
 
  + Getting and extracting module 'libxml2-base'... ok         
 
  + Getting and extracting module 'agg-lib'... ok               
 
  + Getting and extracting module 'php-base'... ok               
 
+ Copying all files into FGS environment... ok                     
 
+ Running apache-base's installation script :                       
 
*      *** Apache installation ***                                 
 
* Selecting TCP port... Example: 80, 8080, 8000                     
 
? What TCP port do you want to use [8080] : 80                     
 
! To use a TCP port below 1024, FGS must be installed/run as root. 
 
? What TCP port do you want to use [8080] : 8080                   
 
+ Port selected : '8080'                                           
 
* You can start apache with : fgs start apache                     
 
*      *** End of Apache installation ***                           
 
+ Running gdal-base's installation script :                         
 
+ Running libgeotiff-lib's installation script :                   
 
+ Running mapserver-base's installation script :                   
 
+ Running mapserver-php's installation script :                     
 
+ php_mapscript extension added in /home/fgs/fgs/www/conf/php5.ini.template-dist
 
+ Running php-base's installation script :                                     
 
+ php5.ini file installed in /home/fgs/fgs/www/conf/                           
 
What is the time zone (default=America/Montreal)? Germany/Berlin                                                                 
 
+ Running proj4_epsg42xxx-support's installation script :                     
 
+ Running proj-lib's installation script :                                     
 
* Module 'mapserver-php' installed with success.                               
 
+ Running fgs install python_mapscript-module                                 
 
* Probing last version of module 'python_mapscript-module'... 5.6.3           
 
+ Installing python_mapscript-module:                                         
 
  + Getting and extracting module 'python_mapscript-module'... ok             
 
  + Getting and extracting module 'python-base'... ok                       
 
+ Copying all files into FGS environment... ok                                 
 
* Module 'python_mapscript-module' installed with success.                     
 
+ Running fgs install gdal_python-module                                       
 
* Probing last version of module 'gdal_python-module'... 1.7.1                 
 
+ Installing gdal_python-module:                                               
 
  + Getting and extracting module 'gdal_python-module'... ok                   
 
+ Copying all files into FGS environment... ok                                 
 
* Module 'gdal_python-module' installed with success.                         
 
+ Running fgs install php_ogr-module                                           
 
* Probing last version of module 'php_ogr-module'... 1.1.1                     
 
+ Installing php_ogr-module:                                                   
 
  + Getting and extracting module 'php_ogr-module'... ok                       
 
+ Copying all files into FGS environment... ok                                 
 
+ Running php_ogr-module's installation script :                               
 
+ php_ogr extension added in /home/fgs/fgs/www/conf/php5.ini.template         
 
* Module 'php_ogr-module' installed with success.                             
 
+ Running fgs install postgis-lib                                             
 
* Probing last version of module 'postgis-lib'... 1.5.0                       
 
+ Installing postgis-lib:                                                     
 
  + Getting and extracting module 'postgis-lib'... ok                         
 
+ Copying all files into FGS environment... ok                                 
 
+ Running postgis-lib's installation script :                                 
 
! cannot convert $libdir in lwpostgis.sql or postgis.sql: no such file..       
 
! cannot convert $libdir in lwpostgis_upgrade.sql or postgis_upgrade_xxx.sql: no such file..
 
! cannot convert $libdir in spatial_ref_sys.sql, no such file..                           
 
* Module 'postgis-lib' installed with success.                                             
 
+ Running fgs install gmap-demo                                                           
 
* Probing last version of module 'gmap-demo'... cvs_HEAD                                   
 
+ Installing gmap-demo:                                                                   
 
  + Getting and extracting module 'gmap-demo'... ok                                       
 
+ Copying all files into FGS environment... ok                                             
 
+ Running gmap-demo's installation script :                                               
 
* gmap-demo installed : You can access it from http://localhost:8080/gmap-demo/           
 
* Module 'gmap-demo' installed with success.                                               
 
+ Running fgs install ming-lib                                                             
 
* Probing last version of module 'ming-lib'... 0.4.2                                       
 
+ Installing ming-lib:                                                                     
 
  + Getting and extracting module 'ming-lib'... ok                                         
 
+ Copying all files into FGS environment... ok                                             
 
* Module 'ming-lib' installed with success.                                               
 
+ Running fgs install postgresql-server                                                   
 
* Probing last version of module 'postgresql-server'... 8.4.2                             
 
+ Installing postgresql-server:                                                           
 
  + Getting and extracting module 'postgresql-server'... ok                               
 
+ Copying all files into FGS environment... ok                                             
 
+ Running postgresql-server's installation script :                                       
 
*      *** PostgreSQL installation ***                                                     
 
+ Correct files in share/ directory                                                       
 
* Selecting TCP port... Example: 5433, 5433, etc...                                       
 
? What TCP port do you want to use [5432] : 5432                                           
 
+ Creating PostgreSQL's database directory in '/home/fgs/fgs/apps/pgsql/data' :           
 
initdb: cannot be run as root                                                             
 
Please log in (using, e.g., "su") as the (unprivileged) user that will                     
 
own the server process.                                                                   
 
* To start PostgreSQL, use : fgs start pgsql                                               
 
* PostgreSQL's database directory created.                                                 
 
+ Port selected : '5432'. Configuration wrote in /home/fgs/fgs/etc/fgs/pkgs/postgresql-server/pgsql.conf                                                                                                     
 
* You can start PostgrSQL with : fgs start pgsql                                                     
 
*      *** End of PostgreSQL installation ***                                                         
 
* Module 'postgresql-server' installed with success.                                                 
 
+ Running fgs install gettext-base                                                                   
 
* Probing last version of module 'gettext-base'... 0.17                                               
 
+ Installing gettext-base:                                                                           
 
  + Getting and extracting module 'gettext-base'... ok                                               
 
+ Copying all files into FGS environment... ok                                                       
 
* Module 'gettext-base' installed with success.                                                       
 
+ Running fgs install imagemagick-base                                                               
 
* Probing last version of module 'imagemagick-base'... 6.5.8-10                                       
 
+Installing imagemagick-base:                                                                       
 
  + Getting and extracting module 'imagemagick-base'... ok                                           
 
+ Copying all files into FGS environment... ok                                                       
 
* Module 'imagemagick-base' installed with success.                                                   
 
+ Running fgs install python_pil-module                                                               
 
* Probing last version of module 'python_pil-module'... 1.1.6                                         
 
+ Installing python_pil-module:                                                                       
 
  + Getting and extracting module 'python_pil-module'... ok                                           
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running python_pil-module's installation script :                                                   
 
* Module 'python_pil-module' installed with success.                                                 
 
+ Running fgs install mod_python-module                                                               
 
* Probing last version of module 'mod_python-module'... 3.3.1                                         
 
+ Installing mod_python-module:                                                                       
 
  + Getting and extracting module 'mod_python-module'... ok                                           
 
+ Copying all files into FGS environment... ok                                                         
 
* Module 'mod_python-module' installed with success.                                                   
 
+ Running fgs install tilecache-base                                                                   
 
* Probing last version of module 'tilecache-base'... 2.10                                             
 
+ Installing tilecache-base:                                                                           
 
  + Getting and extracting module 'tilecache-base'... ok                                               
 
+ Copying all files into FGS environment... ok                                                         
 
+ Running tilecache-base's installation script :                                                       
 
* Source setenv.sh to update PYTHONPATH before running fgs start.                                     
 
* Module 'tilecache-base' installed with success.                                                     
 
+ Running fgs install chameleon-base                                                                 
 
* Probing last version of module 'chameleon-base'... cvs_HEAD                                         
 
+ Installing chameleon-base:                                                                         
 
  + Getting and extracting module 'chameleon-base'... ok                                             
 
    + Getting and extracting module 'studio-base'... ok                                               
 
    + Getting and extracting module 'php_dbase-module'... ok                                         
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running chameleon-base's installation script :                                                     
 
+ Running php_dbase-module's installation script :                                                   
 
+ php_dbase extension added in /home/fgs/fgs/www/conf/php5.ini.template                               
 
+ Running studio-base's installation script :                                                         
 
* Module 'chameleon-base' installed with success.                                                     
 
+ Running fgs install kamap-base                                                                     
 
* Probing last version of module 'kamap-base'... 1.0-20070205                                         
 
+ Installing kamap-base:                                                                             
 
  + Getting and extracting module 'kamap-base'... ok                                                 
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running kamap-base's installation script :                                                         
 
* Module 'kamap-base' installed with success.                                                         
 
+ Running fgs install pslib-base                                                                     
 
* Probing last version of module 'pslib-base'... 0.4.1                                               
 
+ Installing pslib-base:                                                                             
 
  + Getting and extracting module 'pslib-base'... ok                                                 
 
+ Copying all files into FGS environment... ok                                                       
 
* Module 'pslib-base' installed with success.                                                         
 
+ Running fgs install php_postscript-module                                                           
 
* Probing last version of module 'php_postscript-module'... 1.3.6                                     
 
+ Installing php_postscript-module:                                                                   
 
  + Getting and extracting module 'php_postscript-module'... ok                                       
 
+ Copying all files into FGS environment... ok                                                       
 
* Module 'php_postscript-module' installed with success.                                             
 
+ Running fgs install php_imagick-module                                                             
 
* Probing last version of module 'php_imagick-module'... 2.2.2                                       
 
+ Installing php_imagick-module:                                                                     
 
  + Getting and extracting module 'php_imagick-module'... ok                                         
 
+ Copying all files into FGS environment... ok                                                       
 
* Module 'php_imagick-module' installed with success.                                                 
 
+ Running fgs install php_ssh2-module                                                                 
 
* Probing last version of module 'php_ssh2-module'... 0.11.0                                         
 
+ Installing php_ssh2-module:                                                                         
 
  + Getting and extracting module 'php_ssh2-module'... ok                                             
 
    + Getting and extracting module 'libssh2-lib'... ok                                               
 
+ Copying all files into FGS environment... ok                                                       
 
* Module 'php_ssh2-module' installed with success.                                                   
 
+ Running fgs install php_http-module                                                                 
 
* Probing last version of module 'php_http-module'... 1.6.6                                           
 
+ Installing php_http-module:                                                                         
 
  + Getting and extracting module 'php_http-module'... ok                                             
 
+ Copying all files into FGS environment... ok                                                       
 
* Module 'php_http-module' installed with success.                                                   
 
+ Running fgs install pecl_uploadprogress-module                                                     
 
* Probing last version of module 'pecl_uploadprogress-module'... 0.3.0                               
 
+ Installing pecl_uploadprogress-module:                                                             
 
  + Getting and extracting module 'pecl_uploadprogress-module'... ok                                 
 
+ Copying all files into FGS environment... ok                                                       
 
* Module 'pecl_uploadprogress-module' installed with success.                                         
 
+ Running fgs install tinyows-server                                                                 
 
* Probing last version of module 'tinyows-server'... svn_trunk                                       
 
+ Installing tinyows-server:                                                                         
 
  + Getting and extracting module 'tinyows-server'... ok                                             
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running tinyows-server's installation script :                                                     
 
*      *** End of Tinyows installation ***                                                           
 
* Module 'tinyows-server' installed with success.                                                     
 
+ Running fgs install python_mx-module                                                               
 
* Probing last version of module 'python_mx-module'... 3.1.1                                         
 
+ Installing python_mx-module:                                                                       
 
  + Getting and extracting module 'python_mx-module'... ok                                           
 
+ Copying all files into FGS environment... ok                                                       
 
* Module 'python_mx-module' installed with success.                                                   
 
+ Running fgs install python_psycopg-module                                                           
 
* Probing last version of module 'python_psycopg-module'... 2.0.7                                     
 
+ Installing python_psycopg-module:                                                                   
 
  + Getting and extracting module 'python_psycopg-module'... ok                                       
 
+ Copying all files into FGS environment... ok                                                       
 
* Module 'python_psycopg-module' installed with success.                                             
 
+ Running fgs install openlayers-base                                                                 
 
* Probing last version of module 'openlayers-base'... 2.8-rc4                                         
 
+ Installing openlayers-base:                                                                         
 
  + Getting and extracting module 'openlayers-base'... ok                                             
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running openlayers-base's installation script :                                                     
 
* Module 'openlayers-base' installed with success.                                                   
 
+ Running fgs install fusion-base                                                                     
 
* Probing last version of module 'fusion-base'... 2.0.0-beta                                         
 
+ Installing fusion-base:                                                                             
 
  + Getting and extracting module 'fusion-base'... ok                                                 
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running fusion-base's installation script :                                                         
 
* Module 'fusion-base' installed with success.                                                       
 
+ Running fgs install php_curl-module                                                                 
 
* Probing last version of module 'php_curl-module'... 5.3.0                                           
 
+ Installing php_curl-module:                                                                         
 
  + Getting and extracting module 'php_curl-module'... ok                                             
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running php_curl-module's installation script :                                                     
 
+ Added configuration line in /home/fgs/fgs/www/conf/php5.ini.template to load curl PHP module.       
 
! You need to restart apache to get the curl PHP module enabled in PHP.                               
 
* Module 'php_curl-module' installed with success.                                                   
 
+ Running fgs install php_ftp-module                                                                 
 
* Probing last version of module 'php_ftp-module'... 5.3.0                                           
 
+ Installing php_ftp-module:                                                                         
 
  + Getting and extracting module 'php_ftp-module'... ok                                             
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running php_ftp-module's installation script :                                                     
 
+ Added configuration line in /home/fgs/fgs/www/conf/php5.ini.template to load ftp PHP module.       
 
! You need to restart apache to get the ftp PHP module enabled in PHP.                               
 
* Module 'php_ftp-module' installed with success.                                                     
 
+ Running fgs install php_gettext-module                                                             
 
* Probing last version of module 'php_gettext-module'... 5.3.0                                       
 
+ Installing php_gettext-module:                                                                     
 
  + Getting and extracting module 'php_gettext-module'... ok                                         
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running php_gettext-module's installation script :                                                 
 
+ Added configuration line in /home/fgs/fgs/www/conf/php5.ini.template to load gettext PHP module.   
 
! You need to restart apache to get the gettext PHP module enabled in PHP.                           
 
* Module 'php_gettext-module' installed with success.                                                 
 
+ Running fgs install php_pgsql-module                                                               
 
* Probing last version of module 'php_pgsql-module'... 5.3.0                                         
 
+ Installing php_pgsql-module:                                                                       
 
  + Getting and extracting module 'php_pgsql-module'... ok                                           
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running php_pgsql-module's installation script :                                                   
 
+ Added configuration line in /home/fgs/fgs/www/conf/php5.ini.template to load pgsql PHP module.     
 
! You need to restart apache to get the pgsql PHP module enabled in PHP.                             
 
* Module 'php_pgsql-module' installed with success.                                                   
 
+ Running fgs install php_mysql-module                                                               
 
* Probing last version of module 'php_mysql-module'... 5.3.0                                         
 
+ Installing php_mysql-module:                                                                       
 
  + Getting and extracting module 'php_mysql-module'... ok                                           
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running php_mysql-module's installation script :                                                   
 
+ Added configuration line in /home/fgs/fgs/www/conf/php5.ini.template to load mysql PHP module.     
 
! You need to restart apache to get the mysql PHP module enabled in PHP.                             
 
mysqladmin not found, please add mysql_default_port and mysql_default_socket values to php5.ini.template in the mysql section.                                                                               
 
* Module 'php_mysql-module' installed with success.                                                   
 
+ Running fgs install php_odbc-module                                                                 
 
* Probing last version of module 'php_odbc-module'... 5.3.0                                           
 
+ Installing php_odbc-module:                                                                         
 
  + Getting and extracting module 'php_odbc-module'... ok                                             
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running php_odbc-module's installation script :                                                     
 
+ Added configuration line in /home/fgs/fgs/www/conf/php5.ini.template to load odbc PHP module.       
 
! You need to restart apache to get the odbc PHP module enabled in PHP.                               
 
* Module 'php_odbc-module' installed with success.                                                   
 
+ Running fgs install php_wddx-module                                                                 
 
* Probing last version of module 'php_wddx-module'... 5.3.0                                           
 
+ Installing php_wddx-module:                                                                         
 
  + Getting and extracting module 'php_wddx-module'... ok                                             
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running php_wddx-module's installation script :                                                     
 
+ Added configuration line in /home/fgs/fgs/www/conf/php5.ini.template to load wddx PHP module.       
 
! You need to restart apache to get the wddx PHP module enabled in PHP.                               
 
* Module 'php_wddx-module' installed with success.                                                   
 
+ Running fgs install php_xmlrpc-module                                                               
 
* Probing last version of module 'php_xmlrpc-module'... 5.3.0                                         
 
+ Installing php_xmlrpc-module:                                                                       
 
  + Getting and extracting module 'php_xmlrpc-module'... ok                                           
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running php_xmlrpc-module's installation script :                                                   
 
+ Added configuration line in /home/fgs/fgs/www/conf/php5.ini.template to load xmlrpc PHP module.     
 
! You need to restart apache to get the xmlrpc PHP module enabled in PHP.                             
 
* Module 'php_xmlrpc-module' installed with success.                                                 
 
+ Running fgs install php_xsl-module                                                                 
 
* Probing last version of module 'php_xsl-module'... 5.3.0                                           
 
+ Installing php_xsl-module:                                                                         
 
  + Getting and extracting module 'php_xsl-module'... ok                                             
 
    + Getting and extracting module 'libxslt-lib'... ok                                               
 
+ Copying all files into FGS environment... ok                                                       
 
+ Running php_xsl-module's installation script :                                                     
 
+ Added configuration line in /home/fgs/fgs/www/conf/php5.ini.template to load xsl PHP module.       
 
! You need to restart apache to get the xsl PHP module enabled in PHP.                               
 
* Module 'php_xsl-module' installed with success.                                                     
 
+ Starting FGS's daemon:                                                                             
 
+ Starting 'apache':                                                                                 
 
! Cannot create user 'apache', could not start apache as root.                                       
 
+ Starting 'pgsql':                                                                                   
 
pg_ctl: cannot be run as root                                                                         
 
Please log in (using, e.g., "su") as the (unprivileged) user that will                               
 
own the server process.                                                                                   
 
111111111111111111111111111111111111111111111111111111111111111 
 
To start installed FGS's daemon at boot time, do (as root) :
 
$ echo "su fgs -c \"( . /home/fgs/fgs/setenv.sh ; fgs start )\"" >> /etc/rc.d/rc.local
 
222222222222222222222222222222222222222222222222222222222222222
 
Before using the FGS environment, you need to set some
 
environment variables (each time you login) :       
 
$ cd /home/fgs/fgs
 
$ . setenv.sh
 
OR you can do it automatically each time you log in by doing :
 
echo ". /home/fgs/fgs/setenv.sh" >> ~/.bashrc
 
****************************************************************
 
#> cd /home/fgs/fgs
 
#>ls
 
apps  bin  etc  include  lib  pymod  setenv.sh  share  tmp  var  www
 
#> chmod 700 setenv.sh
 
#> source setenv.sh
 
#>
 

Version vom 26. Mai 2010, 08:42 Uhr

Hallo und Willkommen auf meiner Diskussionsseite,

ich möchte nachfolgend die Zwischenschritte auf dem Weg zu einer laufenden kvwmap-Installation dokumentieren. Diese soll Naturschutzmaßnahmen im Rahmen des Ökokontos und Kompensationsflächenkatasters abbilden, wie es dass neue Landesnaturschutzgesetz in den Paragraphen § 3 Nr. 2 und §12 Nr. 5 fordert. Zunächst ist der Aufbau einer Testumgebung geplant, der anschließend in den Echtbetrieb in Client-Server-Architektur überführt werden soll. Die Serverbereitstellung erfolgt durch das LUNG. Clients sind vorrangig die unteren Naturschutzbehörden in Landkreisen und kreisfreien Städten des Landes.

Wir haben uns für kvwmap entschieden, da es, aus unserer Sicht, folgende Vorteile bietet:

  1. Verbindung von Datenbank und GIS
  2. Einbindung von Webdiensten, wie Topografie, Biotopen, Schutzgebieten und ALK sowie Nutzung letzerer als Vorlage zur Flächenabgrenzung der Naturschutzmaßnahmen.
  3. angestrebte enge Verzahnung mit den Landkreisen, welche Daten eingeben und pflegen müssen und zum Großteil über Erfahrungen mit kvwmap verfügen
  4. Echtzeitzugriff für alle internen Nutzer
  5. zeitnahe laufende Veröffentlichung ausgewählter Daten im WWW (vorgesehen sind LUNG-Homepage mit Statistik sowie Kartenportal Umwelt mit WMS)
  6. Open-Source-Hintergrund

Sollten Fehler auffallen bist Du herzlich eingeladen, einen Lösungsweg zu ergänzen.

Herzliche Grüße! --Gunther Rahmlow 09:14, 25. Mai 2010 (CEST)

Arbeitsschritte

  1. Aufbau einer Testumgebung
    1. Installation openSuse11 (Status: erledigt)
    2. Installation FGS-Packet und Test (Status: in Arbeit)
      1. MySQL zum laufen bringen: *Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
      2. phpMyAdmin als Admintool installieren
    3. Installation kvwmap und Test (Status: offen)
      1. kvwmap runterladen und in /fgs/fgs9.5/apps/kvwmap entpacken
      2. kvwmap Ordnerrechte 755 vergeben und alias vergeben in fgs9.5/www/conf.d
      3. Installationsdateien im Ordner /kwmap/layouts/sql_dumps ausführen
      4. mysql_install.sql und mysql_install_help.sql müssen in phpMyAdmin ausgeführt werden.
      5. in kvwmap die config_default.php kopieren und im selben Verzeichnis als config.php speichern. config.php editieren: Dauer 6 Stunden
      6. kvmwap starten und Fehlermeldungen bearbeiten
      7. dann Lernen: Stelle, Nutzer, Layer, Rolle. Wie binde ich Nutzer an Stelle (=Rolle). Layer an Stelle (=used_layer)
    4. Entwurf NVP einspielen (Status: offen)
      1. Ökokontoentwurf einspielen
  2. Aufbau Echtbetriebsumgebung (Status: offen)

Hilfe

Systemeigenschaften der Testumgebung

  • Medion-Akoya P7612, IntelCore Duo CPU T6500 2,1 GHZ 2,1 GHZ, 4 GB RAM
  • Betriebssystem: SUSE Linux 11.0
  • Partitionen: Win7x32 und openSuse11x32
  • Festplatten: 500 GB, davon Suse 100 GB
  • Backup über Kopie des Ordners /fgs/fgs9.5, der bis auf MySQL alle Daten enthält.
  • MAC-Adresse:
  • WWW-Zugang über Web'nWalk III-Stick von Huawei

Serveranforderungen Echtbetrieb

Neuinstallation Linux

  • Installationsmedium: DVD Suse11 i586 32bit
  • Pakete von DVD nachinstallieren: /media/SU1110.001/suse/i586

Installation FGS-Packet

  • Anleitung: FGS installieren
  • Abweichungen:
    • FGS unter Port 80 und 443: Punkt übersprungen, Port bleibt 8080
    • PgAdmin Version pgadmin3-1.10.0-1.i586 verwendet, da aktuelle Versionen (phpPgAdmin-4.2.2 und 4.2.3) keine PHP-Verbindung zuliessen.

FGS-Verzeichnis-Struktur (unter /home/fgs/fgs)

  • apps – Contains the modules data “not the executable itself”
  • bin – Contains all the binary’s. Similar to “/usr/bin”
  • etc – Contains the module configuration data. Similar to “/etc”
  • include – Contains the source includes for modules. Similar to “/usr/includes”
  • lib – Contains the necessary libraries for the modules. Similar to “/lib”
  • share – Contains the shared installed libraries. Similar to “/usr/share”
  • tmp – Contains the temporary files. Similar to “/tmp”
  • var – Contains any modules “var” data. Similar to “/var”
  • www – Contains everything “apache”

Quelle: http://research.dmsolutions.ca/?p=68

Tests

Sicherheit

Steuerung DB-Zugriff über Datei pg_hba.conf und dort IP4v local connection Name und IP-Adresse werden fest hinterlegt! Voraussetzung ist ein freier Port für die Postgres-DB (z.B. 5432). Für DB-Anlage wird local Nutzer fgs angelegt, der sich ohne PW einwählen kann. Auskommentieren wenn DB läuft, um Recht zu entfernen.

vorgesehene Web-Dienste

  • ALK als WMS und WFS (kostenfreie Verfügbarkeit für Land und Kommune lt. VermKostVO § 2 Abs. 1(e) am 09.04.2010 mit Fr.Rick (Tel.0385/4801-3415) vom geoportal-mv.de geklärt)

Folien Fluren, Flurstücke und Nutzungsarten werden lt. VermKostVO Punkt 4.1.1.4 angeboten. ALB-Daten sind in Zukunft vorgesehen. Dienstaufruf: Link. Unterstützung in technischen Fragen gibt Hr.Kufahl (Tel. 0385/800327).

Tastenkombinationen

  • Strg + Alt + F2 = Konsolenmodus
  • Strg + Alt + F7/F8 = Benutzersitzung wechseln

Befehlsreferenz

  • unix2dos [-p] [Datei] = Textdatei mit DOS-kompatiblen Zeichenumbruch erzeugen
  • help = Hilfe zum Befehl
  • man = Hilfe Stichwortsuche, Programmhandbuch zum Befehl
  • uname -a = Systemcheck (Was für ein System ?)
  • lsmod = Systemcheck (welche Module geladen ?)
  • shutdown = runterfahren
  • reboot = Neustart
  • whoami = gibt Login-Namen
  • finger = Gibt Login-Namen, Real-Namen, Terminal Namen, Schreibstatus, Idle-Zeit (Zeit seit letzter Accountnutzung), Login-Zeit, Standort
  • groups [Nutzername] = Gibt User-Gruppenzugehoerigkeit
  • last = Zeigt letzte Logins
  • who = Gibt Login-Namen der momentan eingelogten User zusammen mit Terminal-IDs und Login-Zeitpunkt
  • uptime = Systemcheck: Wie lange schon am laufen ?
  • fdisk -l = Uebersicht Festplatten und Partitionen
  • top = Prozesseigenschaften anzeigen (fortlaufend)
  • pilot = Dateimanager
  • ls = Auflistung Dateien im Ordner
  • cp = Datei kopieren
  • sudo cp -R phpPgAdmin-4.2.3/ /home/fgs/fgs9.5/apps/
  • rm [-rf] = Datei löschen [alles unterhalb Verzeichnis]
  • mv = Datei verschieben/umbenennen
  • kfind = Dateien finden/suchen
  • diff [Datei1] [Datei2] = Unterschiede in Textdateien anzeigen
  • joe [Datei] = Textdatei im Editor starten
  • display [Datei] = Bild anschauen
  • ksnapshot = Screenshot anfertigen
  • clear = Bildschirm löschen
  • history = Befehlshistorie
  • su = Anmelden als Root
  • sudo [Befehl] = Befehl ausführen als Root
  • lsusb = an USB angeschlossene Geraete auflisten
  • kdesu umtsmon = startet Web'n Walk-Stick(Alt + F2)
  • ifconfig = Konfiguriert Netwerk-Schnittstellen, bzw gibt deren Konfiguration und Status aus
  • ip addr >unter Win: ipconfig /all bzw. http://meineipadresse.de/ (sofern kein Proxy)
  • ip neigh
  • ps ax | grep ksmserver
  • ps ax
  • rcnetwork = Netzwerk starten/beenden/Status
  • chmod 700 [Datei] = Dateiattribute ändern, hier: Datei ausführbar machen