Hi list again.<br><br>I have found the problem, but i dont know how i could fix it.<br><br>Im using ms4w and i added the lines to the httpd.conf file like: <br><br><span class="q">DefaultInitEnv PROJ_LIB "d:/ms4w/proj/nad/"
<br></span>DefaultInitEnv PATH "d:/ms4w/Apache/htdocs/fcgid;d<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">:/WINDOWS/system32;d:/WINDOWS;d:/WINDOWS/System32/Wbem;"
<span class="q"><br>DefaultInitEnv windir "d:/WINDOWS"<br>DefaultInitEnv SystemRoot "d:/Windows"<br>DefaultInitEnv SystemDrive "d:"<br>DefaultInitEnv GDAL_DATA "d:/ms4w/gdaldata"<br>
DefaultInitEnv GDAL_DRIVER_PATH "d:/ms4w/gdalplugins"
<br>DefaultInitEnv TMP "d:/ms4w/tmp"<br><Location /fcgid><br> SetHandler fcgid-script<br> Options execCGI<br> AllowOverride None<br> Order allow,deny<br> Allow from all<br></Location>
</span></blockquote><div><br>This works fine if I use the original libmap.dll file ( with postgis support) , but when i replace for the other for arcsde support o oracle support , i get the followin error.<br><br>[Thu May 24 15:18:47 2007] [info] mod_fcgid: server D:/ms4w/Apache/htdocs/fcgid
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">/mapserv.exe(1204) started
<br>[Thu May 24 15:18:47 2007] [warn] (OS 109)Ha terminado la canalización. : mod_fcgid: get overlap result error<br>[Thu May 24 15:18:47 2007] [error] [client <a href="http://127.0.0.1/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
127.0.0.1</a>] Premature end of script headers:
mapserv.exe</blockquote><br><br>I have added too the followin lines to httpd.conf but nothings happens. <br><br>DefaultInitEnv SDEHOME "D:/arcgis/ArcSDE/ora9iexe"<br><br>Im getting allways the same error.<br><br>
Has anybody MS4W with ARCSDE and Fastcgi working correctly?<br><br>Thxs again<br><br> </div><br><br><br><div><span class="gmail_quote">2007/5/24, José Ramón López <<a href="mailto:joseramonlopez@gmail.com">joseramonlopez@gmail.com
</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi list<br><br>Im trying to configure MS4W with fastcgi module.<br>I read the following instructions but allways sends to me an error 500. In error logs appears the followin lines:
<br><br>[Thu May 24 15:18:47 2007] [info] mod_fcgid: server D:/ms4w/Apache/htdocs/fcgid/mapserv.exe(1204) started
<br>[Thu May 24 15:18:47 2007] [warn] (OS 109)Ha terminado la canalización. : mod_fcgid: get overlap result error<br>[Thu May 24 15:18:47 2007] [error] [client <a href="http://127.0.0.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
127.0.0.1</a>] Premature end of script headers:
mapserv.exe<br><br>and these are my configuration lines on httpd.conf<span class="q"><br><br>DefaultInitEnv PROJ_LIB "d:/ms4w/proj/nad/"<br></span>DefaultInitEnv PATH "d:/ms4w/Apache/htdocs/fcgid;d:/WINDOWS/system32;d:/WINDOWS;d:/WINDOWS/System32/Wbem;"
<span class="q"><br>DefaultInitEnv windir "d:/WINDOWS"<br>DefaultInitEnv SystemRoot "d:/Windows"<br>DefaultInitEnv SystemDrive "d:"<br>DefaultInitEnv GDAL_DATA "d:/ms4w/gdaldata"<br>
DefaultInitEnv GDAL_DRIVER_PATH "d:/ms4w/gdalplugins"
<br>DefaultInitEnv TMP "d:/ms4w/tmp"<br><Location /fcgid><br> SetHandler fcgid-script<br> Options execCGI<br> AllowOverride None<br> Order allow,deny<br> Allow from all<br></Location>
<br>
<br></span>Apache works fine and mapserver with cgi, but im having problems with fasctgi.<br><br>Thxs Again<br><br><div><span class="gmail_quote">2007/4/26, Marcelo Oliveira <<a href="mailto:moliveira@geostats.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
moliveira@geostats.com
</a>>:</span><div><span class="e" id="q_112be45b16e5eef1_5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi There,<br><br>I got MapServer to work in fastCGI mode with mod_fcgid and MS4W
1.40 on<br>Windows Server 2003 R2 SP1. Here is what I had to do:<br><br>1. Downloaded the mod_fcgid.so binary build from:<br><a href="http://www.apachelounge.com/download/mods/mod_fcgid-2.1-w32.zip" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.apachelounge.com/download/mods/mod_fcgid-2.1-w32.zip
</a><br><br>2. Placed the mod_fcgid.so on Apache's modules directory<br><br>3. Placed the httpd.exe.manifest file on Apache's bin directory (this<br>file comes in the fcgid binary distribution from Apache Lounge)
<br>
<br>4. Copied the entire contents of the cgi-bin directory to htdocs/fcgid<br>(should probably move this so that it is parallel with cgi-bin)<br><br>5. Added the following lines to the Apache httpd.conf (these assume that
<br>you have ms4w on the c: drive and Windows installed on C:\Windows):<br><br>LoadModule fcgid_module modules/mod_fcgid.so<br># set environment vars necessary for MapServer<br>DefaultInitEnv PROJ_LIB "c:/ms4w/proj/nad/"
<br>DefaultInitEnv PATH<br>"c:/ms4w/Apache/htdocs/fcgid;c:/WINDOWS/system32;c:/WINDOWS;c:/WINDOWS/S<br>ystem32/Wbem;"<br>DefaultInitEnv windir "c:/WINDOWS"<br>DefaultInitEnv SystemRoot "c:/Windows"
<br>DefaultInitEnv SystemDrive "c:"<br>DefaultInitEnv GDAL_DATA "c:/ms4w/gdaldata"<br>DefaultInitEnv GDAL_DRIVER_PATH "c:/ms4w/gdalplugins"<br>DefaultInitEnv TMP "c:/ms4w/tmp"<br><Location /fcgid>
<br> SetHandler fcgid-script<br> Options execCGI<br> AllowOverride None<br> Order allow,deny<br> Allow from all<br></Location><br><br>6. Restarted Apache<br><br>7. Changed the MapServer http calls from
<br><a href="http://server/cgi-bin/mapserv.exe" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://server/cgi-bin/mapserv.exe</a> to <a href="http://server/fcgid/mapserv.exe" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://server/fcgid/mapserv.exe</a><br><br>8. To benefit from the persistence of mapserv.exe
in fastCGI mode you<br>should add the following line to the LAYER sections in your map files<br>with expensice connections (e.g. PostGIS, ArcSDE, etc):<br> PROCESSING "CLOSE_CONNECTION=DEFER"<br><br>That's it! After getting this working I saw a four-fold improvement on
<br>the drawing of maps (from 0.4 to 0.1 second on average, using a large<br>PostGIS database with the entire US's street network and other<br>background layers).<br><br>I hope this helps other people out there trying to use MapServer in
<br>fastCGI mode and without the resources to build fcgi-2.4.0 from scratch.<br><br>M<br><br>--------------<br>Marcelo Simas Oliveira<br>GeoStats LP<br>530 Means St., Ste. 310<br>Atlanta, Georgia 30318<br>(404) 588-1004<br>
<a href="http://www.geostats.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.geostats.com</a><br><br>-----Original Message-----<br>From: Marcelo Oliveira<br>Sent: Wednesday, April 25, 2007 8:32 PM
<br>To: <a href="mailto:ms4w-users@lists.maptools.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ms4w-users@lists.maptools.org
</a><br>Subject: Anybody used mod_fcgid with MS4W<br><br><br>Hello,<br><br>I am experimenting with MS4W 1.40 mod_fcgid<br>(<a href="http://fastcgi.coremail.cn/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://fastcgi.coremail.cn/</a>) and it keeps giving the following error
<br>when trying to connect to PostGIS:<br><br>msDrawMap(): Image handling error. Failed to draw layer named 'States'.<br>msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with<br>connect string 'user=postgres password=********* host=cabral port=5432
<br>dbname=gisdata'.<br><br>Error reported was 'could not translate host name &quot;cabral&quot; to<br>address: Unknown host '.<br><br>Has anybody seen this before, or let me rephrase that, has anybody
<br>experimented with mod_fcgid before?<br><br>Thanks,<br><br>M<br><br>--------------<br>Marcelo Simas Oliveira<br>GeoStats LP<br>530 Means St., Ste. 310<br>Atlanta, Georgia 30318<br>(404) 588-1004<br><a href="http://www.geostats.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
www.geostats.com</a><br><br><br><br><br>_______________________________________________<br>ms4w-users mailing list<br><a href="mailto:ms4w-users@lists.maptools.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ms4w-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/ms4w-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.maptools.org/mailman/listinfo/ms4w-users</a><br></blockquote></span></div></div><br>
</blockquote></div><br>