Hi Norm,<br><br>I did as you indicated. The output related to Apache module or cgi is:<br><br>./fgs_build <br>* PHP will be built in DEBUG mode<br>* Building against mapserver >= 4.6, we can use PHP as an Apache module<br>
loading cache ./config.cache<br>[... ...]<br>Configuring SAPI modules<br>checking for AOLserver support... no<br>checking for Apache 1.x module support via DSO through APXS... no<br>checking for Apache 1.x module support... no<br>
checking whether to enable Apache charset compatibility option... no<br>checking for Apache 2.0 filter-module support via DSO through APXS... no<br>checking for Apache 2.0 handler-module support via DSO through APXS... yes<br>
checking for Apache 1.x (hooks) module support via DSO through APXS... no<br>checking for Apache 1.x (hooks) module support... no<br>checking whether to enable Apache charset compatibility option... no<br>checking for Caudium support... no<br>
checking for CLI build... yes<br>checking for Continuity support... no<br>checking for embedded SAPI library support... no<br>checking for Zeus ISAPI support... no<br>checking for Milter support... no<br>checking for NSAPI support... no<br>
checking for PHTTPD support... no<br>checking for Pi3Web support... no<br>checking whether Roxen module is build using ZTS... no<br>checking for Roxen/Pike support... <br>checking for thttpd... no<br>checking for TUX... no<br>
checking for webjames... no<br>checking for chosen SAPI module... apache2handler<br>[... ...]<br><br>Regards,<br>Hao<br><br><br><div class="gmail_quote">On Wed, Nov 18, 2009 at 6:35 PM, Normand Savard <span dir="ltr"><<a href="mailto:nsavard@mapgears.com">nsavard@mapgears.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Hao Zhang wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
if [ "$PHP_AS_APACHE_MODULE" = 'y' ] ; then<br>
echo "* Building against mapserver >= 4.6, we can use PHP as an Apache module"<br>
OPTIONS="$OPTIONS --enable-cgi --enable-force-cgi-redirect"<br>
<br>
if [ ${APACHE_VERSION_MAJOR} = '1' ] ; then<br>
OPTIONS="$OPTIONS --with-apxs=$FGS_BUILD_HOME/apache/bin/apxs"<br>
else<br>
OPTIONS="$OPTIONS --with-apxs2=$FGS_BUILD_HOME/apache/bin/apxs"<br>
fi<br>
else<br>
OPTIONS="$OPTIONS --enable-cgi --enable-force-cgi-redirect"<br>
fi<br>
<br>
No matter "$PHP_AS_APACHE_MODULE" = 'y' or not, always has OPTIONS="$OPTIONS --enable-cgi --enable-force-cgi-redirect". Is this correct behavior?<br>
<br>
</blockquote></div>
I don't think this is what cause the problem even though it looks weird but you can change:<div class="im"><br>
<br>
OPTIONS="$OPTIONS --enable-cgi --enable-force-cgi-redirect"<br>
<br></div>
in the first "if" for:<br>
<br>
OPTIONS="$OPTIONS --disable-cgi"<br>
<br>
and for the "OPTIONS" in the else, you can change to:<br>
<br>
OPTIONS="$OPTIONS --enable-force-cgi-redirect"<br>
<br>
<br>
Then comment the following lines in fgs_build:<br>
<br>
rm -rf $FGS_BUILD_HOME/php<br>
make clean<br>
make $FGS_MAKE_OPT all<br>
<br>
Execute "./fgs_build" in the php src directory. Paste the output related to Apache module or cgi here.<br>
<br>
Thanks.<br>
<br>
Norm<br>
<br>
<br>
</blockquote></div><br>