mapserver on Fedora Core 3
Install from cd Fedora :
- Apache
- MySql
- LibGD
- LibPNG
- LibGif
- LibJPEG
download all requirement files :
is a translator library for raster geospatial data formats that is released under an X/MIT style Open Source license.
Cartographic Projections Library
is a highly scalable, SQL compliant, open source object-relational database management system.
PostGIS adds support for geographic objects to the PostgreSQL object-relational database.
is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
Installing :
extract source file, go to source directory and type :
./configuremake allmake install
# extract source file, go to source directory and type :
./configuremake allmake install
# extract source file, go to source directory and type :
./configure --with-perl LDFLAGS=-lstdc++gmakegmake checkgmake install
useradd postgresql
su - postgres
# in postgres shell :
/usr/local/pgsql/bin/initdb -D /directory/postgre-database
/usr/local/pgsql/bin/postmaster -D /directory/postgre-database >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test
/q
exit
# copy directory postgis into /postgresql-source-dir/contrib/
# example :
cp -R postgis-0.7.5 postgresql-7.3.4/contrib/
cd postgresql-7.3.4/contrib/postgis-0.7.5
# if you want to enable PROJ4 , edit the Makefile to enable it
gmake
gmake install
LD_LIBRARY_PATH=/usr/local/pgsql/lib
export LD_LIBRARY_PATH
PATH=/usr/local/pgsql/bin:$PATH
export PATH
MANPATH=/usr/local/pgsql/man:$MANPATH
export MANPATH
/sbin/ldconfig /usr/local/pgsql/lib
cp /postgresql-source-dir/contrib/start-scripts/linux /etc/init.d/postgresql
# edit /etc/init.d/postgresql matching your database instalation.
chmod +x /etc/init.d/postgresql
chkconfig --add postgresql
# edit postgresql.conf to enable tcp/ip connection
# start postgresql
/etc/init.d/postgresql start
su - postgres
/usr/local/pgsql/bin/createlang plpgsql test
/usr/local/pgsql/bin/psql -f /usr/local/pgsql/share/contrib/postgis.sql test
/usr/local/pgsql/bin/psql -f /usr/local/pgsql/share/contrib/spatial_ref_sys.sql test
# extract source file, go to source directory and type :
./configure --with-mysql --with-pgsql --with-gd --with-jpeg-dir=/usr/ --with-png-dir=/usr/ --with-freetype-dir=/usr/ --enable-gd-native-ttf --with-regex=system --enable-dbase --enable-calendar --enable-ftp --with-zlib --enable-bcmath --with-gettext=/usr/ --with-mysql-sock=/var/lib/mysql/mysql.sockmake allmake install
cp /php-source-dir/php.ini-dist /usr/local/lib/php.ini
./configure --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-php=replace-with-php-source-dir/ --with-gd=/usr/ --with-postgis=/usr/local/pgsql/bin/pg_config --with-wmsclientmake allln -s /usr/local/lib/libgdal.so.1 /usr/lib/libgdal.so.1mkdir /usr/local/lib/php/extensionscp /mapserver-source-dir/mapscript/php3/php_mapscript.so /usr/local/lib/php/extensions/php_mapscript.socp /mapserver-source-dir/mapserv /var/www/cgi-bin/mapserv
extension_dir = "/usr/local/lib/php/extensions/"enable_dl = "on"
#on Dynamic Extension , add :
extension = php_mapscript.so
ScriptAlias /php/ "/usr/local/bin/"AddType application/x-httpd-php .php4 .php3 .phtml .phpAction application/x-httpd-php /php/php

what a nice blog…mmhh…seems that i’d like to try it…u rocks man!
Comment by rwiyudha — August 24, 2005 @ 3:15 am
bagiamna kalau install pake webhosting gratisan klo gak mengijinkan pake shell account, soalnya dinas kesehatan bondwoso butuh web-mapping fasilitas kesehatan
Comment by uky2k — September 1, 2005 @ 3:11 am
your link for gdal and others not set
Comment by ashok — October 10, 2007 @ 11:21 am
In which country do you live?
Comment by browser firefox web — March 18, 2008 @ 11:13 pm