To Frank Barrett
Carlos Eduardo Sibaja Salazar
carloseduardo at COSTARRICENSE.CR
Thu Aug 25 08:16:41 PDT 2005
Hi Frank. I'll try to explain you what did i do.
1) I didn't work with the Apache provided by default in suse. I downloaded
the source of the Apache 2.0.52 version. I install apache with somethig
like this:
./configure --prefix=/usr/local/apache
make
make install
2) Then i installed php 5.0.3 with:
./configure --prefix=/usr/local/php
--with-apxs2=/usr/local/apache/bin/apxs
--with-regex=system --with-mysql --with-pgsql
--with-gd=/usr/local/gd --with-jpeg-dir=/usr/local/jpeg
--with-zlib-dir=/home/carloseduardo/Servidor/php5/php-5.0.3/ext/zlib
--with-freetype-dir=/usr/local/freetype
make
make install
You need to read the Readme files in the source of php to be sure that is
installed good.
3) Then i installed mapserver 4.4.1 with something like this:
./configure --with-wmsclient --with-gd --with-freetype --with-png
--with-proj --with-gdal --with-tiff --with-postgis
--with-php=/home/carloseduardo/Servidor/php5/php-5.0.3/
make
make install
Then i copied the mapserv file to /usr/local/apache/cgi-bin/ and the
php_mapscript.so to the extensions directory established in the php.ini
file. In my case is /usr/local/php/extensions/
To be sure that php_mapscript is installed fine, you need to execute a php
file with this code:
<HTML>
<?php
dl("php_mapscript_40.so");
phpinfo();
?>
</HTML>
One of the tables showed in the page have to be about Mapscript.
I hope this can help you. And excuse me for my poor english.
Carlos
More information about the MapServer-users
mailing list