[Mapserver-users] PHPMapscript

Ryan, Adam ARyan at co.linn.or.us
Fri Jul 18 13:20:09 PDT 2003


This is a multi-part message in MIME format.

------_=_NextPart_001_01C34D69.FC2CDFD0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset="iso-8859-1"

I'm not going to be much help, but do you have 
 
cgi.force_redirect = 0
 
in your php.ini file?
 
Adam Ryan
-----Original Message-----
From: Adam Zornes [mailto:zornes at athenic.com]
Sent: Friday, July 18, 2003 11:20 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] PHPMapscript


All,
 
            Sorry to be such a bother about this subject, but I have a
problem which is giving me fits.  
            I have successfully installed php on IIS under windows NT.  I
have installed mapserver, and it will run without incident on its own.  
            My problem comes when I try to run a php page with mapscript.  I
am unable to load a map.  I can access some other functions, such as
ms_newPointObj, but not ms_newMapObj.
            I have considered every possible angle, but continually get the
following error message, "Fatal error: Due to thread-safety problems,
php_mapscript cannot be used as a 'cgi-fcgi' module. You will have to
reconfigure your PHP as a CGI to run this version of MapScript. See
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI
<http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI> . in
D:\TreeGuideIntranet\mapserver\frankfort\frankfort.phtml on line 47"
            I have set php to run as cgi as described in several places, but
this is to no avail.  Can anyone help me with this?
 
Cheers,
Adam Zornes
Athenic Systems

------_=_NextPart_001_01C34D69.FC2CDFD0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<META content=3D"Microsoft Word 10" name=3DOriginator><LINK=20
href=3D"cid:filelist.xml at 01C34D37.B24210C0" rel=3DFile-List><!--[if gte =
mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in =
1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; =
mso-paper-source: 0; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: =
personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; =
mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; =
mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.SpellE {
	mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
	mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
	page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=3DEN-US style=3D"tab-interval: .5in" vLink=3Dpurple =
link=3Dblue>
<DIV><SPAN class=3D932301420-18072003><FONT face=3DArial =
color=3D#0000ff size=3D2>I'm=20
not going to be much help, but do you have </FONT></SPAN></DIV>
<DIV><SPAN class=3D932301420-18072003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D932301420-18072003></SPAN><SPAN =
class=3D932301420-18072003><FONT=20
face=3DArial color=3D#0000ff size=3D2>cgi.force_redirect =3D =
0</FONT></SPAN></DIV>
<DIV><SPAN class=3D932301420-18072003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D932301420-18072003><FONT face=3DArial =
color=3D#0000ff size=3D2>in=20
your php.ini file?</FONT></SPAN></DIV>
<DIV><SPAN class=3D932301420-18072003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D932301420-18072003><FONT face=3DArial =
color=3D#0000ff size=3D2>Adam=20
Ryan</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Adam Zornes=20
  [mailto:zornes at athenic.com]<BR><B>Sent:</B> Friday, July 18, 2003 =
11:20=20
  AM<BR><B>To:</B> mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B> =

  [Mapserver-users] PHPMapscript<BR><BR></FONT></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">All,<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p> </o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN=20
  style=3D"mso-tab-count: =
1">           =20
  </SPAN>Sorry to be such a bother about this subject, but I have a =
problem=20
  which is giving me fits. <SPAN=20
  style=3D"mso-spacerun: =
yes"> </SPAN><o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN=20
  style=3D"mso-tab-count: =
1">           =20
  </SPAN>I have successfully installed <SPAN class=3DSpellE>php</SPAN> =
on IIS=20
  under <SPAN class=3DGramE>windows</SPAN> NT.<SPAN=20
  style=3D"mso-spacerun: yes">  </SPAN>I have installed <SPAN=20
  class=3DSpellE>mapserver</SPAN>, and it will run without incident on =
its own.=20
  <SPAN style=3D"mso-spacerun: =
yes"> </SPAN><o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN=20
  style=3D"mso-tab-count: =
1">           =20
  </SPAN>My problem comes when I try to run a <SPAN =
class=3DSpellE>php</SPAN> page=20
  with <SPAN class=3DSpellE>mapscript</SPAN>.<SPAN=20
  style=3D"mso-spacerun: yes">  </SPAN>I am unable to load a =
map.<SPAN=20
  style=3D"mso-spacerun: yes">  </SPAN>I can access some other =
functions,=20
  such as <SPAN class=3DSpellE>ms_newPointObj</SPAN>, but not <SPAN=20
  class=3DSpellE>ms_newMapObj</SPAN>.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN=20
  style=3D"mso-tab-count: =
1">           =20
  </SPAN>I have considered every possible angle, but continually get =
the=20
  following error message, "</SPAN></FONT><B><SPAN=20
  style=3D"FONT-WEIGHT: bold">Fatal error</SPAN></B>: Due to =
thread-safety=20
  problems, <SPAN class=3DSpellE>php_mapscript</SPAN> cannot be used as =
a '<SPAN=20
  class=3DSpellE>cgi-fcgi</SPAN>' module. You will have to reconfigure =
your PHP as=20
  a CGI to run this version of <SPAN class=3DSpellE>MapScript</SPAN>. =
See <A=20
  =
href=3D"http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI">ht=
tp://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI</A>.=20
  <SPAN class=3DGramE>in</SPAN> <B><SPAN=20
  style=3D"FONT-WEIGHT: =
bold">D:\TreeGuideIntranet\mapserver\frankfort\frankfort.phtml</SPAN></B=
>=20
  on line <B><SPAN style=3D"FONT-WEIGHT: bold">47"</SPAN></B><SPAN=20
  style=3D"mso-bidi-font-weight: bold"><o:p></o:p></SPAN></P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt; mso-bidi-font-weight: bold"><SPAN=20
  style=3D"mso-tab-count: =
1">           =20
  </SPAN>I have set <SPAN class=3DSpellE>php</SPAN> to run as <SPAN=20
  class=3DSpellE>cgi</SPAN> as described in several places, but this is =
to no=20
  avail.<SPAN style=3D"mso-spacerun: yes">  </SPAN>Can anyone help =
me with=20
  this?<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt; mso-bidi-font-weight: =
bold"><o:p> </o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt; mso-bidi-font-weight: =
bold">Cheers,<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt; mso-bidi-font-weight: bold">Adam=20
  Zornes<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt; mso-bidi-font-weight: bold">Athenic=20
  Systems</SPAN></FONT><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C34D69.FC2CDFD0--



More information about the MapServer-users mailing list