[fusion-users] Demo works in HostLinux but not Ubuntu 8.04 Server

Paul Deschamps pdeschamps at dmsolutions.ca
Tue Oct 28 13:43:22 EDT 2008


If you put an image in /etc/apache2/tmp/ms_tmp/

and your browse to http://localhost/tmp/ms_tmp do you see the image in the
web browser.

Also you have not told us what error message you are receiving when you
browse to the fusion application.

Cheers

Paul D

On Tue, Oct 28, 2008 at 12:17 PM, Andrew Parker <andrew at source3.com> wrote:

> Ok, I must be missing the obvious as I still cannot see the demo.  I made
> the changes per Paul D's suggestions (see below).
>
> This is what I did:
> 1. verified that the ServerRoot is "/etc/apache2"
> 2. verified that the DocumentRoot is set to "/var/www"
> 3. verified that "/etc/ apache2/tmp" exists and permissions set to 777
> 4. verfied that "/var/www/tmp/ms_tmp" exists and permissions set to 777
> 5. Modified Fusions' config.json as shown below
> 5. Restarted apache2
>
>
> current configuration of config.json:
>
> /* 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": "/etc/apache2/tmp"
>   },
>   /* 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": "/cgi-bin/mapserv",
>       /* The file system path to where mapserver should put
>           web-accessible temporary images. */
>       "imagePath": "/var/www/tmp/ms_tmp",
>       /* 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":"/var/www/tmp/ms_tmp"
>   }
> }
>
> Any other setting/configurations I should check?
>
> In a twisted sort of way, I love this debugging stuff!
>
> ~andrew
>
>
>
>
> Paul Deschamps wrote:
>
>> Your problem is right there in your config.
>>
>>      /* A directory on this system that fusion can use for
>>         temporary files. */
>>      "temporaryDirectory": "/tmp"
>>
>> should be:
>>
>>      "temporaryDirectory": "/etc/apache2/tmp"
>>
>> also look at the image path and imageURL values.
>>
>>      "imagePath": "/tmp/ms_tmp",
>>      /* 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"
>>
>>
>>
>> Cheers
>>
>> Paul D
>>
>>
>>
>> On Tue, Oct 28, 2008 at 9:51 AM, Andrew Parker <andrew at source3.com<mailto:
>> andrew at source3.com>> wrote:
>>
>>    I got the Fusion Demo working as discussed in
>>
>> http://n2.nabble.com/Mapfile-not-displaying-in-Fusion-for-MapServer-td1379147.html
>> .
>>     The working Demo uses HostLinux offered by HostGIS.
>>
>>    When I try to view the Demo using Ubuntu 8.04 server (and Ubuntu
>>    7.10) I can only see the html layout, no layer tree or toolbars.
>>     However, I can see the mapfile using
>>    http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/chp2/hello.map
>>    <http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/chp2/hello.map
>> >.
>>
>>    I think the problem is where Fusion and MapServer is storing the
>>    temporary files.  So I started playing around with the paths.  The
>>    config.json file is as follows:
>>
>>
>>    /* 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"
>>      },
>>      /* 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": "/cgi-bin/mapserv",
>>          /* The file system path to where mapserver should put
>>              web-accessible temporary images. */
>>          "imagePath": "/tmp/ms_tmp",
>>          /* 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"
>>      }
>>    }
>>
>>    The ServerRoot in apache2 is /etc/apache2.  The apache2
>>    DocumentRoot is /var/www.
>>
>>    Therefore, I created the directory tmp (/etc/apache2/tmp) and set
>>    permission to 777.  Restarted apache2 and tested the demo.  Same
>>    results.  Looked in /etc/apache2/tmp and did not see any Fusion
>>    session files.  I also create the /tmp/ms_tmp directories in
>>    /var/www and /var.  No temp files were saved in these directories.
>>    Then I decided to change the SeverRoot to /var and /var/www to see
>>    what happens.  Restarted apache2 and same results, only the html
>>    layout.
>>
>>    Know I am out of ideas.  Does anyone have an idea how to fix this.
>>     I really want to include how to get Fusion working in Ubuntu in
>>    my HowTo I am writing for grad school.
>>
>>    Thank you very much.
>>
>>    --    Andrew
>>
>>    _______________________________________________
>>    fusion-users mailing list
>>    fusion-users at lists.osgeo.org <mailto:fusion-users at lists.osgeo.org>
>>    http://lists.osgeo.org/mailman/listinfo/fusion-users
>>
>>
>>
>>
>> --
>>   Paul Deschamps
>>   Applications Specialist
>>   DM Solutions Group Inc.
>>
>>   Office: (613) 565-5056 x28
>>   pdeschamps at dmsolutions.ca <mailto:pdeschamps at dmsolutions.ca>
>>   http://www.dmsolutions.ca
>>   http://research.dmsolutions.ca
>>
>>
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>



-- 
   Paul Deschamps
   Applications Specialist
   DM Solutions Group Inc.

   Office: (613) 565-5056 x28
   pdeschamps at dmsolutions.ca
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fusion-users/attachments/20081028/9eb42e17/attachment-0001.html


More information about the fusion-users mailing list