|
||||
[maplab-users] dl() not working for MapScript...Paul Spencer pagameba@magma.caTue, 20 Jan 2004 22:05:03 -0500 (EST)
|
Mike, you have PHP set up as a module with IIS. When PHP is loaded as a module, the dl () function is disabled and you have to pre-configure your php.ini's modules section to load all required extensions (MapLab requires mapscript, gd and dbase AFAIK). That being said, MapScript is only just becoming safe to run as a module and has not been extensively tested. It is likely that there are still issues with running it as a module, both with MapScript itself and possibly with applications built using MapScript. If at all possible, I would recommend running PHP as a CGI. Cheers, Paul On Jan 20, "Mike Leahy" <mgleahy@fes.uwaterloo.ca> wrote: > Hey all, > > > > > > > > I currently running my MapServer/MapScript/PHP etc. with IIS on Win2K > and > > WinXP development servers without problems. I've just setup the exact > same > > configuration on a new Win2003 server. Now, when I try to load one of > my > > map pages, I get the following: > > > > > > > > Warning: dl(): Not supported in multithreaded Web servers - use > extension > > statements in your php.ini in > d:\educal\www\mapviewer\wrapper\utilities.php > > on line 51 > > > > Fatal error: Call to undefined function: ms_getversion() in > > d:\educal\www\mapviewer\globprefs.php on line 147 > > > > > > > > I know this is probably more to do with PHP than MapScript, but I'm > hoping > > someone on this list might have experience with the problem. I checked > > enable_dl in php.ini, which is identical to the ones on the other > servers, > > and it says pretty much the same as the msg above; that it won't work > for > > multithreaded servers such as IIS. This surprises me, because it really > > does work in IIS, minus the latest version released with Win2003. I > don't > > recall ever having this issue before. > > > > > > > > I tried adding the MapScript dll as an extension in the PHP ini file, > but > > there seems to be no effect. The load_module() function is called from > > globprefs, and is checking to see if the "MapScript" is already loaded. > I > > added print_r(get_loaded_extensions()); to the load_module function, and > > MapScript does not appear in the list even though it is added as an > > extension in the ini file. Can anyone suggest what should I be doing to > get > > it to load properly, at the very least from the ini file if not with the > > dl() function? > > > > > > > > Thanks, > > > > Mike > > > > > > > > > > <html> > > > > <head> > > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; > charset=us-ascii"> > > > > > > <meta name=Generator content="Microsoft Word 10 (filtered)"> > > > > <style> > > <!-- > > /* Style Definitions */ > > p.MsoNormal, li.MsoNormal, div.MsoNormal > > {margin:0cm; > > margin-bottom:.0001pt; > > font-size:12.0pt; > > font-family:"Times New Roman";} > > a:link, span.MsoHyperlink > > {color:blue; > > text-decoration:underline;} > > a:visited, span.MsoHyperlinkFollowed > > {color:purple; > > text-decoration:underline;} > > span.EmailStyle17 > > {font-family:Arial; > > color:windowtext;} > > @page Section1 > > {size:612.0pt 792.0pt; > > margin:72.0pt 90.0pt 72.0pt 90.0pt;} > > div.Section1 > > {page:Section1;} > > --> > > </style> > > > > </head> > > > > <body lang=EN-CA link=blue vlink=purple> > > > > <div class=Section1> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'>Hey all,</span></font></p> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'> </span></font></p> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'>I currently running my MapServer/MapScript/PHP > etc… with > > IIS on Win2K and WinXP development servers without problems. > I’ve > > just setup the exact same configuration on a new Win2003 server. > Now, > > when I try to load one of my map pages, I get the > following:</span></font></p> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'> </span></font></p> > > > > <p class=MsoNormal><b><font size=3 face="Times New Roman"><span > > style='font-size:12.0pt;font-weight:bold'>Warning</span></font></b>: > dl(): Not > > supported in multithreaded Web servers - use extension statements in > your > > php.ini in <b><span > style='font-weight:bold'>d:\educal\www\mapviewer\wrapper\utilities.php< > /span></b> > > on line <b><span style='font-weight:bold'>51</span></b><br> > > <br> > > <b><span style='font-weight:bold'>Fatal error</span></b>: Call to > undefined > > function: ms_getversion() in <b><span > style='font-weight:bold'>d:\educal\www\mapviewer\globprefs.php</span></ > b> > > on line <b><span style='font-weight:bold'>147</span></b></p> > > > > <p class=MsoNormal><b><font size=3 face="Times New Roman"><span > > style='font-size:12.0pt;font-weight:bold'> </span></font></b></p> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'>I know this is probably more to do with PHP than > MapScript, > > but I’m hoping someone on this list might have experience with the > > problem. I checked enable_dl in php.ini, which is identical to the > ones > > on the other servers, and it says pretty much the same as the msg above; > that > > it won’t work for multithreaded servers such as IIS. This > surprises > > me, because it really does work in IIS, minus the latest version > released with > > Win2003. I don’t recall ever having this issue before. > </span></font></p> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'> </span></font></p> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'>I tried adding the MapScript dll as an extension in > the PHP ini > > file, but there seems to be no effect. The load_module() function > is called > > from globprefs, and is checking to see if the “MapScript” is > > already loaded. I added print_r(get_loaded_extensions()); to > the load_module > > function, and MapScript does not appear in the list even though it is > added as > > an extension in the ini file. Can anyone suggest what should I be > doing > > to get it to load properly, at the very least from the ini file if not > with the > > dl() function?</span></font></p> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'> </span></font></p> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'>Thanks,</span></font></p> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'>Mike</span></font></p> > > > > <p class=MsoNormal><font size=2 face=Arial><span > style='font-size:10.0pt; > > font-family:Arial'> </span></font></p> > > > > </div> > > > > </body> > > > > </html> > > > > _______________________________________________ > Maplab-users mailing list > Maplab-users@lists.maptools.org > <a href='http://lists.maptools.org/mailman/listinfo/maplab- users'>http://lists.maptools.org/mailman/listinfo/maplab-users</a> >
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |