[Mapserver-west] What platform/operating system you running?

Aaron Racicot aaronr at ecotrust.org
Mon Mar 21 13:09:20 EST 2005


Since I just moved to this new job, (Ecotrust) I set up a new
development box here at work 2 weeks ago.  It is a custom built Intel
based server:

Casedge TS1-3G chassis, w/o power supply, black/silver
400w power supply
Intel D915GAGL motherboard
Intel Pentium 4 530, 3.0Ghz LGA775 800Mhz FSB
2GB PC3200 DDR in a two-channel configuration
(2) Seagate 200GB SATA drives
Samsung CD/RW
(all less than $1100)

I am running Fedora Core 3 and things are going well... very stable and
no problems so far.  I used to run Redhat AS3 at my last job, but to
expensive for the non-profit world.

I am interested in getting some others here at Ecotrust to try to start
running Mapserver on their desktops (2000 and XP boxes) with the MS4W
package.  I have not had much experience running Mapserver in the
windows environment or trying any of the pre-canned versions people are
coming up with.  I am a roll your own kind of guy!

I have included my installation history below which also shows where I
got all of the utilities and their versions.  Who knows, maybe it will
help someone during the install process in the future.

Aaron

++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++
Revised by APR - 03/10/05

+++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
ECOTRUST - 

Initial machine configuration
Tim Sigler Built

Intel Box, 2 Gig main memory
2 - 200 Gig SATA drives
Redhat Fedora Core 3 + Updates

RPMS located in:
/src/RPMS/
All tar balls and packages located in:
/src/package_name

+++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++


1) First check if what we need is there and make initial clean-up

[aaronr at pearl ~]$ rpm -qa | grep ming
mingetty-1.07-3
**Need to get Ming**

[aaronr at pearl ~]$ rpm -qa | grep pdflib
**Need to get pdflib**

[aaronr at pearl ~]$ rpm -qa | grep freetype
freetype-2.1.9-1
freetype-demos-2.1.9-1
freetype-devel-2.1.9-1
freetype-utils-2.1.9-1
**Freetype is good to go**

[aaronr at pearl ~]$ rpm -qa | grep libjpeg
libjpeg-6b-33
libjpeg-devel-6b-33
**Libjpeg is good to go**

[aaronr at pearl ~]$ rpm -qa | grep libpng
libpng10-1.0.18-1.fc3
libpng-devel-1.2.8-1.fc3
libpng-1.2.8-1.fc3
libpng10-devel-1.0.18-1.fc3
**Libpng is good to go**


Need to get rid of the following to get ready to re-install custom

GD::
gd-2.0.28-1.30.1
gd-devel-2.0.28-1.30.1

rpm -e --nodeps gd-2.0.28-1.30.1
rpm -e --nodeps gd-devel-2.0.28-1.30.1

PHP::
php-4.3.10-3.2
php-devel-4.3.10-3.2

rpm -e --nodeps php-4.3.10-3.2
rpm -e --nodeps php-devel-4.3.10-3.2

+++++++++++++++++++++++++++++++++++

2) RPM magic - Install Ming and Pfdlib

All RPMS that were installed are stored in the /src/RPMS directory

MING::
[root at pearl ming]# wget
ftp://194.199.20.114/linux/PLD/current/dists/ra/PLD/i386/PLD/RPMS/ming-0
.2a-5.i386.rpm
[root at pearl pdflib]# rpm -Uvh pdflib-4.0.3-4.i386.rpm
warning: pdflib-4.0.3-4.i386.rpm: V3 DSA signature: NOKEY, key ID
e01260f1
Preparing...                ###########################################
[100%]
   1:pdflib                 ###########################################
[100%]


PDFLIB::
[root at pearl pdflib]# wget
ftp://194.199.20.114/linux/PLD/current/dists/ac/ready/i386/pdflib-4.0.3-
4.i386.rpm
[root at pearl ming]# rpm -Uvh ming-0.2a-5.i386.rpm
warning: ming-0.2a-5.i386.rpm: V3 DSA signature: NOKEY, key ID e01260f1
Preparing...                ###########################################
[100%]
   1:ming                   ###########################################
[100%]

+++++++++++++++++++++++++++++++++++

3) Update ldconfig
Add /usr/local/lib to /etc/ld.so.conf
Run : /sbin/ldconfig

+++++++++++++++++++++++++++++++++++

4) Proj.4

mkdir proj4
cd proj4/
wget ftp://ftp.remotesensing.org/pub/proj/proj-4.4.9.tar.gz
tar -xzvf proj-4.4.9.tar.gz
cd proj-4.4.9
cd nad/
wget ftp://ftp.remotesensing.org/pub/proj/proj-nad27-1.2.tar.gz
tar -xzvf proj-nad27-1.2.tar.gz
cd ..
make
ls
./configure
make
make install
which proj

+++++++++++++++++++++++++++++++++++

5) GDAL

mkdir gdal
cd gdal/
wget http://gdal.org/dl/gdal-1.2.5.tar.gz
tar -xzvf gdal-1.2.5.tar.gz
cd gdal-1.2.5
./configure 
make ogr-all
make install
which gdalinfo

+++++++++++++++++++++++++++++++++++

6) GD

mkdir gd
cd gd
wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
tar -xzvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure
make
make install

+++++++++++++++++++++++++++++++++++

7) POSTGRESQL

mkdir postgresql
cd postgresql
wget
ftp://ftp3.us.postgresql.org/pub/postgresql/v8.0.1/postgresql-8.0.1.tar.
gz
tar -xzvf postgresql-8.0.1.tar.gz
cd postgresql-8.0.1

