FW: [Mapserver-users] PHP mapscript, ms 4.0b, Apache/2.0.40 (Red Hat Linux)

Benjamin Wragg bwragg at tpg.com.au
Wed Jun 25 17:43:26 EDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C33BB2.70FF41A0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi Erich,

I've got the same thing twice this week. I did a search on google and
found this link
<http://www.zend.com/lists/php-dev/200201/msg00979.html>
http://www.zend.com/lists/php-dev/200201/msg00979.html. Although on this
page the bug type is classed as a "Web Server problem" I followed some
of the hints towards the bottom of the page related to php compile
options. In particular:

"I have tried lots of different compilation settings, and found only one
common
element:  the problem only occurs if --enable-discard-path  is
specified.


Any other combination of configure flags result in a binary that works
fine as long as --enable-discard-path is not used."

As I mentioned earlier I've run into this problem on two different
servers this week. Both times I've got the same error. Simply removing
this --enable-discard-path option from the php compile solved it both
times.

Let me know if it helps.

Cheers,

Benjamin Wragg

-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu [
<mailto:mapserver-users-admin at lists.gis.umn.edu>
mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Erich
Schroeder
Sent: Thursday, 26 June 2003 4:47 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] PHP mapscript, ms 4.0b, Apache/2.0.40 (Red
Hat Linux)


I'm probably just getting something wrong. In my trying installs on a
number of different distributions/versions of linux, I'm working on a
RedHat 9 machine using the Mapserver 3.7 on RedHat 8 document as a
guide.

After going through things I find that running the phpinfo command
directly through php (like "php ms_phpinfo.php") works just fine, but
through the server i get:

Warning: Unexpected character in input: '' (ASCII=24) state=1 in
/var/www/cgi-bin/php on line 686

Warning: Unexpected character in input: '' (ASCII=8) state=1 in
/var/www/cgi-bin/php on line 686

and so forth.

I removed all rpms associated with php, and php is not, as far as I can
tell, loaded as a modual. I have the following lines in http.conf

AddType application/php-cgi .php .phtml
Action application/php-cgi /cgi-bin/php

Which is what I have working on a debian system using Apache 1.3.x. Is
there a difference in the AddType/Action lines that are needed under
Apache 2? Apache 2.someting is the default for RedHat 8.0, as I
remember,
as well as RH9.

Should I be using "AddHandler", SetOutputFilter, SetInputFilter or such
things as are in the saved file /etc/httpd/conf.d/php.conf.rpmsave?

Erich

--
---------------------------------------------------------------------
Erich Schroeder                    Phone: (217)785-0033
Curator, Information Technologies  FAX:   (217)785-2857
Illinois State Museum GIS Lab      email:erich(at)illinois.state.museum
                  <http://illinois.state.museum/>
http://illinois.state.museum/
---------------------------------------------------------------------

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
<http://lists.gis.umn.edu/mailman/listinfo/mapserver-users>
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


------=_NextPart_000_0006_01C33BB2.70FF41A0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi Erich,<BR><BR>I've got the same =
thing twice this=20
week. I did a search on google and found this link </FONT><A=20
href=3D"http://www.zend.com/lists/php-dev/200201/msg00979.html"><FONT =
face=3DArial=20
color=3D#000000=20
size=3D2>http://www.zend.com/lists/php-dev/200201/msg00979.html</FONT></A=
><FONT=20
face=3DArial size=3D2>. Although on this page the bug type is classed as =
a "Web=20
Server problem" I followed some of the hints towards the bottom of the =
page=20
related to php compile options. In particular:</FONT></DIV><FONT =
size=3D2>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV dir=3Dltr><FONT face=3DArial>"I have tried lots of different =
compilation=20
  settings, and found only one<BR>common<BR>element:&nbsp; the problem =
only=20
  occurs if --enable-discard-path&nbsp; =
is<BR>specified.<BR></FONT></DIV><FONT=20
  face=3DArial></FONT>
  <DIV><FONT face=3DArial>Any other combination of configure flags =
