[mapserver-users] Installation Problem

Hankley, Chip Chip.Hankley at gasai.com
Thu Oct 10 16:06:18 EDT 2002


Frank... you most likely are running into a permissions problem. Look
carefully at the permissions that are set on the working box. The default
web user needs to have read access to the PHP directory. If you are REALLY
desperate, just give the web user FULL CONTROL on everything in the
laptop... this, of course, would be ridiculous in a live environment... but
that shouldn't matter for your presentation purposes.

-----Original Message-----
From: LaFone, Frank [mailto:flafone at GEO.WVU.edu]
Sent: Thursday, October 10, 2002 12:40 PM
To: 'Daniel Morissette'; LaFone, Frank
Cc: mapserver-users at lists.gis.umn.edu
Subject: RE: [mapserver-users] Installation Problem


Ok, I've tried this track with no luck.  I downloaded PHP4.2.3 from php.net
and edited the php.ini file to point extentions to a directory called
extentions in the php dir.  Then I placed the php_mapscript.dll file in the
extetions directory.  It's still telling me it's unable to load
C:/php/extentions/php_mapscript.dll

The thing that puzzles me about it is that I have it working just fine on
one machine, but can't seem to get the application installed on a different
machine.  Any ideas where I can turn next?

-----Original Message-----
From: Daniel Morissette [mailto:morissette at dmsolutions.ca]
Sent: Wednesday, October 09, 2002 5:12 PM
To: LaFone, Frank
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [mapserver-users] Installation Problem


PHP looks for php_mapscript.dll in the directory defined by
'extension_dir' in the php.ini.  So I would suggest that you open your
php.ini (should be in C:\windows or C:\windows\system), look for the
value of extension_dir ... and place php_mapscript.dll in that
directory.

You can also find that information using phpinfo().  Create a small
phpinfo.php file on your server with the following line in it, and look
for the value of extension_dir in the outpout:

  <?php phpinfo(); ?>


If extension_dir is set to "./" in your php.ini then you need to set it
to the absolute path where all your PHP extension DLLs are located. 
Assuming that you installed PHP under C:\PHP4 then you probably have a
C:\PHP4\extensions or equivalent with a bunch of php_*.dll files in it. 
Use the path to this directory as extension_dir and place
php_mapscript.dll in that directory.

Daniel


"LaFone, Frank" wrote:
> 
> Hi, I downloaded 3.6 months ago, installed it on one system, and got it
> running smooth as glass.  I developed a project using php mapscript that
> works wonderful on one machine running Windows 2000, Apache, and Php (4.X
I
> believe).
> 
> Now I'm trying to get the same project loaded on a laptop for demo
purposes
> (where I won't have an Internet connection).  When I try to run my mapping
> project, I get the error where it says it can't load the
php_mapscript.dll.
> I have that file located in Apache's root document dir, the PHP directory,
> and in the project directory.  Does anyone know where it would naturally
> look for this dll?  Or more generally, can someone give me any hints why I
> can't get this darn thing working?
> 
> That'll teach me to wait 2 days before a presentation to test the system..
> 
> Thanks in advance,
> 
> Frank LaFone



More information about the mapserver-users mailing list