MapTools.org

[maplab-users] Trouble getting (re)started

Jeff McKenna jmckenna@dmsolutions.ca
Wed, 03 Mar 2004 11:50:55 -0500
Hi Yuri,

I have almost the same setup as you...on Windows permissions shouldn't 
be an issue.  So a broken link appears on the preview page where the map 
should be?  here's some things to check:

- check your /tmp dir to see if any images were written there
- verify that your SHAPEPATH and DATA paths are correct in your mapfile
- verify your IMAGEPATH and IMAGEURL settings in your mapfile

jeff




Balkanu GIS wrote:
> Thanks Paul for your reply. Rather than search in vain for an elusive config
> error or typo in httpd.conf or php.ini, I took your advice and installed
> ms4w. Finally it works, hooray! 
> 
> Now I'm having some trouble displaying vector shapes through the MapLab
> browser. The preview legend shows the layers as the 'broken image' icon,
> meaning they can't be accessed. At first I thought it might be an OGR
> problem (my layers are MapInfo TAB files) but I tested using a .SHP file I
> had lying around and this also could not be accessed. 
> 
> The data files are in quite a different part of the directory structure
> (i.e. c:/bla/bla/data/ instead of c:/ms4w/apps/blabla) - do you think this
> could be a permissions problem where either Apache or MapServer is not being
> allowed to access the files I'm pointing at in the MapFile?
> 
> Yuri
> 
> -----Original Message-----
> From: maplab-users-admin@lists.maptools.org
> [mailto:maplab-users-admin@lists.maptools.org] On Behalf Of Paul Spencer
> Sent: Friday, 27 February 2004 21:46
> To: Balkanu GIS
> Cc: maplab-users@lists.maptools.org
> Subject: Re: [maplab-users] Trouble getting (re)started
> 
> 
> what about trying:
> 
> http://localhost/maplab/
> 
> since you nicely set up an alias for that :)
> 
> but if you are getting just php code instead of a web page then PHP is 
> not properly configured.  But it all looks right ... perhaps a small 
> typo or extra space somewhere ... or an extra / somewhere?
> 
> You can also try http://www.maptools.org/ms4w/ to setup apache, php, 
> mapscript and maplab in a fully preconfigured environment that *should* 
> work out of the box :)
> 
> Cheers,
> 
> Paul
> 
> Balkanu GIS wrote:
> 
> 
>>Hi all,
>>I hope this doesn't sound too stupid, but:
>>
>><setup>
>>Win2000 sp4
>>Apache 2
>>PHP 4.3.4
>>MapServer 4.0
>>MapLab 2.1 rc3
>></setup>
>>
>>1. I had MapLab more or less working using a bundled Apache/MySQL/PHP 
>>setup called PHPDev (http://www.firepages.com.au) - but was getting 
>>errors to do with the fact that PHP was being used as a module and not 
>>a CGI program.
>>
>>2. After messing with the configs a little too much everything got way 
>>out of hand and I decided to do clean, basic installs of the three 
>>components. I downloaded and installed current versions of all three 
>>components. Apache 2 is working. PHP 4.3.4 is working and phpinfo.php 
>>shows MapScript information, meaning presumably that the 
>>php_mapscript.dll files are being read from /php/extensions/. I have 
>>tested MySQL from a CLI, but that's all.
>>
>>3. I have modified httpd.conf for MapLab with the following lines:
>>
>>---snip---
>>
>>DirectoryIndex index.html index.html.var index.php index.phtml
>>
>>##Added for MapLab
>>Alias /maplab/ "C:/<path_to_htdocs>/htdocs/maplab-2.1-rc3/htdocs/"
>>
>><Directory "C:/<path_to_htdocs>/htdocs/maplab-2.1-rc3">
>>	Order allow,deny
>>	Allow from localhost
>>	DirectoryIndex index.html index.html.var index.phtml index.php 
>></Directory>
>>
>><Directory "C:/<path_to_htdocs>/htdocs/">
>>	Order allow,deny
>>	Allow from localhost
>>	DirectoryIndex index.html index.html.var index.phtml index.php 
>></Directory>
>>
>>---snip---
>>
>>Alias /tmp/ "C:/<path_to_htdocs>/htdocs/tmp/"
>>
>>---snip---
>>
>>#Added for MapScript PHP functionality
>>ScriptAlias /php/ "c:/php/"
>>AddType application/x-httpd-php .php
>>Action application/x-httpd-php "/php/php.exe"
>>
>>---end of sample---
>>
>>I have also modified php.ini according to the MapScript install 
>>instructions.
>>
>>My problem at the moment is that opening 
>>http://<servername>/maplab-2.1-rc3/htdocs/ in a browser returns only 
>>the code, starting with "<?php " , rather than a rendered page. Can 
>>anyone see anything obvious I'm missing? Any hints would be gratefully 
>>received and acted upon.
>>
>>Best regards
>>
>>Yuri Banens
>>Balkanu GIS
>>
>>
>>_______________________________________________
>>Maplab-users mailing list
>>Maplab-users@lists.maptools.org 
>>http://lists.maptools.org/mailman/listinfo/maplab-users
>>
> 
> 
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users
> 
> 
> 
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users
> 


-- 
Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
http://www.dmsolutions.ca



This archive was generated by Pipermail.