[Mapserver-users] Mapscript problems

Vincent Schut schut at sarvision.com
Thu Jul 17 08:25:58 PDT 2003


Hi Joe,

probably php actually does compile with the system-regex, but you keep using 
your old version of php... The --prefix option points to the dir where php 
gets installed. That means that your php cgi executable will end up in 
something like /usr/local/www/php/bin/, which is probably  not in your path 
and also not where apache looks for to launch the php cgi executable. You 
best set --prefix to something like /usr/local/phpcgi if you want to have 2 
seperate version of php (probably the php that came with your linux 
distribution has been installed in /usr/, and I guess you did not uninstall 
it so it will be there still). After installing php in /usr/local/phpcgi (or 
whatever you want, but I discourage installing anyting in directories beneath 
your webroot, it is asking for security problems!) you will have to tell 
apache in its httpd.conf file that it should launch the php cgi exe for .php 
(or .phpms or whatever you like) files. And of course you should have copied 
the just installed php executable to your cgi-bin directory.
You can find more about this in the wiki: 
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerCompilation , read on 
from here.

Good luck,
Vincent.

On Thursday 17 July 2003 17:04, Joe Smith wrote:
> Hi,
> I have been working with mapserver for a few weeks now without too much
> trouble, but I've run into some problems trying to get mapscript to
> compile. It runs fine without the --with-php option, but I'm looking to add
> more functionality.  I'm actually trying to get mapscript compiled in two
> places - my local linux box where i do the editing, and on the web server.
> It doesn't seem to work on either.
>
> Here's the specs/problem on the local box:
> Linux 9, apache 2.0.47, php 4.3.2, mapserver 3.6.6
>
> I know what the problem is ; php isn't compiling with
> the --with-regex=system like it should, and I don't know why.  I checked
> phpinfo and the regex section didn't have anything about system.  I compile
> php like this:
>
> ./configure \
> 	--prefix=/usr/local/www/php \
>       --with-config-file-path=/usr/local/www/php \
>       --enable-track-vars \
> 	--enable-force-cgi-redirect \
> 	--with-regex=system \
> 	--with-mysql \
> 	--with-zlib \
> 	--without-ttf
> make
> make install
> cp -p php.ini-recommended /usr/local/www/php/php.ini
>
> I tried removing config.cache like some of the posts suggested (and make
> clean), but it did not work.  I'm still getting familiar with linux/unix so
> I wouldn't really know where to look if it was using some old version of a
> file in the compile.
>
>
> Here's the specs/problem on the web server:
> FreeBSD 4.4, apache 1.3.22, php 4.0.6, mapserver 3.6.6
>
> When I try to make mapserver, I get this:
>
> A bunch of undefined references when it gets to php_mapscript.so
> "Stop in /usr/home/joe/mapserver/mapscript/php3"
> "*** Error code 1"
>
> Here's my configure line for mapserver:
> ./configure --with-gd=/usr/local --with-php=/usr/local/www/include/php
>
> I do have root access, and apache and php were already running so I don't
> want to mess with them if I don't have to, since it's a virtual server (I
> could probably recompile php though).  Is anyone familar with either of
> these problems or have any ideas?  Thanks in advance!
>
> Joe
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

-- 
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com



More information about the MapServer-users mailing list