[Mapserver-users] PHP Mapscript with php 4.3.4 and apache 2.0.48

Vladimir Guzmán vguzman at maintask.com
Wed Nov 12 09:41:16 EST 2003


Enils Bashi wrote:

>Hi all,
>
>What Ed addresses is an issue I have been having as well. I would be
>interested to see what the problem is. I have latest mapserver built on
>Redhat 9 with Apache2 and php4.3.
>
>Enils Bashi
>Programmer - Chesapeake Bay Program
>Veridyne Incorporated
>Annapolis, Maryland: (410) 267-9833
>www.chesapeakebay.net
>
>
>
>-----Original Message-----
>From: Ed Martin [mailto:edman007x at mac.com]
>Sent: Monday, November 10, 2003 8:00 PM
>To: mapserver-users at lists.gis.umn.edu
>Subject: [Mapserver-users] PHP Mapscript with php 4.3.4 and apache
>2.0.48
>
>
>how do i get PHP mapscript to work with php 4.3.4 and apache 2.0.48, no 
>matter how i compile it i just get it to work, it keeps on saying that  
>php has to use the system regex but i can't get php to compile for 
>apache2 with the system regex
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
>  
>
I have a step by step guide, but with php 4.3.2RC3, maybe it could be of 
some help.:
(There was a bug in php 4.3.3 that made impossible mapscript's installation)

REDHAT 9.0 with the following rpms:
httpd 2.0.40-8
freetype 2.1.2-7
freetype-devel 2.1.2-7
libpng 1.2.2-6
libpng-devel 1.2.2-6
libjpeg 6b-21

->-> Uninstall curl

------------------------------------------
Install mysql:
mysql-standard-4.0.13-pc-linux-i686.tar.gz
------------------------------------------
#
tar -xzvf mysql-standard-4.0.13-pc-linux-i686.tar.gz
groupadd mysql
useradd -g mysql mysql
mv mysql-standard-4.0.13-pc-linux-i686 /usr/local/mysql
cd /usr/local/mysql
scripts/mysql_install_db
chown -R root  .
chown -R mysql data
chgrp -R mysql .
bin/mysqld_safe --user=mysql &
bin/mysqladmin -u root password 'yourpassword'

------------------------------------------
Install GD:
gd-2.0.12.tar.gz
------------------------------------------
#
tar -xzvf gd-2.0.12.tar.gz
cd gd-2.0.12
./configure --without-xpm --with-png=/usr --with-freetype=/usr/local 
--without-jpeg
make
make install

------------------------------------------
PHP:
php-4.3.2RC3.tar.bz2
------------------------------------------
#
tar -xjvf php-4.3.2RC3.tar.bz2
cd php-4.3.2RC3
./configure \
--enable-force-cgi-redirect \
--with-config-file-path=/etc \
--with-gd=/usr/local \
--disable-jpeg \
--without-jpeg \
--with-png-dir=/usr \
--with-freetype-dir=/usr \
--with-zlib-dir=/usr \
--without-ttf \
--with-mysql=/usr/local/mysql \
--with-regex=system \
--enable-dbase \
--enable-dbx \
--enable-versioning
make
make install

cp sapi/cgi/php /var/www/cgi-bin/

  Add the lines:

  AddType application/x-httpd-php-cgi .phtml .php
  Action application/x-httpd-php-cgi /cgi-bin/php

  To the /etc/httpd/conf/httpd.conf file

------------------------------------------
GDAL:
gdal-1.1.8.tar.gz
------------------------------------------
#
tar -xzvf gdal-1.1.8.tar.gz
cd gdal-1.1.8
./configure \
--with-libz=/usr \
--with-png=/usr \
--with-libtiff=internal \
--with-geotiff=internal \
--without-jpeg \
--without-jasper \
--without-python
make
make install

------------------------------------------
PROJ4:
proj-4.4.7.tar.gz
------------------------------------------
#
tar -xzvf proj-4.4.7.tar.gz
cd proj-4.4.7
./configure
make
make install

------------------------------------------
CURL:
curl-7.10.5.tar.gz
------------------------------------------
#
tar -xzvf curl-7.10.5.tar.gz
cd curl-7.10.5
./configure
make
make install

------------------------------------------
MAPSERVER:
mapserver-4.0b.tar.gz
------------------------------------------
#
tar -xzvf mapserver-4.0b.tar.gz
cd mapserver-4.0b
./configure \
--without-tiff \
--without-eppl \
--without-jpeg \
--with-threads \
--with-proj \
--with-gdal=/usr/local/bin \
--with-gd=/usr/local \
--with-png=/usr \
--with-freetype=/usr \
--with-ogr \
--with-gdal \
--with-wmsclient \
--with-wfs \
--with-wfs-client \
--with-php=../php-4.3.2RC3
make
cp mapscript/php3/php_mapscript.so 
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/


Best regards,

-- 
Vladimir Ilich Guzmán R.
------------------------
http://www.maintask.com 





More information about the mapserver-users mailing list