Some Debian packages are available for Php5 and Mapserver[4]. For now only the cgi version of Php is available because of threading issues with Mapserver.
These packages have some dependencies on packages available in the so-called
Sarge Debian repository version. Thus, if you are using Debian Woody, you
will need to add the following lines to your
/etc/apt/sources.list:
#debian sarge deb http://ftp.<country>.debian.org/debian/ sarge main contrib
Of course, replace <country> by two-letter country code of your nearest mirror. See http://www.debian.org/mirror/list for the full mirrors list.
Add the following to your /etc/apt/sources.list :
# cartoweb deb http://dev.camptocamp.com/packages/debian/ sarge main deb-src http://dev.camptocamp.com/packages/debian/ sarge main
You may want to pin c2c packages higher than 1000 to have them preferred over
the upstream ones, even if downgrading. Add in /etc/apt/preferences:
Package: * Pin: release o=c2c Pin-Priority: 1100
To install Mapscript and PHP 5, type the following:
apt-get update apt-get install php5-mapscript
If want to install PostGIS and PostgreSQL:
apt-get install postgis
- Update your
/etc/php5-c2cms-cgi/php.inito load thephp_mapscript.soextension:extension=php_mapscript.so
- you may want to raise the memory limit:
memory_limit = 30M
[4] Some of the packages were inspired from http://agrogeomatic.educagri.fr/