Thursday, February 27, 2014

New Mapserver installation guide - Feb2014

New Mapserver installation guide - Feb2014

mysql 5.5 - 5.6 above removes some functions that produces compilation error for gdal

libpng-1.2.25

gdal 1.10

./configure --with-jpeg --with-gd --with-freetype --with-png --with-ogr --with-proj --with-gdal --with-httpd=/usr/local/apache2 --with-tiff --with-wfs --with-wcs --with-threads --with-wmsclient --with-wfsclient --with-geos=/usr/local/bin/geos-config --enable-debug --with-gif --with-mysql --with-php-- --with-libtiff --with-static-proj4=/usr/local/bin

# to test:
    export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
    ogrinfo --formats
# include when needed: --with-postgis --with-pg=/usr/local/pgsql/bin/pg_config

php - 5.4.7

./configure --with-png-dir=/usr/lib --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/apache2/php --with-zlib-dir --with-pear --enable-soap --with-mysql --with-jpeg-dir --with-gd --enable-mbstring --with-curl --with-openssl

mapserver - 6.2.2

./configure --enable-debug --with-agg=/usr/local/agg-2.4 --with-curl --with-curl-config=/usr/bin/curl-config --with-freetype --with-gd --with-gdal --with-geos=/usr/local/bin/geos-config --with-httpd=/usr/local/apache2/bin/httpd --with-jpeg --with-libiconv=/usr --with-libtiff --with-ogr --with-php=/usr/local/bin/php-config --with-png=/usr/local --with-proj=/usr/local --with-sos --with-static-proj4=/usr/local/bin --with-threads --with-tiff --with-wcs --with-wfs --with-wfsclient --with-wmsclient --with-xml2-config=/usr/bin/xml2-config --with-mysql

cp -rf mapserv legend scalebar shp2img shp2pdf shptree shptreetst shptreevis sortshp tile4ms /usr/local/apache2/cgi-bin/
cp -rf mapscript/php/.libs/php_mapscript.so /usr/local/apache2/modules/ 


mapserver test tool..

192.168.1.17:/usr/local/apache2/htdocs/mapserver_test
there is a README file there to help you deploy the test tool.
 
to deploy this mapserver test tool...

make sure of the ff:
a. you have mapserv cgi script in your cgi-bin
b. you have htdocs/OpenLayers directory
c. you have /home/maps/web tab files
d. for ovf, you should have mapdata in your db, or any db with points data
e. for mysql, you should have mysql_spatial in your db, or any mysql spatial db
f. for pgsql, you should have postgres spatial db and postgis installed

to deploy:
1. deploy this mapserver_test to your htdocs directory
2. link mapserver_test to /home/mapserv/mapserver_test
3. browse http://<server ip>/mapserver_test

! make sure you remove all data from servers after testing
 

No comments:

Post a Comment