If you put an image in /etc/apache2/tmp/ms_tmp/<br><br>and your browse to <a href="http://localhost/tmp/ms_tmp" target="_blank">http://localhost/tmp/ms_tmp</a> do you see the image in the web browser. <br><br>Also you have not told us what error message you are receiving when you browse to the fusion application. <br>
<br>Cheers<br><br>Paul D<br><br><div class="gmail_quote">On Tue, Oct 28, 2008 at 12:17 PM, Andrew Parker <span dir="ltr"><<a href="mailto:andrew@source3.com">andrew@source3.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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).<br>
<br>
This is what I did:<br>
1. verified that the ServerRoot is "/etc/apache2"<br>
2. verified that the DocumentRoot is set to "/var/www"<br>
3. verified that "/etc/ apache2/tmp" exists and permissions set to 777<br>
4. verfied that "/var/www/tmp/ms_tmp" exists and permissions set to 777<br>
5. Modified Fusions' config.json as shown below<br>
5. Restarted apache2<br>
<br>
<br>
current configuration of config.json:<div class="Ih2E3d"><br>
<br>
/* This is the fusion configuration file. Adjust as necessary. */<br>
{<br>
/* The general section contains settings that are general to<br>
fusion as a whole. */<br>
"general": {<br>
/* PHP is the default and only script language supported.<br>
Don"t change this. */<br>
"scriptLanguage": "php",<br>
<br>
/* A directory on this system that fusion can use for<br>
temporary files. */<br></div>
"temporaryDirectory": "/etc/apache2/tmp"<div class="Ih2E3d"><br>
},<br>
/* The MapGuide section is required if you are installing<br>
fusion for MapGuide. */<br>
"mapguide": {<br>
/* The WebTierURL is the url to mapguide, it should start<br>
with http and end with /mapguide. If you have installed<br>
fusion inside the www directory of MapGuide, then you can<br>
leave this empty as it will be automatically calculated. */<br>
"webTierUrl": ""<br>
},<br>
/* The MapServer section is required if you are installing fusion<br>
for MapServer. */<br>
"mapserver": {<br>
/* The URL of the mapserver CGI that you want to use. */<br>
"cgi": "/cgi-bin/mapserv",<br>
/* The file system path to where mapserver should put<br>
web-accessible temporary images. */<br></div>
"imagePath": "/var/www/tmp/ms_tmp",<div class="Ih2E3d"><br>
/* The URL to the image path configured above. */<br>
"imageUrl": "<a href="http://localhost/tmp/ms_tmp" target="_blank">http://localhost/tmp/ms_tmp</a>",<br>
/* The file system path to where mapserver should put<br>
web-accessible temporary legend images. */<br></div>
"legendIconCacheDir":"/var/www/tmp/ms_tmp"<br>
}<br>
}<br>
<br>
Any other setting/configurations I should check?<br>
<br>
In a twisted sort of way, I love this debugging stuff!<br>
<br>
~andrew<br>
<br>
<br>
<br>
<br>
Paul Deschamps wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Your problem is right there in your config.<br>
<br>
/* A directory on this system that fusion can use for<br>
temporary files. */<br>
"temporaryDirectory": "/tmp"<br>
<br>
should be:<br>
<br>
"temporaryDirectory": "/etc/apache2/tmp"<br>
<br>
also look at the image path and imageURL values.<br>
<br>
"imagePath": "/tmp/ms_tmp",<br>
/* The URL to the image path configured above. */<br>
"imageUrl": "<a href="http://localhost/tmp/ms_tmp" target="_blank">http://localhost/tmp/ms_tmp</a>",<br>
/* The file system path to where mapserver should put<br>
web-accessible temporary legend images. */<br>
"legendIconCacheDir":"/tmp/ms_<br>
<br>
tmp"<br>
<br>
<br>
<br>
Cheers<br>
<br>
Paul D<br>
<br>
<br>
<br></div><div><div></div><div class="Wj3C7c">
On Tue, Oct 28, 2008 at 9:51 AM, Andrew Parker <<a href="mailto:andrew@source3.com" target="_blank">andrew@source3.com</a> <mailto:<a href="mailto:andrew@source3.com" target="_blank">andrew@source3.com</a>>> wrote:<br>
<br>
I got the Fusion Demo working as discussed in<br>
<a href="http://n2.nabble.com/Mapfile-not-displaying-in-Fusion-for-MapServer-td1379147.html" target="_blank">http://n2.nabble.com/Mapfile-not-displaying-in-Fusion-for-MapServer-td1379147.html</a>.<br>
The working Demo uses HostLinux offered by HostGIS.<br>
<br>
When I try to view the Demo using Ubuntu 8.04 server (and Ubuntu<br>
7.10) I can only see the html layout, no layer tree or toolbars.<br>
However, I can see the mapfile using<br>
<a href="http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/chp2/hello.map" target="_blank">http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/chp2/hello.map</a><br>
<<a href="http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/chp2/hello.map" target="_blank">http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/chp2/hello.map</a>>.<br>
<br>
I think the problem is where Fusion and MapServer is storing the<br>
temporary files. So I started playing around with the paths. The<br>
config.json file is as follows:<br>
<br>
<br>
/* This is the fusion configuration file. Adjust as necessary. */<br>
{<br>
/* The general section contains settings that are general to<br>
fusion as a whole. */<br>
"general": {<br>
/* PHP is the default and only script language supported.<br>
Don"t change this. */<br>
"scriptLanguage": "php",<br>
<br>
/* A directory on this system that fusion can use for<br>
temporary files. */<br>
"temporaryDirectory": "/tmp"<br>
},<br>
/* The MapGuide section is required if you are installing<br>
fusion for MapGuide. */<br>
"mapguide": {<br>
/* The WebTierURL is the url to mapguide, it should start<br>
with http and end with /mapguide. If you have installed<br>
fusion inside the www directory of MapGuide, then you can<br>
leave this empty as it will be automatically calculated. */<br>
"webTierUrl": ""<br>
},<br>
/* The MapServer section is required if you are installing fusion<br>
for MapServer. */<br>
"mapserver": {<br>
/* The URL of the mapserver CGI that you want to use. */<br>
"cgi": "/cgi-bin/mapserv",<br>
/* The file system path to where mapserver should put<br>
web-accessible temporary images. */<br>
"imagePath": "/tmp/ms_tmp",<br>
/* The URL to the image path configured above. */<br>
"imageUrl": "<a href="http://localhost/tmp/ms_tmp" target="_blank">http://localhost/tmp/ms_tmp</a>",<br>
/* The file system path to where mapserver should put<br>
web-accessible temporary legend images. */<br>
"legendIconCacheDir":"/tmp/ms_tmp"<br>
}<br>
}<br>
<br>
The ServerRoot in apache2 is /etc/apache2. The apache2<br>
DocumentRoot is /var/www.<br>
<br>
Therefore, I created the directory tmp (/etc/apache2/tmp) and set<br>
permission to 777. Restarted apache2 and tested the demo. Same<br>
results. Looked in /etc/apache2/tmp and did not see any Fusion<br>
session files. I also create the /tmp/ms_tmp directories in<br>
/var/www and /var. No temp files were saved in these directories.<br>
Then I decided to change the SeverRoot to /var and /var/www to see<br>
what happens. Restarted apache2 and same results, only the html<br>
layout.<br>
<br>
Know I am out of ideas. Does anyone have an idea how to fix this.<br>
I really want to include how to get Fusion working in Ubuntu in<br>
my HowTo I am writing for grad school.<br>
<br>
Thank you very much.<br>
<br>
-- Andrew<br>
<br>
_______________________________________________<br>
fusion-users mailing list<br></div></div>
<a href="mailto:fusion-users@lists.osgeo.org" target="_blank">fusion-users@lists.osgeo.org</a> <mailto:<a href="mailto:fusion-users@lists.osgeo.org" target="_blank">fusion-users@lists.osgeo.org</a>><div class="Ih2E3d">
<br>
<a href="http://lists.osgeo.org/mailman/listinfo/fusion-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br>
<br>
<br>
<br>
<br>
-- <br>
Paul Deschamps<br>
Applications Specialist<br>
DM Solutions Group Inc.<br>
<br>
Office: (613) 565-5056 x28<br></div>
<a href="mailto:pdeschamps@dmsolutions.ca" target="_blank">pdeschamps@dmsolutions.ca</a> <mailto:<a href="mailto:pdeschamps@dmsolutions.ca" target="_blank">pdeschamps@dmsolutions.ca</a>><div class="Ih2E3d"><br>
<a href="http://www.dmsolutions.ca" target="_blank">http://www.dmsolutions.ca</a><br>
<a href="http://research.dmsolutions.ca" target="_blank">http://research.dmsolutions.ca</a><br>
<br>
</div></blockquote><div><div></div><div class="Wj3C7c">
_______________________________________________<br>
fusion-users mailing list<br>
<a href="mailto:fusion-users@lists.osgeo.org" target="_blank">fusion-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/fusion-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/fusion-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Paul Deschamps<br> Applications Specialist<br> DM Solutions Group Inc.<br><br> Office: (613) 565-5056 x28<br> <a href="mailto:pdeschamps@dmsolutions.ca">pdeschamps@dmsolutions.ca</a><br>
<a href="http://www.dmsolutions.ca">http://www.dmsolutions.ca</a><br> <a href="http://research.dmsolutions.ca">http://research.dmsolutions.ca</a><br> <br><br>