[mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008

geographika geographika at gmail.com
Thu May 7 13:02:21 PDT 2015


Hi,

Definitely looks like a permissions issue.
Try granting read-access on the c:\MapData folder to "IIS 
AppPool\DefaultAppPool" user - assuming this is the application pool 
that MapServer and/or PHP is running under using CGI.
If that fails try granting "Everyone" read-only access to see if it is 
permissions.

Regards,

Seth

On 07/05/2015 20:41, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE wrote:
> I am making no progress on getting this working.  I did add the error_reporting(E_All) to the script, but I don't get any errors.  From the IIS log, it looks like the server is getting the request, php must be reading the script and calling the mini driver.  It looks like the gdal mini driver is trying to read the base imagery and is failing.  Here is a piece of the IIS log:
>
>   
> 2015-05-07 17:06:33 10.89.89.44 GET /mapserver/mapserv.exe map=content/servemap.map&service=WMS&request=GetMap&version=1.3&crs=CRS:84&layers=Land_Sea&styles=default&transparent=TRUE&format=image/png&width=512&height=512&bbox=-72.0,18.0,-36.0,54.0 80 - 10.89.89.191 Java/1.7.0_51 200 0 0 1875
> 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=7&Y=6 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0
> 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=6&Y=6 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 3221225595 718
> 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=8&Y=6 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0
> 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=6&Y=5 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0
> 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=7&Y=5 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 0
> 2015-05-07 17:06:33 127.0.0.1 GET /mapserver/content/tile.php T=Land-Sea&L=1&X=8&Y=5 80 - 127.0.0.1 GDAL+WMS+driver+(http://www.gdal.org/frmt_wms.html) 500 0 2147500037 15
>
> If I try to send the URL from a browser, I get back an error that says this:
>
> <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
> <!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1">
> <ServiceException>
> msDrawMap(): Image handling error. Failed to draw layer named 'Land_Sea'.
> drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed: c:\MapData\Land-Sea.xml, band 1: IReadBlock failed at X offset 9, Y offset 4
> </ServiceException>
> </ServiceExceptionReport>
>
> I really don't know how to troubleshoot this.  The pieces I have to work with are the map file, the layer XML files, for example Land-Sea.xml, the Tile.php script, (which seems to be working), and the tiled image set.  These same pieces work great with the same version of Mapserver, from GISInternals, on Windows 7 running IIS 7.  I'm thinking that this must be a permissions problem on Windows Server 2008.  Any ideas on where to go from here would be appreciated.
> Thanks,
> James
>
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna
> Sent: Thursday, May 07, 2015 5:48 AM
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] GDal Mini drivers and php script under IIS 7 on Windows Server 2008
>
>
> I would definitely head to the command prompt on the Windows machine, and then call php.exe through the commandline, passing it your .php file that is supposed to generate your map image, such as:
>
>     php myscript.php
>
> You might also make sure that your test php script shows all errors (I think it can be set directly inside your script with:
> error_reporting(E_ALL)  but I might be wrong on syntax...
>
> -jeff
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services http://www.gatewaygeomatics.com/
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



More information about the mapserver-users mailing list