Changes between Version 2 and Version 3 of LightSpeedMapServer
- Timestamp:
- Jul 29, 2010, 12:34:45 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LightSpeedMapServer
v2 v3 65 65 }}} 66 66 You have successfully compiled the Proj4 libraries required for Map Server. 67 67 68 '''LighHTTPD''' 68 69 Lighttpd 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. … … 72 73 tar -xzf lighttpd-1.4.26.tar.gz 73 74 cd 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-memcache75 ./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 76 make 76 77 make install … … 80 81 /etc/init.d/lighttpd start 81 82 }}} 83 82 84 You have successfully compiled and configured your fast & secure Lighttpd web server. 85 83 86 '''FreeType''' 87 84 88 FreeType 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 85 90 Download the source[http://www.freetype.org/] 86 Installation & Configuration 91 92 Installation & Configuration 93 87 94 {{{ 88 95 tar -xzf freetype-2.3.12.tar.gz … … 92 99 make install 93 100 }}} 101 94 102 You have successfully compiled the FreeType libraries required for Map Server. 103 95 104 '''GEOS''' 105 96 106 Geos 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 97 108 Download the source [http://trac.osgeo.org/geos/] 98 Installation & Configuration 109 110 Installation & Configuration 111 99 112 {{{ 100 113 tar -xjf geos-3.2.0.tar.bz2 … … 104 117 make install 105 118 }}} 119 106 120 You have successfully compiled the Geos libraries required for Map Server. 121 107 122 '''GD''' 123 108 124 GD 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 109 126 Download the source [http://www.libgd.org/] 110 Installation & Configuration 127 128 Installation & Configuration 129 111 130 {{{ 112 131 tar -xzf gd-2.0.35.tar.gz … … 116 135 make install 117 136 }}} 137 118 138 You have successfully compiled the GD binaries and it’s libraries required for Map Server. 139 119 140 '''PHP''' 141 120 142 PHP 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]] 121 143 PostgreSql and GD with is required for PHP mapscript, and compiling as fast-cgi to get the maximum security and speed. 144 122 145 Download the source [http://php.net/] 123 Installation & Configuration 146 147 Installation & Configuration 148 124 149 {{{ 125 150 tar -xzf php-5.3.2.tar.gz … … 130 155 cp -pr php.ini-production /usr/local/php5/lib/php.ini 131 156 }}} 157 132 158 You have successfully compiled PHP as fast-cgi in the server. 159 133 160 '''PostGIS''' 134 161 PostGIS 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 135 163 Download the source[ http://postgis.refractions.net/] 136 Installation & Configuration 164 165 Installation & Configuration 166 137 167 {{{ 138 168 tar -xzf softwares/postgis-1.5.1.tar.gz … … 142 172 make install 143 173 }}} 174 144 175 You 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 145 177 {{{ 146 178 createdb -U postgres testgis … … 149 181 psql -U postgres testgis < spatial_ref_sys.sql 150 182 }}} 183 151 184 '''GDAL''' 185 152 186 GDAL (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 153 188 Download the source http://www.gdal.org/ 154 Installation & Configuration 189 190 Installation & Configuration 191 155 192 {{{ 156 193 tar -xzf gdal-1.7.1.tar.gz … … 160 197 make install 161 198 }}} 199 162 200 You 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 164 202 '''Map Server''' 203 165 204 MapServer 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, 166 205 * Advanced cartographic output … … 176 215 * A multitude of raster and vector data formats, ie TIFF/GeoTIFF, EPPL7, ESRI shapfiles, PostGIS, ESRI ArcSDE, Oracle Spatial, MySQL 177 216 * On-the-fly map projection with 1000s of projections through the Proj.4 library. 217 178 218 Download the source [http://mapserver.org/] 179 Installation & Configuration 219 220 Installation & Configuration 221 180 222 {{{ 181 223 tar -xzf mapserver-5.6.1.tar.gz 182 224 cd 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/php5225 ./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 184 226 make 185 227 make install 186 228 cp -pr mapserv /var/www/cgi-bin/ 187 229 }}} 230 188 231 You 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. 189 232 {{{ 190 233 ./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 }}} 234 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 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 193 237 PHP & Map server FastCGI configuration with Lighttpd. Edit Lighttpd.conf, 194 238 {{{