[fusion-users] Mapfile not displaying in Fusion for MapServer

Andrew Parker andrew at source3.com
Sun Oct 26 11:09:47 EDT 2008


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



More information about the fusion-users mailing list