[Mapserver-users] Mapscript problems

Vincent Schut schut at sarvision.com
Fri Jul 18 01:42:11 PDT 2003


Hi Joe,

Is there some more info in the apache error log about why mapscript could not 
be loaded/seen?
My first quess is that you did not recompile mapserver after the correct 
install of php? You will have to recompile mapserver (make clean, ./configure 
--....., make), configurering with the --with-php=/usr/local/phpcgi for it to 
compile against the correct php files. Then copy the mapserv and 
php_mapscript.so files in their directories, make sure you overwrite the old 
ones. Then try again.
But maybe your apache log hints to some other thing than this.

Regards,
Vincent.

On Thursday 17 July 2003 22:34, Joe Smith wrote:
> Thanks Vincent, one problem solved.  I successfully compiled php into
> /usr/local/phpcgi (where I put php.ini and php_mapscript.so).  Apache loads
> php as a cgi, and phpinfo() works fine, but it doesn't see my
> php_mapscript.so module.  I'm not sure if it's a setting in a file or if
> it's compiled wrong, although I didn't get any errors.  It sees the correct
> php.ini file, and I changed the extension_dir to be "/usr/local/phpcgi"
> just so I knew where it was looking for sure, and it still doesn't see it.
>
> Joe
>
> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu
> [mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Vincent
> Schut
> Sent: Thursday, July 17, 2003 11:26 AM
> To: Joe Smith; mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] Mapscript problems
>
>
> 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.
> >
> >
> > 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
> _______________________________________________
> 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

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



More information about the MapServer-users mailing list