[FGS] Starting apache error: httpd cannot execute binary file
Hao Zhang
hao at zhang.nu
Wed Nov 18 09:04:19 EST 2009
Hi Norm,
I have to reopen this email thread since I encounter further problem after
installing self built FGS installer. If you still remember, I have been
building FGS from scratch target for Linux/sparc64 machine. The lastest FGS
installer I built is based on mapserver 5.2.1 and php 5.2.5. The package
information looks like:
fgsdev build_si mapserver_basic_5.2.1 1.0.2 mapserver-php gdal_ecw-module
libecw-base postgis-lib ming-lib python_mapscript-module
* Creating archive file containing all required FGS modules...
+ Including base module... ok
+ Including mapserver-php version 5.2.1... ok
+ Including mapserver-base version 5.2.1... ok
+ Including libstdc++-lib version 6.0.10... ok
+ Including libgcc-lib version 1... ok
+ Including apache-base version 2.2.8... ok
+ Including expat-base version 2.0.1... ok
+ Including gd-lib version 2.0.35... ok
+ Including jpeg-lib version 6b... ok
+ Including freetype-lib version 2.3.5... ok
+ Including libpng-lib version 1.2.8... ok
+ Including zlib-lib version 1.2.3... ok
+ Including curl-lib version 7.19.4... ok
+ Including openssl-lib version 0.9.8a... ok
+ Including proj-lib version 4.5.0... ok
+ Including postgresql-lib version 8.3.1... ok
+ Including gdal-base version 1.6.1... ok
+ Including tiff-lib version 3.8.2... ok
+ Including libgeotiff-lib version 1.2.4... ok
+ Including xerces_c-base version 2_8_0... ok
+ Including unixODBC-base version 2.2.10... ok
+ Including libungif-base version 4.1.3... ok
+ Including libiconv-base version 1.9.1... ok
+ Including proj4_epsg42xxx-support version 1.0.0... ok
+ Including geos-lib version 3.1.0... ok
+ Including libxml2-base version 2.7.3... ok
+ Including agg-lib version 2.4... ok
+ Including php-base version 5.2.5... ok
+ Including gdal_ecw-module version 1.6.1... ok
+ Including libecw-base version 3.3.20060906... ok
+ Including postgis-lib version 1.3.2... ok
+ Including python_mapscript-module version 5.2.1... ok
+ Including python-base version 2.5.2... ok
* Creating self-extracting archive script
* Self installer image created with success in
'/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.2-linux-sparc64.bin'.
* Versions info file is
'/home/FGS/fgs-dev/modules/fgs-mapserver_basic_5.2.1-1.0.2-linux-sparc64.versions'.
Then I installed it onto the target machine, and it is properly installed.
The install log looks like:
sh fgs-mapserver_basic_5.2.1-1.0.2-linux-sparc64.bin
* Starting FGS installation :
Where do you want to install the FGS suite [/opt/fgs] ?
+ Extracting fgs-base.tar.gz from /tmp/fgs-selfextract.OqhqUs...ok
+ Running base's installer
+ module : base
+ Running fgs install mapserver-php
* Probing last version of module 'mapserver-php'... 5.2.1
+ Installing mapserver-php:
+ Getting and extracting module 'mapserver-php'... ok
+ Getting and extracting module 'mapserver-base'... ok
+ Getting and extracting module 'libstdc++-lib'... ok
+ Getting and extracting module 'libgcc-lib'... ok
+ Getting and extracting module 'apache-base'... ok
+ Getting and extracting module 'expat-base'... ok
+ Getting and extracting module 'gd-lib'... ok
+ Getting and extracting module 'jpeg-lib'... ok
+ Getting and extracting module 'freetype-lib'... ok
+ Getting and extracting module 'libpng-lib'... ok
+ Getting and extracting module 'zlib-lib'... ok
+ Getting and extracting module 'curl-lib'... ok
+ Getting and extracting module 'openssl-lib'... ok
+ Getting and extracting module 'proj-lib'... ok
+ Getting and extracting module 'postgresql-lib'... ok
+ Getting and extracting module 'gdal-base'... ok
+ Getting and extracting module 'tiff-lib'... ok
+ Getting and extracting module 'libgeotiff-lib'... ok
+ Getting and extracting module 'xerces_c-base'... ok
+ Getting and extracting module 'unixODBC-base'... ok
+ Getting and extracting module 'libungif-base'... ok
+ Getting and extracting module 'libiconv-base'... ok
+ Getting and extracting module 'proj4_epsg42xxx-support'... ok
+ Getting and extracting module 'geos-lib'... ok
+ Getting and extracting module 'libxml2-base'... ok
+ Getting and extracting module 'agg-lib'... ok
+ Getting and extracting module 'php-base'... ok
+ Copying all files into FGS environment... ok
+ Running apache-base's installation script :
* *** Apache installation ***
* Selecting TCP port... Example: 80, 8080, 8000
? What TCP port do you want to use [80] : 8000
+ Port selected : '8000'
* You can start apache with : fgs start apache
* *** End of Apache installation ***
+ Running gdal-base's installation script :
Oracle support needs libaio-dev package. Is this package installed? If
you answer 'Y' and the library is not installed most GDAL/OGR commands will
failed. [y/n]y
+ Running libgeotiff-lib's installation script :
+ Running mapserver-base's installation script :
+ Running mapserver-php's installation script :
* php5.ini.template not found. Is php_base installed?
+ Running php-base's installation script :
+ php5.ini file installed in /opt/fgs/www/conf/php5.ini.template
+ Running proj4_epsg42xxx-support's installation script :
+ Running proj-lib's installation script :
* Module 'mapserver-php' installed with success.
+ Running fgs install gdal_ecw-module
* Probing last version of module 'gdal_ecw-module'... 1.6.1
+ Installing gdal_ecw-module:
+ Getting and extracting module 'gdal_ecw-module'... ok
+ Copying all files into FGS environment... ok
* Module 'gdal_ecw-module' installed with success.
+ Running fgs install libecw-base
* Probing last version of module 'libecw-base'... 3.3.20060906
+ Installing libecw-base:
+ Getting and extracting module 'libecw-base'... ok
+ Copying all files into FGS environment... ok
* Module 'libecw-base' installed with success.
+ Running fgs install postgis-lib
* Probing last version of module 'postgis-lib'... 1.3.2
+ Installing postgis-lib:
+ Getting and extracting module 'postgis-lib'... ok
+ Copying all files into FGS environment... ok
+ Running postgis-lib's installation script :
* Module 'postgis-lib' installed with success.
+ Running fgs install ming-lib
* Probing last version of module 'ming-lib'... 0.4.2
+ Installing ming-lib:
+ Getting and extracting module 'ming-lib'... ok
+ Copying all files into FGS environment... ok
* Module 'ming-lib' installed with success.
+ Running fgs install python_mapscript-module
* Probing last version of module 'python_mapscript-module'... 5.2.1
+ Installing python_mapscript-module:
+ Getting and extracting module 'python_mapscript-module'... ok
+ Getting and extracting module 'python-base'... ok
+ Copying all files into FGS environment... ok
* Module 'python_mapscript-module' installed with success.
+ Starting FGS's daemon:
+ Starting 'apache':
In browser, I input "http://localhost:8000/cgi-bin/mapserv/" 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 "
http://localhost:8000/phpinfo.php" 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
"ServerApache/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.
Best Regards,
Hao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/foss-gis-suite/attachments/20091118/c68c2f03/attachment.htm
More information about the Foss-gis-suite
mailing list