[mapserver-users] finding php_mapserver.so

Tim McGeary tmm8 at Lehigh.EDU
Thu May 1 10:50:12 EDT 2008


No, it isn't there.  I did a:

    find / -name php_mapscript.so

and it came up with nothing.  So it isn't on the server at all.  Yes, I
did install Mapserver from source.

Here's what is in mapscript/php3

[root at rust php3]# pwd
/usr/local/mapserver-5.0.2/mapscript/php3
[root at rust php3]# ls -l
total 716
drwxr-xr-x  2 root root   4096 Jan 28 10:56 examples
-rw-r--r--  1 root root   2103 Jul 26  2004 hashtable_i.c
-rw-r--r--  1 root root   4344 Apr 29 15:37 Makefile
-rwxr-xr-x  1 root root   3770 Jun 11  2007 Makefile.in
-rwxr-xr-x  1 root root   2097 Feb 14  2006 Makefile.vc
-rwxr-xr-x  1 root root  34328 Aug 16  2007 mapscript_i.c
-rw-r--r--  1 root root   1049 Feb 14  2006 nmake.opt
-rwxr-xr-x  1 root root 502728 Jan  8 12:04 php_mapscript.c
-rwxr-xr-x  1 root root  16760 Aug 16  2007 php_mapscript.h
-rw-r--r--  1 root root  17046 Jun 15  2007 php_mapscript_util.c
-rw-r--r--  1 root root   7450 Jun 15  2007 php_mapscript_util.h
-rw-r--r--  1 root root  25958 Jun 14  2005 php_proj.c
-rw-r--r--  1 root root   3103 Jul 23  2007 php_regex.c
-rwxr-xr-x  1 root root  68315 Jan  8 12:04 README
-rwxr-xr-x  1 root root   3821 Jun 21  2001 README.WIN32

Thanks,
Tim

Tim McGeary
Senior Systems Specialist
Lehigh University
610-758-4998
tim.mcgeary at lehigh.edu
Google Talk: timmcgeary
Yahoo IM: timmcgeary

Kyle Wilcox wrote:
> If you installed Mapserver from source with the  ---with-php=DIR option 
> and everything went ok, the php_mapscript.so file will be located in the 
> mapscript/php3/ directory.  Copy this file to your PHP extensions 
> directory.   You can find the extensions directory by doing a ]$ php -i 
> | grep extension_dir.
> 
> You may want to rename php_mapscript.so to something like 
> php_mapscript_MAPSERVERVERSION.so.
> 
> There a setting in the pmapper config files called msVersion.  You must 
> set this to MAPSERVERSION if you change the name of the file.
> 
> 
> Tim McGeary wrote:
>> So our installation of Mapserver, in combination, with PMapper, we are 
>> getting an error that it cannot find php_mapserver.so.  While I 
>> configured Mapserver to work with PHP, and it went through fine, I 
>> cannot find the php_mapserver.so file anywhere on my server.
>>
>> Was it supposed to be delivered in the mapserver package?  If so, 
>> where would it have gone?  If not, where can I find it?
>>
>> Thanks,
>> Tim
>>
> 



More information about the mapserver-users mailing list