<div class="gmail_quote">Hi Norm, <br><br>There is no php5 in my cgi-bin ($FGS_HOME/www/cgi-bin/). I checked your FGS (1.0), there is no php5 in the cgi-bin as well. I compared php5.conf files:<br><br>[Your version - FGS 1.0]:<br>
AddType application/x-httpd-php .php .phtml<br>LoadModule php5_module libexec/libphp5.so<br>DirectoryIndex index.php index.phtml<br>PassEnv PHPRC<br><br>[My version]:<br>AddType application/x-httpd-php5 .php .phtml<br>
Action application/x-httpd-php5 /cgi-bin/php5<br>DirectoryIndex index.php index.phtml<br>PassEnv PHPRC<br><br>However, I cannot find libphp5.so anyway in my $FGS_HOME (no $FGS_HOME/www/libexec at all!). Do you think it is because php is built or configured wrong?<br>
<br>Regards,<br>Hao<br><br><br>On Wed, Nov 18, 2009 at 3:47 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;">
In browser, I input "<a href="http://localhost:8000/cgi-bin/mapserv/" target="_blank">http://localhost:8000/cgi-bin/mapserv/</a>" and it returns "No query information to decode. QUERY_STRING is set, but empty". So mapserver is working. There is a file called "phpinfo.php" located at /opt/fgs/www/htdocs/ directory. Then I input "<a href="http://localhost:8000/phpinfo.php" target="_blank">http://localhost:8000/phpinfo.php</a>" in browser, but it returns "404 Not Found The requested URL /cgi-bin/php5/phpinfo.php was not found on this server." I use firebug plugin in firefox to investigate and find in response header saying "Server| Apache/2.2.8 (Unix)|". If I send same request to another running FGS (1.0) you provide in official website, it says "Server| Apache/2.2.8 (Unix) X-Powered-By PHP/5.2.5|" in response header and returns correct page content. It seems to me that my self-built FGS is not able to execute php code in apache. Could you instruct me how to fix it? I need Apache/Mapserver/PHP/Mapscript all working together in order to run application such as ka-map on top. Thank you in advance.<br>
<br>
</blockquote></div>
Hao,<br>
<br>
Is there a php5 in your cgi-bin ($FGS_HOME/www/cgi-bin/)?<br>
<br>
Norm<br>
</blockquote></div>