result in a=20
  binary that works<BR>fine as long as --enable-discard-path is not=20
  used."</FONT></DIV></BLOCKQUOTE>
<DIV dir=3Dltr><FONT face=3DArial>As I mentioned earlier I've run into =
this problem=20
on two different servers this week. Both times I've got the same error. =
Simply=20
removing this --enable-discard-path option from the php compile solved =
it both=20
times.<BR><BR>Let me know if it helps.<BR><BR>Cheers,<BR><BR>Benjamin=20
Wragg<BR><BR>-----Original Message-----<BR>From:=20
mapserver-users-admin at lists.gis.umn.edu [</FONT><A=20
href=3D"mailto:mapserver-users-admin at lists.gis.umn.edu"><FONT =
face=3DArial=20
color=3D#000000>mailto:mapserver-users-admin at lists.gis.umn.edu</FONT></A>=
<FONT=20
face=3DArial>] On Behalf Of Erich Schroeder<BR>Sent: Thursday, 26 June =
2003 4:47=20
AM<BR>To: mapserver-users at lists.gis.umn.edu<BR>Subject: =
[Mapserver-users] PHP=20
mapscript, ms 4.0b, Apache/2.0.40 (Red Hat Linux)<BR><BR><BR>I'm =
probably just=20
getting something wrong. In my trying installs on a<BR>number of =
different=20
distributions/versions of linux, I'm working on a<BR>RedHat 9 machine =
using the=20
Mapserver 3.7 on RedHat 8 document as a guide.<BR><BR>After going =
through things=20
I find that running the phpinfo command<BR>directly through php (like =
"php=20
ms_phpinfo.php") works just fine, but<BR>through the server i=20
get:<BR><BR>Warning: Unexpected character in input: '' (ASCII=3D24) =
state=3D1=20
in<BR>/var/www/cgi-bin/php on line 686<BR><BR>Warning: Unexpected =
character in=20
input: '' (ASCII=3D8) state=3D1 in<BR>/var/www/cgi-bin/php on line =
686<BR><BR>and so=20
forth.<BR><BR>I removed all rpms associated with php, and php is not, as =
far as=20
I can<BR>tell, loaded as a modual. I have the following lines in=20
http.conf<BR><BR>AddType application/php-cgi .php .phtml<BR>Action=20
application/php-cgi /cgi-bin/php<BR><BR>Which is what I have working on =
a debian=20
system using Apache 1.3.x. Is<BR>there a difference in the =
AddType/Action lines=20
that are needed under<BR>Apache 2? Apache 2.someting is the default for =
RedHat=20
8.0, as I remember,<BR>as well as RH9.<BR><BR>Should I be using =
"AddHandler",=20
SetOutputFilter, SetInputFilter or such<BR>things as are in the saved =
file=20
/etc/httpd/conf.d/php.conf.rpmsave?<BR><BR>Erich<BR><BR>--<BR>-----------=
----------------------------------------------------------<BR>Erich=20
Schroeder&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Phone: (217)785-0033<BR>Curator, Information Technologies&nbsp; =
FAX:&nbsp;&nbsp;=20
(217)785-2857<BR>Illinois State Museum GIS =
Lab&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
email:erich(at)illinois.state.museum<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</FONT><A href=3D"http://illinois.state.museum/"><FONT face=3DArial=20
color=3D#000000>http://illinois.state.museum/</FONT></A><BR><FONT=20
face=3DArial>------------------------------------------------------------=
---------<BR><BR>_______________________________________________<BR>Mapse=
rver-users=20
mailing list<BR>Mapserver-users at lists.gis.umn.edu </FONT><A=20
href=3D"http://lists.gis.umn.edu/mailman/listinfo/mapserver-users"><FONT =

face=3DArial=20
color=3D#000000>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users=
</FONT></A><BR></DIV></FONT></BODY></HTML>

------=_NextPart_000_0006_01C33BB2.70FF41A0--




More information about the mapserver-users mailing list