Php4 vs PHP5

david techer davidtecher at YAHOO.FR
Thu Sep 29 02:17:20 PDT 2005


Hi Fabio

I'm on a Debian like you.

I've built both mapscript 4.6.1 and php 5.0.5 from sources

For my tasks at my job, there is no problem using both.

I've installed php as CGI

Here is my PHP configure line:

./configure --enable-fastcgi --with-config-file=/usr/lib/cgi-bin/php.ini \
--with-gd=/usr --with-pdflib=/usr/local --with-png-dir=/usr \
--with-freetype-dir=/usr --with-zlib=/usr --with-pgsql \
--with-regex=system --enable-dbase --enable-dbx \
--with-jpeg-dir=/usr --enable-versioning --with-mysql \
--with-ming

For MapServer:

./configure --without-tiff --with-jpeg=/usr --with-png=/usr --with-threads --with-proj \ 
--with-postgis --with-pdf --with-mapscript --with-gdal=/usr/local/bin/gdal-config \
--with-gd=/usr --with-freetype=/usr --with-ogr --with-wmsclient --with-wfs --with-wfsclient \
--with-php=/home/david/src/PHP/php-5.0.5  --with-geos --with-ming

For a better use and a first try, I think it's not worth using 'Flash Support' (--with-ming) and
  'PDFLIB Support' (-with-pdflib) if U don't want to have it

However, here is what I did to have it

Info: 
- PDFLIB version is 5.0.3. It is not yet supported (but I need it for my job)
    New versions from 6... are available so U can use it.
    Download it then ./configure && make && make install
    

- Ming has been built from CVS. In ming/util/read.h, replace 'static int gIndent;' by ' 'static int gIndent;' in order to compil it
    then 
          make
          make install
  Remove everything from your-php-sources/ext/ming/
  Copy everything from your-ming-sources/php_ext/ to  your-php-sources/ext/ming/
  Return to your php-sources directory
  cd your-php-sources/
  buildconf --force  
  Then
      ./configure .... .... --with-ming --with-pdflib=/usr/local

Regards

--david;
-------------------------------------------------
Jean David TECHER
01MAP
35 Allée d'Irlande
34080 Montpellier
France
Tél: 04 67 45 60 27
e-mail: davidtecher(at)yahoo(dot)fr
sites: http://www.postgis.fr
       http://techer.pascal.free.fr/postgis/
-------------------------------------------------



Fabio Zottele a écrit :

> Hi! I am using Apache2-prefork (Debian package) and php4 -DSO(Dabian 
> package) on a Debian testing. I want to install mapserver4.6.1 from 
> source code. I know I must re-compile php as a CGI, but I would also 
> migrate from php4.4 to php5.
> I read some old issues about php_mapscript.so and php5 in mailing list.
> Is still impossible to compile php_mapscript against php5 or the php5 
> support is still in developement stage?
> Thank you in advance.
> Fabio Zottele
>

	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com



More information about the MapServer-users mailing list