Changes between Version 2 and Version 3 of LightSpeedMapServer


Ignore:
Timestamp:
Jul 29, 2010, 12:34:45 AM (14 years ago)
Author:
hellonishad
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LightSpeedMapServer

    v2 v3  
    6565}}}
    6666You have successfully compiled the Proj4 libraries required for Map Server.
     67
    6768'''LighHTTPD'''
    6869Lighttpd is a web server designed and optimized for high performance environments, with a small memory footprint compared to other web-servers and effective management of the[[BR]] cpu-load. This is a perfect solution for every server which is suffering load problems.
     
    7273tar -xzf lighttpd-1.4.26.tar.gz
    7374cd lighttpd-1.4.26/
    74 p<>. ./configure —prefix /usr/local/ —bindir=/usr/local/bin/ —sbindir=/usr/local/sbin/ —libexecdir=/usr/local/libexec/ —libdir=/usr/local/lib/ —includedir=/usr/local/include —sysconfdir=/usr/local/lighthttpd —datarootdir=/var/www/ —datadir=/var/www —with-memcache
     75./configure —prefix /usr/local/ —bindir=/usr/local/bin/ —sbindir=/usr/local/sbin/ —libexecdir=/usr/local/libexec/ —libdir=/usr/local/lib/ —includedir=/usr/local/include —sysconfdir=/usr/local/lighthttpd —datarootdir=/var/www/ —datadir=/var/www —with-memcache
    7576make
    7677make install
     
    8081/etc/init.d/lighttpd start
    8182}}}
     83
    8284You have successfully compiled and configured your fast & secure Lighttpd web server.
     85
    8386'''FreeType'''
     87
    8488FreeType is a software font engine that is designed to be small, efficient, highly customizable, and portable while capable of producing high-quality output. It can be used [[BR]]in graphics libraries, display servers, font conversion tools, text image generation tools, and many other products as well.
     89
    8590Download the source[http://www.freetype.org/]
    86 Installation & Configuration
     91
     92Installation & Configuration
     93
    8794{{{
    8895tar -xzf freetype-2.3.12.tar.gz
     
    9299make install
    93100}}}
     101
    94102You have successfully compiled the FreeType libraries required for Map Server.
     103
    95104'''GEOS'''
     105
    96106Geos GEOS is a Geometry Engine which aims to contain the complete functionality of Java Topology Suite. This includes all the GIS Simple Features for SQL spatial predicate [[BR]]functions and spatial operators, as well as specific JTS enhanced topology functions.
     107
    97108Download the source [http://trac.osgeo.org/geos/]
    98 Installation & Configuration
     109
     110Installation & Configuration
     111
    99112{{{
    100113tar -xjf geos-3.2.0.tar.bz2
     
    104117make install
    105118}}}
     119
    106120You have successfully compiled the Geos libraries required for Map Server.
     121
    107122'''GD'''
     123
    108124GD is used for dynamic creation of images like PNG, JPEG and GIF images, among other formats. GD is commonly used to generate charts, graphics, thumbnails, and most anything[[BR]] else, on the fly.
     125
    109126Download the source [http://www.libgd.org/]
    110 Installation & Configuration
     127
     128Installation & Configuration
     129
    111130{{{
    112131tar -xzf gd-2.0.35.tar.gz
     
    116135make install
    117136}}}
     137
    118138You have successfully compiled the GD binaries and it’s libraries required for Map Server.
     139
    119140'''PHP'''
     141
    120142PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. Here we are configuring PHP with [[BR]]
    121143PostgreSql and GD with is required for PHP mapscript, and compiling as fast-cgi to get the maximum security and speed.
     144
    122145Download the source [http://php.net/]
    123 Installation & Configuration
     146
     147Installation & Configuration
     148
    124149{{{
    125150tar -xzf php-5.3.2.tar.gz
     
    130155cp -pr php.ini-production /usr/local/php5/lib/php.ini
    131156}}}
     157
    132158You have successfully compiled PHP as fast-cgi in the server.
     159
    133160'''PostGIS'''
    134161PostGIS PostGIS adds support for geographic objects to the PostgreSQL object-relational database. In effect, PostGIS “spatially enables” the PostgreSQL server, allowing it to[[BR]] be used as a backend spatial database for geographic information systems (GIS).
     162
    135163Download the source[ http://postgis.refractions.net/]
    136 Installation & Configuration
     164
     165Installation & Configuration
     166
    137167{{{
    138168tar -xzf softwares/postgis-1.5.1.tar.gz
     
    142172make install
    143173}}}
     174
    144175You have successfully configured postGIS with PostgreSQL and Geos, compiled the source and installed the binaries. Now you create a PostgreSQL database and spatially enables [[BR]]it by importing the PostGIS sql functions.
     176
    145177{{{
    146178createdb -U postgres testgis
     
    149181psql -U postgres testgis < spatial_ref_sys.sql
    150182}}}
     183
    151184'''GDAL'''
     185
    152186GDAL (Geospatial Data Abstraction Library) is a library for reading and writing raster geospatial data formats. As a library, it presents a single abstract data model to the[[BR]] calling application for all supported formats. It may also be built with a variety of useful command-line utilities for data translation and processing.
     187
    153188Download the source http://www.gdal.org/
    154 Installation & Configuration
     189
     190Installation & Configuration
     191
    155192{{{
    156193tar -xzf gdal-1.7.1.tar.gz
     
    160197make install
    161198}}}
     199
    162200You have successfully compiled Gdal with png,tiff,jpeg,gif,PostgreSQL and python. Now your Gdal library is available to build the Map Server.
    163 Map Server
     201
    164202'''Map Server'''
     203
    165204MapServer is geographic data rendering engine, providing spatial context where needed. It allows you to create geographic image maps that can direct users to content. It was[[BR]] originally developed by the University of Minnesota (UMN) ForNet project in cooperation with NASA. The main features are,
    166205    * Advanced cartographic output
     
    176215    * A multitude of raster and vector data formats, ie TIFF/GeoTIFF, EPPL7, ESRI shapfiles, PostGIS, ESRI ArcSDE, Oracle Spatial, MySQL
    177216    * On-the-fly map projection with 1000s of projections through the Proj.4 library.
     217
    178218Download the source [http://mapserver.org/]
    179 Installation & Configuration
     219
     220Installation & Configuration
     221
    180222{{{
    181223tar -xzf mapserver-5.6.1.tar.gz
    182224cd mapserver-5.6.1/
    183 ./configure —prefix=/usr/local/ —with-gdal=/usr/local/bin/gdal-config —with-ogr=/usr/local/bin/gdal-config —with-httpd=/usr/local/sbin/lighttpd —with-curl=/usr/bin/curl-config[[BR]] —enable-debug —with-proj=/usr/local/ —with-tiff=/usr/ —with-gd=/usr/local/ —with-jpeg=/usr/local/ —with-freetype=/usr/local/ —with-threads [[BR]]—with-postgis=/usr/local/pgsql/bin/pg_config —with-xml2-config=/usr/bin/xml2-config —with-png=/usr/ —with-wmsclient —with-wmsserver —with-fastcgi=/usr/local/ —with-wfs [[BR]]with-wfsclient —with-gif=/usr/ —with-geos=/usr/local/bin/geos-config —with-php=/usr/local/php5
     225./configure —prefix=/usr/local/ —with-gdal=/usr/local/bin/gdal-config —with-ogr=/usr/local/bin/gdal-config —with-httpd=/usr/local/sbin/lighttpd —with-curl=/usr/bin/curl-config[[BR]] —enable-debug —with-proj=/usr/local/ —with-tiff=/usr/ —with-gd=/usr/local/ —with-jpeg=/usr/local/ —with-freetype=/usr/local/ —with-threads —with-postgis=/usr/local/pgsql/bin/pg_config —with-xml2-config=/usr/bin/xml2-config —with-png=/usr/ —with-wmsclient —with-wmsserver —with-fastcgi=/usr/local/ —with-wfs with-wfsclient —with-gif=/usr/ —with-geos=/usr/local/bin/geos-config —with-php=/usr/local/php5
    184226make
    185227make install
    186228cp -pr mapserv /var/www/cgi-bin/
    187229}}}
     230
    188231You have successfully compiled the Map Server with all it’s prerequisites and bindings,and as fast-cgi binary. Now you can test your installation by running “mapserv” binary.[[BR]] If you get below output, it seems your installation is successful.
    189232{{{
    190233./mapserv -v
    191 MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER [[BR]]SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
    192 }}}
     234MapServer version 5.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
     235}}}
     236
    193237PHP & Map server FastCGI configuration with Lighttpd. Edit Lighttpd.conf,
    194238{{{