[Geomoose-users] Migrating geomoose v1.6 Microsoft to Linux

Brent Fraser bfraser at geoanalytic.com
Thu Jun 30 10:22:37 EDT 2011


It looks like the server response is "500 Internal Server Error".  In my 
experience that indicates a failure (crash or problem loading) of a CGI  
process or webserver module; in this case either PHP or a related module 
such as mapscript.  Since other mapscript services seem to run ok, it's 
likely not a a loading problem.  I'd recommend putting some "print" 
statements in the PHP to narrow down the location of the problem.

Best Regards,
Brent Fraser


On 6/30/2011 6:22 AM, geo3d wrote:
> Hey folks, need an extra pair of eyes; I've gone over my configuration for a
> few days now and can't seem to find a solution to my problem: ( my map has
> been operational for nearly 2 years on a Windows box running xp and apache2)
>
> Problem: select.php and print.php aren't being called - I'm fairly sure its
> a simple syntax error but damned if I can find it.
>
> My test map can be found @ maps.peachtree-city.org/Test
>
> I've got everything else to include searching, identifying, etc up and
> going.
>
> I've attached a screen shot of Firebug response:
>
> http://geomoose-users.964460.n3.nabble.com/file/n3125537/mapPHP.png
> mapPHP.png
>
> The following snippets apply to my map configuration:
>
> XML
> <service title="Select Feature" default="true" locked="true"
> cursor="url(cursors/select.cur), auto" shape="box" type="inspect-search"
> icon="shared/images/toolbar/draw_polygon.jpg"
> highlight="shared/images/toolbar/draw_polygon_selected.jpg">
> 			<url>php/select.php</url>
> 			<input type="multipoint" name="coords"/>
> 			<input type="hidden" name="shape" value="poly"/>
> 			<input type="hidden" name="map"
> value="/var/www/iMap/Test/maps_countydemo/select.map"/>
> 			<input type="hidden" name="select"
> value="/var/www/iMap/Test/maps_countydemo/select.map"/>
> 			
> 			<input type="select" name="layer" title="Layer to Select:">
> 					<option value="Parcels:PARCEL_NO">Parcels</option>
>                            </input>
> 			<input type="hidden" name="output" value="html"/>
>
> 			</service>
>
> --------------------------------------
> select.php
> <?php
> #
> # select.php (c) 2007 Dan "Ducky" Little
> # Write for the GeoMOOSE project, sponsored by the OpenMNND Organization
> # PHP Translation of the Perl script select.pl
> #
>
> # Make the PHP Script Shut Up, but still give something useful if there
> # is a legit error or parsing bug.
> error_reporting(E_ERROR | E_PARSE);
>
> # Include the GeoMOOSE PHP Library Utilities
> include('Configuration.php');
> include('geomoose_php_util.php');
>
> # Get in the information from the request
> $coordinates = $_REQUEST['coords'];
> $title = $_REQUEST['title'];
> $shapeType = $_REQUEST['shape'];
> $buffer = $_REQUEST['buffer'];
> $layer = $_REQUEST['layer'];
> $output = $_REQUEST['output'];
> $identifyMap = $_REQUEST['map'];
> $selectMap = $_REQUEST['select'] ..........
> ...............................................
>
>
>
> Configuration.php
> <?php
>
> /*
>   * This file controls the basic settings for the GeoMOOSE PHP Services
>   *
>   * Any of these settings can be over-ridden in the specific script.
>   */
>
> $TEMP_DIRECTORY = '/var/www/tmp/';
> $TEMP_WEB = '/tmp/';
>
> # Do not forget the trailing "/"!
> $PARENT_DIRECTORY = '/var/www/iMap/Test/maps_countydemo/';
>
> # This is used as a template by the buffer selection script
> $DRAWING_MAP = '/var/www/iMap/Test/php/resources/draw.map';
>
> $DEFAULT_DELIM = ':';
> $DEFAULT_OUTPUT = 'html';	# This should be the default, some scripts provide
> XML, CSV, and PDF, but they all have HTML modes
>
> # Printing Options
> $PRINT_SHOW_IMAGE_LINK = false;
>
> /*** Needed for PDF Printing... the location of FPDF ***/
> $FPDF_LOCATION = '/fpdf/';
>
> /*** Configuration for Mailing Labels ***/
> $PARCELS_MAP = '/var/www/iMap/Test/maps_countydemo/select.map';
> $PARCELS_LAYER = 'Parcels';..............................................
> ...............................................................................
>
>
>
>
> --
> View this message in context: http://geomoose-users.964460.n3.nabble.com/Migrating-geomoose-v1-6-Microsoft-to-Linux-tp3125537p3125537.html
> Sent from the Geomoose-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geomoose-users
>





More information about the Geomoose-users mailing list