[maplab-users] MapLab install

Paul Spencer
Wed, 26 Jun 2002 22:39:45 -0400

Thanks for taking the time to try out maplab.  Seems like you have two
questions, I'll answer the easy one first :)

1. X next to GIF in Supported Image Types (GD)

- GD is the library used by PHP (in this case) to draw images.  On
Windows, the GD library does not come with GIF support by default due to
licensing restrictions.  If you have purchased the right to use lzw
compressed GIFs then I believe you can recompile PHP with GIF support.
So, the answer to your implied question is that this is not an error.
This is simply an indication to you to set up MapLab and your Map files
to use another image type.  In this case, you probably should use PNG or
JPEG.  You can set MapLab to use PNG by opening the configuration page
and setting the image_type parameter to PNG.

2. MapScript not found.  PHP supports loading modules at run time.  On
Windows, these modules are usually in the extensions directory of the
php install and are named something like php_xxxx.dll.  You have the
php_mapscript_xx.dll file in the right place since it displayed the
correct information in the test.php page.  Because new versions come
out, we have allowed the name of the php_mapscript_xx.dll file to be
configurable through the configuration tool.  The most likely cause of
this problem is that you have the wrong name in the configuration tool.
Open the configuration editor from the maplab main page (next to the
info icon) and on the maplab tab, look for a parameter called
mapscript_module.  You need to set this to the name of the file in your
extensions directory, probably php_mapscript_36.dll.  If this is already
set correctly, pls let me know.  Also, try creating a php page with the

dl("php_mapscript_xx.dll"); //replace filename with the one in your
extensions directory

And load this in your browser.  You should see no errors at the top of
the page and near the bottom you should see a MapScript section with the
same output.  If that works and MapLab doesn't, send another msg and
we'll try to troubleshoot this more directly for you.

Hope this helps

Paul Spencer
Applications and Software Development
DM Solutions Group

> -----Original Message-----
> From: 
> [] On Behalf Of TCHaddad
> Sent: Wednesday, June 26, 2002 8:44 PM
> To:
> Subject: [maplab-users] MapLab install
> Hello,
> We are working on installing MapLab, but didn't previously 
> have php or mapscript installed. Apologies in advance for 
> what is probably a very basic question from non-PHP types!
> We've tried following all the docs carefully, but are still 
> running into a problem whose origin we don't understand (is 
> it from our PHP, Mapscript, or MapLab install?)
> our setup is as follows:
> Win 2k, IIS 5.0
> MapServer 3.6
> php 4.1.2
> when we look at test.php, everything seems to look ok, and we 
> see the following under the heading of Mapscript:
> MapScript Version ($Revision: 1.104 $ $Date: 2002/04/24 
> 20:37:32 $) MapServer version 3.6.0 OUTPUT=GIF OUTPUT=PNG 
> This didn't really look like an error, so we continued on to 
> install MapLab. 
> We are now at the point where MapLab is installed (we can see 
> the app and it looks good!) but when we look at the MapLab 
> info.phtml file we see under the "MapScript Information" section:
> Version : Mapscript Not Found - configuration Problem?
> and under "Supported Image Types - Enabled?", none of the 
> types are checked (GIF, PNG, JPEG, WBMP).
> Further down the page, under "Required Modules (if enable_dl 
> is off) - Loaded ?" there is a "No" next to Mapscript, and 
> under "Supported Image Types (GD) - Enabled?" there is a "No" 
> next to GIF.
> It seems like either:
> a) Mapscript is incorrectly installed (we didn't know how to 
> test this) or 
> b) MapLab simply can't find Mapscript (we're not sure how to 
> help MapLab find Mapscript).... 
> any advice at all as to what files to check for correct 
> configuration would be great.
> many thanks,
> Tanya
> _______________________________________________
> Maplab-users mailing list
>> aplab-users

This archive was generated by Pipermail.