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

Erich Schroeder erich at museum.state.il.us
Thu Jun 26 09:31:12 PDT 2003


That was it exactly. I had to remove the "--enable-discard-path" from the 
./configure portion of compiling php-4.3.2, and it all worked after that.

Erich

On Thu, 26 Jun 2003, Benjamin Wragg wrote:

> 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
> 
> 

-- 
---------------------------------------------------------------------
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/
---------------------------------------------------------------------




More information about the MapServer-users mailing list