A step by step installation and configuration guide to run GIS application in general and mapshup in particular within a linux box
A server with a fresh Ubuntu 12.10 server distribution installed
apt-get install python-software-properties
apt-get install software-properties-common
add-apt-repository ppa:ubuntugis/ubuntugis-unstable
apt-get update
apt-get upgrade
apt-get install git
apt-get install postfix
apt-get install fail2ban
apt-get install openjdk-6-jre
apt-get install apache2
apt-get install php5
apt-get install php5-curl
apt-get install php5-pgsql
apt-get install php-xml
apt-get install postgresql-9.1
apt-get install postgresql-9.1-postgis
# Contrib contains hstore extension
apt-get install postgresql-contrib-9.1
apt-get install gdal-bin
apt-get install python-gdal
Installation
apt-get install mapserver-bin
apt-get install cgi-mapserver
apt-get install libapache2-mod-mapcache
Configuration
Create mapcache directory
mkdir /home/mapcache
chown -R www-data:www-data /home/mapcache
Edit file /etc/apache2/mod-available/mapcache.conf
<IfModule mapcache_module>
<Directory "/home/mapcache/">
Order Allow,Deny
Allow from all
</Directory>
MapCacheAlias /mapcache "/home/mapcache/mapcache.xml"
</IfModule>
Restart apache
ln -s /etc/apache2/mods-available/mapcache.conf /etc/apache2/mods-enabled
/etc/init.d/apache2 restart