[FGS] Starting apache error: httpd cannot execute binary file

Normand Savard nsavard at mapgears.com
Thu Nov 19 14:14:28 EST 2009


Hao Zhang wrote:
> Hi Norm,
>
> I change fgs-dev/pkg_def/php/fgs_build by modifying option from "- - 
> enable-cgi" to "- - disable-cgi" and build php as a module of apache. 
> However when I try to load a map in the browser, it complains that php 
> and php_mapscript module do not match because php is compiled with 
> debug mode while php_mapscript is not. So I try to rebuild mapserver 
> again with flag "- - enable_debug". After that, finally mapserver 
> works as expected and be able to execute php code and display map 
> images properly. Thank you very much for your help and time.
>
>
Hao,

It was my pleasure.  I had said in a previous email that I didn't think 
it was caused by "--enable-cgi" because I did compiled my php with this 
switch and I got my libphp5.so.  Anyway, I'm happy it works for you.

Norm



More information about the Foss-gis-suite mailing list