NOTE the LDFLAGS here... this is to support GEOS for postGIS
LDFLAGS=-lstdc++ ./configure --with-perl

gmake
gmake install


Add the shared library path to /etc/ld.so.conf :
/usr/local/pgsql/lib
Run /sbin/ldconfig

Run make install in the ./doc directory to install the documentation

Finally add the following to the profile file to make paths available:
PATH=$PATH:/usr/local/pgsql/bin
MANPATH=$MANPATH:/usr/local/pgsql/man
export MANPATH

Add the postgres user
useradd postgres
passwd postgres (postpass)

There is already a data repository location at:
/var/lib/pgsql

LOG IN AS POSTGRES!!!
Make a database and launch Postgres
[postgres at localhost pgsql]$ initdb ./data
[postgres at localhost data]$ postmaster -D ./data > ./data/logfile.txt
2>&1 &

Add new user
[postgres at localhost bin]$ ./createuser
Enter name of user to add: xxx
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) y
CREATE USER
[postgres at localhost bin]$

+++++++++++++++++++++++++++++++++++

8) PHP

First get the new version:
mkdir php
cd php
wget http://us2.php.net/get/php-4.3.10.tar.gz/from/this/mirror
tar -xzvf php-4.3.10.tar.gz
cd php-4.3.10

./configure --enable-force-cgi-redirect
--with-config-file-path=/etc/httpd/ --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
--without-ttf --with-mysql --with-regex=system --enable-dbase
--enable-dbx --enable-versioning --with-pgsql=/usr/local/pgsql

make
make install

strip sapi/cgi/php
cp sapi/cgi/php /var/www/cgi-bin/
cp php.ini-dist /etc/httpd/php.ini

Made the following mod to /etc/httpd/php.ini:
; Directory in which the loadable extensions (modules) reside.
;extension_dir = "./"
extension_dir = "/etc/httpd/php_mods"

mkdir /etc/httpd/php_mods

Added the following to /etc/httpd/conf/httpd.conf

#
# For PHP scripts as CGI-BIN
#
AddType application/x-httpd-php-cgi .php .php4 .php3 .phtml
Action  application/x-httpd-php-cgi /cgi-bin/php


Now re-start the server:
/etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

+++++++++++++++++++++++++++++++++++

9) GEOS

mkdir geos
cd geos
wget http://geos.refractions.net/geos-2.1.1.tar.bz2
tar -xjvf geos-2.1.1.tar.bz2
cd geos-2.1.1
./configure
make
make install

+++++++++++++++++++++++++++++++++++

10) POSTGIS

Just make sure that the Postgresql is configured with the LDFLAGS
variable set and that the GEOS software is downloaded and installed from
Refractions.

mkdir postgis
cd postgis
wget http://postgis.refractions.net/postgis-1.0.0-rc3.tar.gz
tar -xzvf postgis-1.0.0-rc3.tar.gz
cd postgis-1.0.0-rc3

Changed the following for Makefile.config

USE_PROJ ?= 1
USE_GEOS ?= 1
PGSQL_SRC=/src/postgresql/postgresql-8.0.1

make
make install

Now we can create the database:
createdb -O postgres ecotrust_test
createlang -U postgres plpgsql test
psql -f ./lwpostgis.sql -d test

(if you get an error here it is most likely because you did not do a
/sbin/ldconfig after changing 
/etc/ld.so.conf to contain the /usr/local/lib directory.)

+++++++++++++++++++++++++++++++++++

11) MAPSERVER

**** ended up having to use mapserver-4.2.5 due to conflicts with maplab
in the projection function *****

mkdir mapserver
cd mapserver
wget http://cvs.gis.umn.edu/dist/mapserver-4.2.5.tar.gz
tar -xzvf mapserver-4.2.5.tar.gz
cd mapserver-4.2.5
./configure --with-jpeg --with-gd --with-freetype --with-zlib --with-png
--with-pdf --without-tiff --with-proj --with-threads --with-ogr
--with-gdal --with-postgis --with-wfs --with-wmsclient --with-wfsclient
--enable-debug --with-php=/src/php/php-4.3.10
--with-sde=/src/arcsde_client/sdeexe83 --with-sde-version=83
make
cp legend mapserv scalebar /var/www/cgi-bin/
cp mapscript/php3/php_mapscript.so /etc/httpd/php_mods/

+++++++++++++++++++++++++++++++++++

12) MAPLAB

mkdir maplab
cd maplab
wget http://www.maptools.org/dl/maplab-2.2.tar.gz
tar -xzvf maplab-2.2.tar.gz
cd maplab-2.2

Unpack and point the html directory at it


+++++++++++++++++++++++++++++++++++





-----Original Message-----
From: mapserver-west-bounces at lists.maptools.org
[mailto:mapserver-west-bounces at lists.maptools.org] On Behalf Of Tyler
Mitchell
Sent: Sunday, March 20, 2005 8:15 PM
To: mapserver-west at lists.maptools.org
Subject: [Mapserver-west] What platform/operating system you running?

I'm always curious to know more about the operating systems people are
running 
MapServer on.  What about you?  I run it on SuSE Linux for
web-accessible 
production sites and on Windows XP for internal corporate tests.  
On Windows, for quick testing and out of the box functionality I use the

MapServer For Windows (MS4W) package from http://www.maptools.org/ms4w/.

On Linux I usually compile my own but need to give the FGS package a try

sometime soon.  We started this project a while back and it has since 
permutated a bit, but it is a great first cut of an online installer for

modern Linux platforms.  See http://www.maptools.org/fgs/

What about you?

Tyler
_______________________________________________
Mapserver-west mailing list
Mapserver-west at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/mapserver-west



More information about the Mapserver-west mailing list