[mapserver-users] mapserver and php

Worth Lutz wal3 at mindspring.com
Mon Oct 29 09:43:28 PDT 2012


You do not have to install every thing listed on ubuntuGIS. Only what you
need with "apt-get"

Here are the steps I use to get Mapserver on my machine. Note the
python_software-properties must be added to get the apt-add-repository
needed to get the ubuntugis repository.


#
#  ++  update repositories  ++
sudo apt-get update
#
#  ++  upgrade installed packages  ++
sudo apt-get upgrade
#
#
# +++++  add repositories  +++++
#
# ++  install python-software-properties       ++
# ++  to get the "apt-add-repository" command  ++
sudo apt-get install python-software-properties
#
#  ++  add ubuntugis repository  ++
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
#
#  ++  update repositories  ++
sudo apt-get update
#
#
# ++++  PostGIS  ++++
#
apt-cache search postgis  # this just finds the postgis related stuff
sudo apt-get install             \
         postgis                 \
         postgresql-9.1-postgis
#
# ++++  MapServer  ++++
#
sudo apt-get install mapserver-bin php5-mapscript cgi-mapserver

Give this a try if you have not figured it out already.

Worth


-----Original Message-----
From: Vince Miller [mailto:vincentpmiller at yahoo.com] 
Sent: Sunday, October 28, 2012 11:44 AM
To: Worth Lutz
Subject: RE: [mapserver-users] mapserver and php

Thank you for your advice. My resistance to using the ubuntugis ppa stems
from my desire to install on my server ONLY mapserver and postgis, and other
things that these two require, and nothing else that is included in this
ppa. It's not clear to me how to do this.

Vince

--- On Sun, 10/28/12, Worth Lutz <wal3 at mindspring.com> wrote:

> From: Worth Lutz <wal3 at mindspring.com>
> Subject: RE: [mapserver-users] mapserver and php
> To: "'Vince Miller'" <vincentpmiller at yahoo.com>
> Date: Sunday, October 28, 2012, 5:49 AM
> Do you need to compile it yourself?
> 
> I use MapServer from the ubuntugis ppa:  
> 
> https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable
> 
> With this I have no trouble with PHP Mapscript.
> 
> Worth
> 
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org]
> On Behalf Of Vince Miller
> Sent: Saturday, October 27, 2012 7:40 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] mapserver and php
> 
> I'm trying to get Mapserver 6.0.3 running with Apache and
> PHP under Ubuntu
> 12.04. The Apache/Mapserver connection works, as does the
> apache PHP
> connection, but Mapserver won't talk to PHP. I try compiling
> Mapserver
> --with-php=/usr/local/src/mapserver-6.0.3/mapscript/php and
> it fails to find
> php_config.h or php_version.h, neither of which can be found
> anywhere in the
> php files, let alone in mapscript/php. What am I doing wrong
> here?
> 
> Thank youy very much for your help.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2013.0.2742 / Virus Database: 2617/5859 - Release
> Date: 10/28/12
> 
> 
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2742 / Virus Database: 2617/5860 - Release Date: 10/28/12




More information about the MapServer-users mailing list