SlideShare a Scribd company logo
1 of 6
Download to read offline
INSTALLING MAPSERVER AND PHP MAPSCRIPT ON LINUX


Author    : Lorensius W. L. T
Email     : lorenz@londatiga.net
Website   : http://www.londatiga.net
Link       : http://www.londatiga.net/downloads/tutorial/mapserver_install_linux.pdf


Introduction

MapServer is an open source and free software for rendering maps, images, and vector data on the web.
MapServer was originally developed by the University of Minnesota (UMN) ForNet project in
cooperation with NASA and the Minnesota Department of Natural Resources. Presently, the MapServer
project is hosted by the TerraSIP, a NASA sponsored project between the UMN and consortium of land
management interests (http://mapserver.gis.umn.edu).

MapServer can be compiled on many platforms and operating systems, but in this tutorial, I will focus on
unix like system, especially Linux.

Prerequisites

Operating system used in this tutorial is Linux Fedora Core 7 with Apache (httpd-2.0.55), PHP (php-
5.2.3), and PostgreSQL(postgresql-8.2.4) already installed using manual source installation (not using
default rpm package). Required libraries that already installed are libpng, libjpeg, libtiff, and zlib.
Installation manual for those softwares and libraries are beyond the scope of this tutorial.

Required softwares and libraries:

    1. MapServer: is the main software.
       Source: http://download.osgeo.org/mapserver/mapserver-5.0.2.tar.gz
    2. GD: used by MapServer for rendering images, version 2.0.28 or greater is required.
       Source: http://www.libgd.org/releases/gd-2.0.35.tar.gz
    3. PROJ.4: provides projection support for MapServer (also needed by PostGIS), version 4.4.6 or
       greater is required.
       Source: ftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz
    4. GEOS: enables MapServer to do spatial operation (within, touches, union, difference,
       intersection), also needed by PostGIS, version 4.10 or greater is required.
       Source: http://geos.refractions.net/downloads/geos-3.0.0.tar.bz2
    5. GDAL: provides access to at least 42 different raster formats.
       Source: http://download.osgeo.org/gdal/gdal-1.5.1.tar.gz
    6. OGR: provides access to at least 18 different vector formats.
       Source: http://download.osgeo.org/gdal/gdal-1.5.1.tar.gz
7. CURL: is the foundation of OGC (WFS, WMS, WCS) client and server support, requires version
       7.10 or greater.
       Source: http://curl.haxx.se/download/curl-7.18.1.tar.gz
    8. PostGIS: adds support for geographic objects to the PostgreSQL.
       Source: http://www.postgis.org/download/postgis-1.3.3.tar.gz

Note:
Apache was installed under /usr/local/apache
PostgreSQL was installed under /usr/local/pgsql
All previously installed libraries (libpng, libjpeg, libtiff, and zlib) were installed under /usr/lib
Apache root directory is /data/www/html, cgi-bin directory is /data/www/cgi-bin


Installation

    1. GD

        Installation steps:

                 [lorenz@devel>>installer]$ tar –xzvf gd-2.0.35.tar.gz
                 [lorenz@devel>>installer]$ cd gd-2.0.35
                 [lorenz@devel>>gd-2.0.35]$ ./configure
                 [lorenz@devel>>gd-2.0.35]$ make
                 [lorenz@devel>>gd-2.0.35]$ make install

        Note: default installation directory is /usr/local

    2. PROJ.4

        Installation steps:

                 [lorenz@devel>>installer]$ tar –xzvf proj-4.6.0.tar.gz
                 [lorenz@devel>>installer]$ cd proj-4.6.0
                 [lorenz@devel>>proj-4.6.0]$ ./configure
                 [lorenz@devel>> proj-4.6.0]$ make
                 [lorenz@devel>> proj-4.6.0]$ make install

        Note: default installation directory is /usr/local


    3. GEOS

        Installation steps:

                 [lorenz@devel>>installer]$ tar –xjvf geos-3.0.0.tar.bz2
                 [lorenz@devel>>installer]$ cd geos-3.0.0
[lorenz@devel>>geos-3.0.0]$ ./configure
           [lorenz@devel>>geos-3.0.0]$ make
           [lorenz@devel>>geos-3.0.0]$ make install

   Note: default installation directory is /usr/local


4. GDAL

   Installation steps:

           [lorenz@devel>>installer]$ tar –xzvf gdal-1.5.1.tar.gz
           [lorenz@devel>>installer]$ cd gdal-1.5.1
           [lorenz@devel>>gdal-1.5.1]$ ./configure
           [lorenz@devel>>gdal-1.5.1]$ make
           [lorenz@devel>>gdal-1.5.1]$ make install

   Note: default installation directory is /usr/local

5. CURL

   Installation steps:

           [lorenz@devel>>installer]$ tar –xzvf curl-7.18.1.tar.gz
           [lorenz@devel>>installer]$ cd curl-7.18.1
           [lorenz@devel>>curl-7.18.1]$ ./configure
           [lorenz@devel>>curl-7.18.1]$ make
           [lorenz@devel>>curl-7.18.1]$ make install

   Note: default installation directory is /usr/local

6. Update ld-config

           [lorenz@devel>>installer]$ cd /etc/ld.so.conf.d/
           [lorenz@devel>>ld.so.conf.d]$ echo /usr/local/lib > usrlocalib.conf
           [lorenz@devel>>ld.so.conf.d]$ /sbin/ldconfig


7. POSTGIS

   Installation steps:

           [lorenz@devel>>installer]$ tar –xzvf postgis-1.3.3.tar.gz
           [lorenz@devel>>installer]$ cd postgis-1.3.3
           [lorenz@devel>>postgis-1.3.3]$ ./configure --with-
           pgsql=/usr/local/pgsql/bin/pg_config --with-proj --with-geos
           [lorenz@devel>>postgis-1.3.3]$ make
[lorenz@devel>>postgis-1.3.3]$ make install



8. Recompile PHP as CGI

   Installation steps:

           [lorenz@devel>>installer]$ cd php-5.2.3
           [lorenz@devel> php-5.2.3 ]$ ./configure 
           > --enable-force-cgi-redirect 
           > --with-gd=/usr/local/ 
           > --with-jpeg-dir=/usr/lib 
           > --with-png-dir=/usr/lib 
           > --with-tiff-dir=/usr/lib 
           > --with-zlib-dir=/usr/lib 
           > --with-freetype-dir=/usr/lib 
           > --without-ttf 
           > --with-mysql=/usr/local/mysql/ 
           > --with-pgsql=/usr/local/pgsql/ 
           > --with-curl=/usr/local/ 
           > --with-gettext 
           > --enable-ftp 
           > --enable-xml 
           > --with-zlib 
           > --with-regex=system 
           > --enable-dbase 
           > --enable-dbx 
           > --with-config-file-path=/usr/local/lib
           [lorenz@devel>>php-5.2.3]$ make
           [lorenz@devel>>php-5.2.3]$ cp sapi/cgi/php-cgi /data/www/cgi-bin

       Note: DO NOT do a “make install”


9. MapServer

   Installation steps:

           [lorenz@devel>>installer]$ tar –xzvf mapserver-5.0.2.tar.gz
           [lorenz@devel>>installer]$ cd mapserver-5.0.2
           [lorenz@devel>>mapserver-5.0.2]$ ./configure --with-ogr=/usr/local/bin/gdal-config 
           --with-gdal=/usr/local/bin/gdal-config 
           --with-httpd=/usr/local/apache/bin/httpd 
           --with-wfsclient 
           --with-wmsclient 
           --enable-debug
--with-curl-config=/usr/local/bin/curl-config 
           --with-proj=/usr/local 
           --with-tiff 
           --with-gd=/usr/local 
           --with-jpeg 
           --with-freetype=/usr/ 
           --with-threads 
           --with-wcs 
           --with-postgis=/usr/local/pgsql/bin/pg_config 
           --with-libiconv=/usr 
           --with-geos=/usr/local/bin/geos-config 
           --with-xml2-config=/usr/bin/xml2-config 
           --with-sos 
           --with-php=../php-5.2.3/
           [lorenz@devel>>mapserver-5.0.2]$ make

   Note: DO NOT do a “make install”

   PHP MapScript installation steps;

           [lorenz@devel>>mapserver-5.0.2]$ cp mapserv legend scalebar /data/www/cgi-bin
           [lorenz@devel>>mapserver-5.0.2]$ mkdir /usr/local/lib/php/extensions
           [lorenz@devel>>mapserver-5.0.2]$ cp mapscript/php3/php_mapscript.so
           /usr/local/lib/php/extensions
           [lorenz@devel>>mapserver-5.0.2]$ cd /usr/local/lib
           Edit file php.ini and add two lines below:

           extension_dir = "/usr/local/lib/php/extensions"
           extension = "php_mapscript.so"

           Edit file /usr/local/apache/conf/httpd.conf and add two lines below:

           AddType application/x-httpd-php-cgi .phtml
           Action application/x-httpd-php-cgi /cgi-bin/php-cgi

           Restart apache (#/usr/local/apache/bin/apachectl restart)

10. Test PHP Mapscript

   To test PHP MapScript that already installed:

           Go into web root directory (/data/www/html)
           Create php file and add phpinfo() line into the file
           Save the file as info.phtml
           Open browser and point to http://localhost/info.phtml
           If installation is successful, the phpinfo page should contain part like this:
To test drawing map, you can download simple demo application from
http://www.londatiga.net/downloads/tutorial/phpmapscript-demo.tar.gz

Installation steps:

        [lorenz@devel>>installer]$ cp phpmapscript-demo.tar.gz /data/www/html
        [lorenz@devel>>installer]$ cd /data/www/html
        [lorenz@devel>>html]$ tar –xzvf phpmapscript-demo.tar.gz
        [lorenz@devel>>html]$ chmod 777 tmp
        Open browser and point to http://localhost/phpmapscript-demo
        If all things running well it should display a map

More Related Content

What's hot

2005_Structures and functions of Makefile
2005_Structures and functions of Makefile2005_Structures and functions of Makefile
2005_Structures and functions of MakefileNakCheon Jung
 
Heroku Tips and Hacks
Heroku Tips and HacksHeroku Tips and Hacks
Heroku Tips and HacksLuan Nguyen
 
Fun with processes - lightning talk
Fun with processes - lightning talkFun with processes - lightning talk
Fun with processes - lightning talkPaweł Dawczak
 
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটিWordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটিFaysal Shahi
 
ZF2 for the ZF1 Developer
ZF2 for the ZF1 DeveloperZF2 for the ZF1 Developer
ZF2 for the ZF1 DeveloperGary Hockin
 
Puppet Camp Phoenix 2015: Managing Files via Puppet: Let Me Count The Ways (B...
Puppet Camp Phoenix 2015: Managing Files via Puppet: Let Me Count The Ways (B...Puppet Camp Phoenix 2015: Managing Files via Puppet: Let Me Count The Ways (B...
Puppet Camp Phoenix 2015: Managing Files via Puppet: Let Me Count The Ways (B...Puppet
 
eZ Publish Cluster Unleashed
eZ Publish Cluster UnleashedeZ Publish Cluster Unleashed
eZ Publish Cluster UnleashedBertrand Dunogier
 
Nashvile Symfony Routes Presentation
Nashvile Symfony Routes PresentationNashvile Symfony Routes Presentation
Nashvile Symfony Routes PresentationBrent Shaffer
 
Talkaboutlithium
TalkaboutlithiumTalkaboutlithium
Talkaboutlithiumnoppoman722
 
Powerful and flexible templates with Twig
Powerful and flexible templates with Twig Powerful and flexible templates with Twig
Powerful and flexible templates with Twig Michael Peacock
 
PuppetCamp SEA 1 - Version Control with Puppet
PuppetCamp SEA 1 - Version Control with PuppetPuppetCamp SEA 1 - Version Control with Puppet
PuppetCamp SEA 1 - Version Control with PuppetWalter Heck
 
Auto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK NodesAuto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK Nodesnihiliad
 
Efficient DBA: Gain Time by Reducing Command-Line Keystrokes
Efficient DBA: Gain Time by Reducing Command-Line KeystrokesEfficient DBA: Gain Time by Reducing Command-Line Keystrokes
Efficient DBA: Gain Time by Reducing Command-Line KeystrokesSeth Miller
 
Ansible leveraging 2.0
Ansible leveraging 2.0Ansible leveraging 2.0
Ansible leveraging 2.0bcoca
 
PHP Data Objects
PHP Data ObjectsPHP Data Objects
PHP Data ObjectsWez Furlong
 
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway ichikaway
 
Devsumi2012 攻めの運用の極意
Devsumi2012 攻めの運用の極意Devsumi2012 攻めの運用の極意
Devsumi2012 攻めの運用の極意Ryosuke IWANAGA
 

What's hot (20)

2005_Structures and functions of Makefile
2005_Structures and functions of Makefile2005_Structures and functions of Makefile
2005_Structures and functions of Makefile
 
Heroku Tips and Hacks
Heroku Tips and HacksHeroku Tips and Hacks
Heroku Tips and Hacks
 
Fun with processes - lightning talk
Fun with processes - lightning talkFun with processes - lightning talk
Fun with processes - lightning talk
 
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটিWordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
WordPress Security - ওয়ার্ডপ্রেসের সিকিউরিটি
 
ZF2 for the ZF1 Developer
ZF2 for the ZF1 DeveloperZF2 for the ZF1 Developer
ZF2 for the ZF1 Developer
 
Puppet Camp Phoenix 2015: Managing Files via Puppet: Let Me Count The Ways (B...
Puppet Camp Phoenix 2015: Managing Files via Puppet: Let Me Count The Ways (B...Puppet Camp Phoenix 2015: Managing Files via Puppet: Let Me Count The Ways (B...
Puppet Camp Phoenix 2015: Managing Files via Puppet: Let Me Count The Ways (B...
 
eZ Publish Cluster Unleashed
eZ Publish Cluster UnleashedeZ Publish Cluster Unleashed
eZ Publish Cluster Unleashed
 
Solaris_quickref.pdf
Solaris_quickref.pdfSolaris_quickref.pdf
Solaris_quickref.pdf
 
Nashvile Symfony Routes Presentation
Nashvile Symfony Routes PresentationNashvile Symfony Routes Presentation
Nashvile Symfony Routes Presentation
 
Dc kyiv2010 jun_08
Dc kyiv2010 jun_08Dc kyiv2010 jun_08
Dc kyiv2010 jun_08
 
Talkaboutlithium
TalkaboutlithiumTalkaboutlithium
Talkaboutlithium
 
Powerful and flexible templates with Twig
Powerful and flexible templates with Twig Powerful and flexible templates with Twig
Powerful and flexible templates with Twig
 
PuppetCamp SEA 1 - Version Control with Puppet
PuppetCamp SEA 1 - Version Control with PuppetPuppetCamp SEA 1 - Version Control with Puppet
PuppetCamp SEA 1 - Version Control with Puppet
 
Auto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK NodesAuto-loading of Drupal CCK Nodes
Auto-loading of Drupal CCK Nodes
 
Efficient DBA: Gain Time by Reducing Command-Line Keystrokes
Efficient DBA: Gain Time by Reducing Command-Line KeystrokesEfficient DBA: Gain Time by Reducing Command-Line Keystrokes
Efficient DBA: Gain Time by Reducing Command-Line Keystrokes
 
Ansible leveraging 2.0
Ansible leveraging 2.0Ansible leveraging 2.0
Ansible leveraging 2.0
 
PHP Data Objects
PHP Data ObjectsPHP Data Objects
PHP Data Objects
 
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
Tips of CakePHP and MongoDB - Cakefest2011 ichikaway
 
Devsumi2012 攻めの運用の極意
Devsumi2012 攻めの運用の極意Devsumi2012 攻めの運用の極意
Devsumi2012 攻めの運用の極意
 
Php 101: PDO
Php 101: PDOPhp 101: PDO
Php 101: PDO
 

Viewers also liked

parent_teacher_tutorial
parent_teacher_tutorialparent_teacher_tutorial
parent_teacher_tutorialtutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />tutorialsruby
 
Online Privacy and Security
Online Privacy and SecurityOnline Privacy and Security
Online Privacy and SecurityAlex Hyer
 

Viewers also liked (7)

09J1_ACG_Prospect
09J1_ACG_Prospect09J1_ACG_Prospect
09J1_ACG_Prospect
 
Alfredo-PUMEX
Alfredo-PUMEXAlfredo-PUMEX
Alfredo-PUMEX
 
TutorialIntro
TutorialIntroTutorialIntro
TutorialIntro
 
parent_teacher_tutorial
parent_teacher_tutorialparent_teacher_tutorial
parent_teacher_tutorial
 
RubyTesting
RubyTestingRubyTesting
RubyTesting
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
Online Privacy and Security
Online Privacy and SecurityOnline Privacy and Security
Online Privacy and Security
 

Similar to mapserver_install_linux

Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14jijukjoseph
 
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis OverviewLeo Lorieri
 
Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows habeebulla g
 
Ruby and Rails Packaging to Production
Ruby and Rails Packaging to ProductionRuby and Rails Packaging to Production
Ruby and Rails Packaging to ProductionFabio Kung
 
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOpsОмские ИТ-субботники
 
Globus toolkit4installationguide
Globus toolkit4installationguideGlobus toolkit4installationguide
Globus toolkit4installationguideAdarsh Patil
 
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)Simon Boulet
 
EF09-Installing-Alfresco-components-1-by-1.pdf
EF09-Installing-Alfresco-components-1-by-1.pdfEF09-Installing-Alfresco-components-1-by-1.pdf
EF09-Installing-Alfresco-components-1-by-1.pdfDangGonz
 
Installing odoo v8 from github
Installing odoo v8 from githubInstalling odoo v8 from github
Installing odoo v8 from githubAntony Gitomeh
 
Deploying PHP Applications with Ansible
Deploying PHP Applications with AnsibleDeploying PHP Applications with Ansible
Deploying PHP Applications with AnsibleOrestes Carracedo
 
Ansible : what's ansible & use case by REX
Ansible :  what's ansible & use case by REXAnsible :  what's ansible & use case by REX
Ansible : what's ansible & use case by REXSaewoong Lee
 
How to make debian package from scratch (linux)
How to make debian package from scratch (linux)How to make debian package from scratch (linux)
How to make debian package from scratch (linux)Thierry Gayet
 
Ef09 installing-alfresco-components-1-by-1
Ef09 installing-alfresco-components-1-by-1Ef09 installing-alfresco-components-1-by-1
Ef09 installing-alfresco-components-1-by-1Angel Borroy López
 
DSpace Tutorial : Open Source Digital Library
DSpace Tutorial : Open Source Digital LibraryDSpace Tutorial : Open Source Digital Library
DSpace Tutorial : Open Source Digital Libraryrajivkumarmca
 

Similar to mapserver_install_linux (20)

Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14
 
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
 
Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows
 
Ruby and Rails Packaging to Production
Ruby and Rails Packaging to ProductionRuby and Rails Packaging to Production
Ruby and Rails Packaging to Production
 
PHP selber bauen
PHP selber bauenPHP selber bauen
PHP selber bauen
 
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
2017-03-11 02 Денис Нелюбин. Docker & Ansible - лучшие друзья DevOps
 
Hadoop Installation
Hadoop InstallationHadoop Installation
Hadoop Installation
 
Globus toolkit4installationguide
Globus toolkit4installationguideGlobus toolkit4installationguide
Globus toolkit4installationguide
 
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
 
EF09-Installing-Alfresco-components-1-by-1.pdf
EF09-Installing-Alfresco-components-1-by-1.pdfEF09-Installing-Alfresco-components-1-by-1.pdf
EF09-Installing-Alfresco-components-1-by-1.pdf
 
Installing odoo v8 from github
Installing odoo v8 from githubInstalling odoo v8 from github
Installing odoo v8 from github
 
Deploying PHP Applications with Ansible
Deploying PHP Applications with AnsibleDeploying PHP Applications with Ansible
Deploying PHP Applications with Ansible
 
Ansible : what's ansible & use case by REX
Ansible :  what's ansible & use case by REXAnsible :  what's ansible & use case by REX
Ansible : what's ansible & use case by REX
 
Write php deploy everywhere
Write php deploy everywhereWrite php deploy everywhere
Write php deploy everywhere
 
How to make debian package from scratch (linux)
How to make debian package from scratch (linux)How to make debian package from scratch (linux)
How to make debian package from scratch (linux)
 
Ef09 installing-alfresco-components-1-by-1
Ef09 installing-alfresco-components-1-by-1Ef09 installing-alfresco-components-1-by-1
Ef09 installing-alfresco-components-1-by-1
 
Run wordcount job (hadoop)
Run wordcount job (hadoop)Run wordcount job (hadoop)
Run wordcount job (hadoop)
 
Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04
 
Dspace tutorial
Dspace tutorialDspace tutorial
Dspace tutorial
 
DSpace Tutorial : Open Source Digital Library
DSpace Tutorial : Open Source Digital LibraryDSpace Tutorial : Open Source Digital Library
DSpace Tutorial : Open Source Digital Library
 

More from tutorialsruby

TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>tutorialsruby
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>tutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />tutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />tutorialsruby
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheetstutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheetstutorialsruby
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascripttutorialsruby
 

More from tutorialsruby (20)

TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
CSS
CSSCSS
CSS
 
CSS
CSSCSS
CSS
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
Winter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20JavascriptWinter%200405%20-%20Advanced%20Javascript
Winter%200405%20-%20Advanced%20Javascript
 

Recently uploaded

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 

Recently uploaded (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

mapserver_install_linux

  • 1. INSTALLING MAPSERVER AND PHP MAPSCRIPT ON LINUX Author : Lorensius W. L. T Email : lorenz@londatiga.net Website : http://www.londatiga.net Link : http://www.londatiga.net/downloads/tutorial/mapserver_install_linux.pdf Introduction MapServer is an open source and free software for rendering maps, images, and vector data on the web. MapServer was originally developed by the University of Minnesota (UMN) ForNet project in cooperation with NASA and the Minnesota Department of Natural Resources. Presently, the MapServer project is hosted by the TerraSIP, a NASA sponsored project between the UMN and consortium of land management interests (http://mapserver.gis.umn.edu). MapServer can be compiled on many platforms and operating systems, but in this tutorial, I will focus on unix like system, especially Linux. Prerequisites Operating system used in this tutorial is Linux Fedora Core 7 with Apache (httpd-2.0.55), PHP (php- 5.2.3), and PostgreSQL(postgresql-8.2.4) already installed using manual source installation (not using default rpm package). Required libraries that already installed are libpng, libjpeg, libtiff, and zlib. Installation manual for those softwares and libraries are beyond the scope of this tutorial. Required softwares and libraries: 1. MapServer: is the main software. Source: http://download.osgeo.org/mapserver/mapserver-5.0.2.tar.gz 2. GD: used by MapServer for rendering images, version 2.0.28 or greater is required. Source: http://www.libgd.org/releases/gd-2.0.35.tar.gz 3. PROJ.4: provides projection support for MapServer (also needed by PostGIS), version 4.4.6 or greater is required. Source: ftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz 4. GEOS: enables MapServer to do spatial operation (within, touches, union, difference, intersection), also needed by PostGIS, version 4.10 or greater is required. Source: http://geos.refractions.net/downloads/geos-3.0.0.tar.bz2 5. GDAL: provides access to at least 42 different raster formats. Source: http://download.osgeo.org/gdal/gdal-1.5.1.tar.gz 6. OGR: provides access to at least 18 different vector formats. Source: http://download.osgeo.org/gdal/gdal-1.5.1.tar.gz
  • 2. 7. CURL: is the foundation of OGC (WFS, WMS, WCS) client and server support, requires version 7.10 or greater. Source: http://curl.haxx.se/download/curl-7.18.1.tar.gz 8. PostGIS: adds support for geographic objects to the PostgreSQL. Source: http://www.postgis.org/download/postgis-1.3.3.tar.gz Note: Apache was installed under /usr/local/apache PostgreSQL was installed under /usr/local/pgsql All previously installed libraries (libpng, libjpeg, libtiff, and zlib) were installed under /usr/lib Apache root directory is /data/www/html, cgi-bin directory is /data/www/cgi-bin Installation 1. GD Installation steps: [lorenz@devel>>installer]$ tar –xzvf gd-2.0.35.tar.gz [lorenz@devel>>installer]$ cd gd-2.0.35 [lorenz@devel>>gd-2.0.35]$ ./configure [lorenz@devel>>gd-2.0.35]$ make [lorenz@devel>>gd-2.0.35]$ make install Note: default installation directory is /usr/local 2. PROJ.4 Installation steps: [lorenz@devel>>installer]$ tar –xzvf proj-4.6.0.tar.gz [lorenz@devel>>installer]$ cd proj-4.6.0 [lorenz@devel>>proj-4.6.0]$ ./configure [lorenz@devel>> proj-4.6.0]$ make [lorenz@devel>> proj-4.6.0]$ make install Note: default installation directory is /usr/local 3. GEOS Installation steps: [lorenz@devel>>installer]$ tar –xjvf geos-3.0.0.tar.bz2 [lorenz@devel>>installer]$ cd geos-3.0.0
  • 3. [lorenz@devel>>geos-3.0.0]$ ./configure [lorenz@devel>>geos-3.0.0]$ make [lorenz@devel>>geos-3.0.0]$ make install Note: default installation directory is /usr/local 4. GDAL Installation steps: [lorenz@devel>>installer]$ tar –xzvf gdal-1.5.1.tar.gz [lorenz@devel>>installer]$ cd gdal-1.5.1 [lorenz@devel>>gdal-1.5.1]$ ./configure [lorenz@devel>>gdal-1.5.1]$ make [lorenz@devel>>gdal-1.5.1]$ make install Note: default installation directory is /usr/local 5. CURL Installation steps: [lorenz@devel>>installer]$ tar –xzvf curl-7.18.1.tar.gz [lorenz@devel>>installer]$ cd curl-7.18.1 [lorenz@devel>>curl-7.18.1]$ ./configure [lorenz@devel>>curl-7.18.1]$ make [lorenz@devel>>curl-7.18.1]$ make install Note: default installation directory is /usr/local 6. Update ld-config [lorenz@devel>>installer]$ cd /etc/ld.so.conf.d/ [lorenz@devel>>ld.so.conf.d]$ echo /usr/local/lib > usrlocalib.conf [lorenz@devel>>ld.so.conf.d]$ /sbin/ldconfig 7. POSTGIS Installation steps: [lorenz@devel>>installer]$ tar –xzvf postgis-1.3.3.tar.gz [lorenz@devel>>installer]$ cd postgis-1.3.3 [lorenz@devel>>postgis-1.3.3]$ ./configure --with- pgsql=/usr/local/pgsql/bin/pg_config --with-proj --with-geos [lorenz@devel>>postgis-1.3.3]$ make
  • 4. [lorenz@devel>>postgis-1.3.3]$ make install 8. Recompile PHP as CGI Installation steps: [lorenz@devel>>installer]$ cd php-5.2.3 [lorenz@devel> php-5.2.3 ]$ ./configure > --enable-force-cgi-redirect > --with-gd=/usr/local/ > --with-jpeg-dir=/usr/lib > --with-png-dir=/usr/lib > --with-tiff-dir=/usr/lib > --with-zlib-dir=/usr/lib > --with-freetype-dir=/usr/lib > --without-ttf > --with-mysql=/usr/local/mysql/ > --with-pgsql=/usr/local/pgsql/ > --with-curl=/usr/local/ > --with-gettext > --enable-ftp > --enable-xml > --with-zlib > --with-regex=system > --enable-dbase > --enable-dbx > --with-config-file-path=/usr/local/lib [lorenz@devel>>php-5.2.3]$ make [lorenz@devel>>php-5.2.3]$ cp sapi/cgi/php-cgi /data/www/cgi-bin Note: DO NOT do a “make install” 9. MapServer Installation steps: [lorenz@devel>>installer]$ tar –xzvf mapserver-5.0.2.tar.gz [lorenz@devel>>installer]$ cd mapserver-5.0.2 [lorenz@devel>>mapserver-5.0.2]$ ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-httpd=/usr/local/apache/bin/httpd --with-wfsclient --with-wmsclient --enable-debug
  • 5. --with-curl-config=/usr/local/bin/curl-config --with-proj=/usr/local --with-tiff --with-gd=/usr/local --with-jpeg --with-freetype=/usr/ --with-threads --with-wcs --with-postgis=/usr/local/pgsql/bin/pg_config --with-libiconv=/usr --with-geos=/usr/local/bin/geos-config --with-xml2-config=/usr/bin/xml2-config --with-sos --with-php=../php-5.2.3/ [lorenz@devel>>mapserver-5.0.2]$ make Note: DO NOT do a “make install” PHP MapScript installation steps; [lorenz@devel>>mapserver-5.0.2]$ cp mapserv legend scalebar /data/www/cgi-bin [lorenz@devel>>mapserver-5.0.2]$ mkdir /usr/local/lib/php/extensions [lorenz@devel>>mapserver-5.0.2]$ cp mapscript/php3/php_mapscript.so /usr/local/lib/php/extensions [lorenz@devel>>mapserver-5.0.2]$ cd /usr/local/lib Edit file php.ini and add two lines below: extension_dir = "/usr/local/lib/php/extensions" extension = "php_mapscript.so" Edit file /usr/local/apache/conf/httpd.conf and add two lines below: AddType application/x-httpd-php-cgi .phtml Action application/x-httpd-php-cgi /cgi-bin/php-cgi Restart apache (#/usr/local/apache/bin/apachectl restart) 10. Test PHP Mapscript To test PHP MapScript that already installed: Go into web root directory (/data/www/html) Create php file and add phpinfo() line into the file Save the file as info.phtml Open browser and point to http://localhost/info.phtml If installation is successful, the phpinfo page should contain part like this:
  • 6. To test drawing map, you can download simple demo application from http://www.londatiga.net/downloads/tutorial/phpmapscript-demo.tar.gz Installation steps: [lorenz@devel>>installer]$ cp phpmapscript-demo.tar.gz /data/www/html [lorenz@devel>>installer]$ cd /data/www/html [lorenz@devel>>html]$ tar –xzvf phpmapscript-demo.tar.gz [lorenz@devel>>html]$ chmod 777 tmp Open browser and point to http://localhost/phpmapscript-demo If all things running well it should display a map