[mapserver-users] MapServer Dont Draw
Gonzalo Lionel Rodriguez
gonzalo at sepp0.com.ar
Thu May 7 16:45:02 PDT 2009
dl() its allow in the php.ini the extension=php_mapscript.so load ok
and the mapserver is:
mapserv -v
MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7
INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE
if commenting the dl() line the strace result is:
<b>Fatal error</b>: Call to undefined function ms_newMapObj() in
<b>/home/orsep/public_html/test/pmapper-stable/incphp/globals.php</b>
on line <b>60</b><br />\n", 167<br />
<b>Fatal error</b>: Call to undefined function ms_newMapObj() in
<b>/home/orsep/public_html/test/pmapper-stable/incphp/globals.php</b>
on line <b>60</b><br /
Any ideas?
Kind regards.
2009/5/7 Gregor at HostGIS <gregor at hostgis.com>:
>> Warning: dl() has been disabled for security reasons in
>> /home/orsep/public_html/test/pmapper-stable/incphp/globals.php
>> on line 51
>
> That says it all: Your PHP installation does not allow you to load PHP
> modules, such as MapScript. So running a MapScript-based app, just isn't
> going to happen unless you ask your sysadmin to allow you to use dl()
>
> A long shot, but worth a try: Try commenting out the dl() line in
> globals.php:51 and see whether the app begins working.
>
> If so, it means that they pre-loaded MapScript for you and that you don't
> need to dl() it.
>
> If not, then you'll have to ask them very nicely to pre-load MapScript in
> the php.ini file, or get another web provider. (not to plug for ourselves,
> but we do map-friendly hosting; see signature)
>
> --
> HostGIS, Open Source solutions for the global GIS community
> Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
> Network+ Server+ A+ Security+
>
More information about the MapServer-users
mailing list