[fusion-users] Demo works in HostLinux but not Ubuntu 8.04 Server
Andrew Parker
andrew at source3.com
Tue Oct 28 09:51:57 EDT 2008
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.
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
More information about the fusion-users
mailing list