Mapfile not displaying in Fusion for MapServer

3 messages Options
Embed this post
Permalink
Andrew Parker-3

Mapfile not displaying in Fusion for MapServer

Reply Threaded More More options
Print post
Permalink
I cannot get the MapServer mapfile to show up in the demo from
http://trac.osgeo.org/fusion/wiki/MapServerTutorial or the template file
located in ../fusion/templates/mapserver/standard/.  I followed Paul's
hint to look in the ../fusion/config.json file (see post
http://n2.nabble.com/Fusion-GMap-Demo-not-displaying-map-or-widgets-td1375413.html).  


I decided to keep the mapfile simple and use the hello.map file from
Bill Kropla's book "Beginning MapServer: Open Source GIS Development)
rather than the gmap sample data.  When I go to
http://216.93.173.156/cgi-bin/mapserv?mode=map&map=/var/www/htdocs/chp2/hello.map,
I can see hello.map.  But when I try to view the map in the demo
template or the template provided in fusion I do not see any maps.

demo template: http://216.93.173.156/demo/

As stated above, I took a look in the config.json file and I think the
problem is with the tmp directories.

My config.json file is below.  I added questions in CAPITAL LETTERS.  
Furthermore, added /tmp/ms_tmp to both the system root and webserver
root and changed permissions to 777 (chmod 777 /tmp /tmp/ms_tmp) to see
if I could solve the problem.  No luck.


/* This is the fusion configuration file.  Adjust as necessary. */
{
    /* The general section contains settings that are general to
       fusion as a whole. */
    "general": {
            /* PHP is the default and only script language supported.
               Don"t change this. */
            "scriptLanguage": "php",

            /* A directory on this system that fusion can use for
               temporary files. */
            "temporaryDirectory": "/tmp"
IS THIS THE SYSTEM ROOT DIRECTORY?

    },
    /* The MapGuide section is required if you are installing
       fusion for MapGuide. */
    "mapguide": {
            /* The WebTierURL is the url to mapguide, it should start
               with http and end with /mapguide.  If you have installed
               fusion inside the www directory of MapGuide, then you can
               leave this empty as it will be automatically calculated. */
           "webTierUrl": ""
    },
    /* The MapServer section is required if you are installing fusion
       for MapServer. */
   "mapserver": {
            /* The URL of the mapserver CGI that you want to use.  */
            "cgi": "/var/www/cgi-bin/mapserv",
            /* The file system path to where mapserver should put
                web-accessible temporary images. */
            "imagePath": "/tmp/ms_tmp",
IS THIS THE SYSTEM ROOT OR THE WEBSERVER ROOT?
ie: /var/www/htdocs
 
            /* The URL to the image path configured above. */
            "imageUrl": "http://localhost/tmp/ms_tmp",
            /* The file system path to where mapserver should put
                web-accessible temporary legend images. */
            "legendIconCacheDir":"/tmp/ms_tmp"
IS THIS THE SYSTEM ROOT OR THE WEBSERVER ROOT?
ie: /var/www/htdocs

    }
}


Thanks for the help!


--
andrew

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Paul Spencer-2

Re: Mapfile not displaying in Fusion for MapServer

Reply Threaded More More options
Print post
Permalink
This is the problem.  The URL to the mapserv CGI is the URL, not the  
path on the system.  this should be /cgi-bin/mapserv or http://216.93.173.156/cgi-bin/mapserv

Cheers

Paul

On 26-Oct-08, at 11:09 AM, Andrew Parker wrote:

>           /* The URL of the mapserver CGI that you want to use.  */
>           "cgi": "/var/www/cgi-bin/mapserv",


__________________________________________

    Paul Spencer
    Chief Technology Officer
    DM Solutions Group Inc
    http://research.dmsolutions.ca/

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Andrew Parker-3

Re: Mapfile not displaying in Fusion for MapServer

Reply Threaded More More options
Print post
Permalink
Oh thank you thank you...and thank you.


~ Andrew




Paul Spencer wrote:

> This is the problem.  The URL to the mapserv CGI is the URL, not the
> path on the system.  this should be /cgi-bin/mapserv or
> http://216.93.173.156/cgi-bin/mapserv
>
> Cheers
>
> Paul
>
> On 26-Oct-08, at 11:09 AM, Andrew Parker wrote:
>
>>           /* The URL of the mapserver CGI that you want to use.  */
>>           "cgi": "/var/www/cgi-bin/mapserv",
>
>
> __________________________________________
>
>    Paul Spencer
>    Chief Technology Officer
>    DM Solutions Group Inc
>    http://research.dmsolutions.ca/
>
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users