MapTools.org

[maplab-users] [mapserver-users] PHP/Mapscript Installation Help

David Harris dharris@drh.net
Fri, 6 Sep 2002 15:29:22 -0400
Daniel Morissette morissette@dmsolutions.ca wrote:
> David Graham wrote:
> > I restarted the Http Server and went back to the
maplab/htdocs/index.phtml page and this is what I got:
> > 
> > *Warning*:  Unexpected character in input:  '' (ASCII=4) state=1 in
*/var/www/cgi-bin/php* on line *6081*
> > *Warning*:  Unexpected character in input:  ' in
*/var/www/cgi-bin/php* on line *6082*
[[snip]]
> 
> Another user on the MapServer-users list ran into the same thing and
it
> turned out that the source of the problem was that he was using the
> 'php' executable shipped by RedHat.  Even accessing regular PHP pages
> probably won't work either with this php executable.
>
> The solution in his case was to recompile a new PHP executable (there
> are step by step instructions in the Wiki)... I would recommend that
you
> get the latest PHP version 4.2.2.  Then re-run configure for MapServer
> while pointing it to the PHP4.2.2 source, copy the new
php_mapscript.so
> to your extension_dir and you should be running.

The problem is that Red Hat added the --enable-discard-path discard path
configuration option to their php RPM.

Read more here:
http://www.php.net/manual/en/security.cgi-bin.php
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=73616

If you rebuild the RPM and simply remove this one line from the .spec
file, you should be OK.

(I'm not on the list, so if you want to reply to me, please cc me.)

David





This archive was generated by Pipermail.