[Chameleon] RE: Chameleon images access problem ....

Sears, Jeremy Jeremy.Sears at CCRS.NRCan.gc.ca
Fri Mar 17 11:44:45 EST 2006


Hi Gail,
Thanks for the response.
>>As I gather from your postings the chameleon page is loading fine apart
from the keymap and main image? 
Yes, the chameleon page is loading fine, except for the key map and the main
map image.... 

For clarity: When I say that the chameleon page is loading I mean that the
chameleon generated elements (widget button images, scale bar etc) are
showing up fine. However after reading you suggestion I checked to see if I
could view the /chameleon/cwc2 page that indicates if the instance is
working. From the LAN I could view the cwc2 page with the address
http://LAN.address/chameleon/cwc2/
however, when viewing from the WAN the address
http://WAN.address/chameleon/cwc2 didnt work.
After noticing this I modified my chameleon httpd.conf files to reflect the
restrictions placed on WAN access to the application by the proxy,... the
WAN address includes a subdirectory.. so... to access the cwc2 page I needed
to use a WAN address somthing like:
http://WAN.address/asubfolder/chameleon/cwc2. I changed the alias' 
from somthing like:
>Alias /chameleon/cwc2 "/folder1/folder2/ms4w/apps/chameleon/cwc2/htdocs
to somthing like:
>Alias /asubfolder/chameleon/cwc2
"/folder1/folder2/ms4w/apps/chameleon/cwc2/htdocs

This had produced sleightly different results when viewing the mappage from
WAN. Before the change, The main map image and the key map displayed as
white, blank images. After the change these images displayed as greyed-out
broken links.

I then both sets of alias deffinitions for each folder in chameleons
httpd.conf file like:
Alias /chameleon/cwc2 "/folder1/folder2/ms4w/apps/chameleon/cwc2/htdocs
and
Alias /asubfolder/chameleon/cwc2
"/folder1/folder2/ms4w/apps/chameleon/cwc2/htdocs

this resulted in the mappage behaving as it did in the first place, main map
and key map showing up a white, all blank images.

>>Have you looked at your php log file and session files?
Is there anything inparticular I should be looking for in the session files?

>> I suggest doing the following in the php.ini file go to the session
section and set ....
Thanks, I tried this and the results were the same (of course I remembered
to restart the web server and clear my browser's cache!)

>>Also to check to see if everthing is configured properly load in your web
browser
>>http://yourserver/chamemeleon/admin/main.phtml it provides details of
chameleon, cwc2, mapscript and php

>> configuration.

I can view this page ok.
Although I must use an address more like
http://yourserver/asubfolder/chamemeleon/admin/main.phtml 
when viewing from WAN.

If you have any further suggestions Id love to hear them.
Thanks Again,
Jeremy



-----Original Message-----
From: Gail Millin [mailto:Gail.Millin at manchester.ac.uk]
Sent: March 17, 2006 4:12 AM
To: chameleon at lists.maptools.org; Jeremy.Sears at CCRS.NRCan.gc.ca
Subject: Chameleon images access problem ....


Hi Jeremy

As I gather from your postings the chameleon page is loading fine apart from
the keymap and main image? 

Have you looked at your php log file and session files?

When I experienced this problem it was because a session lock was being
generated which blocked the details of the Mapfile being served hence no
image. 

I suggest doing the following in the php.ini file go to the session section
and set

Session.save_handler = files
Session.save_path = c:/Inetpub/wwwroot/tmp
Session.use_cookies = 1

Then reload your chameleon application so it generates the session folder in
the specified directory tmp. Check that a lock file is being created.
If it is then go to
C:\Inetpub\wwwroot\chameleon\htdocs\common\session\session.php

Comment out the line $szLockFile = $szSessionDir using /* */
Set the variable $GLOBALS [szDebugDir] = "c:/Inetpub/wwwroot/tmp/"

Then reload the application and see if the images appear. 

Also to check to see if everthing is configured properly load in your web
browser http://yourserver/chamemeleon/admin/main.phtml it provides details
of chameleon, cwc2, mapscript and php configuration. 

Hope this helps?

Gail Millin
 
Geodata Interoperability Support Officer
The University of Manchester
Kilburn Building
Oxford Road
M13 9PL
 
Tel: +44 (0) 161 275 0581
E-mail: Gail.Millin at manchester.ac.uk
Website: http://www.landmap.ac.uk 
 
> 
> Message: 1
> Date: Thu, 16 Mar 2006 16:37:16 -0500
> From: "Sears, Jeremy" <Jeremy.Sears at CCRS.NRCan.gc.ca>
> Subject: RE: [Chameleon] Chameleon images access problem ....
> To: "'Julien-Samuel Lacroix'" <jlacroix at mapgears.com>
> Cc: chameleon at lists.maptools.org
> Message-ID:
> 	<B7F9814D6850C949947CF8DEA13477810331621E at s5-ccr-
> r2.ccrs.nrcan.gc.ca>
> Content-Type: text/plain;	charset="ISO-8859-1"
> 
> Hi Julien,
> Thanks for the response.
> 
> >>What is the path to the map and button images built by Chameleon?
> 
> Ok, when I access the application from within the LAN: (application works
> fine from within LAN)
> 
> path to button images built by chameleon:
> http://LAN.Address/adir/ms_tmp/buttons/b9c8ba9f13a339fa082830d6adce742e7.p
> ng
> 
> Path to main map image:
> http://LAN.address/chameleon//common//wrapper/drawmap.php?map_session_mode
> =1
> &run_query=0&sid=4419d4e72c00c&dummy=0.26094800+1142543592&UniqId=11425436
> 49
> 455758&gszPersistentQuery=false
> 
> and when I attempt to access the application from outside the LAN:
> 
> path to button images built by chameleon:(this image works fine)
> https://WEB.Address/adir/ms_tmp/buttons/b436d2260d70037e20a624b0767b57dfc.
> pn
> g
> 
> Path to main map image: (this is a blank image)
> https://WEB.Address/chameleon//skins/default/images/a_pixel.gif
> 
> 
> >>Does the server is visible from the web?
> Is the server visible from the web? Yes, other components of this site
> including html files and php files are all served without any problems to
> the web.
> 
> >>  Is there a Firewall between this machine and the web?
> Yes, Im quite certian we are behind a firewall*
> 
> >> folder containing the images is visible from the web?
> Im quite certian it is. Apache Alias' have been created for /tmp and
> /ms_tmp. These folders are accessable, as is /ms_tmp/buttons.
> 
> >> Did you check the "Block images from this server" option on Firefox?
> The "block images from this server" option is not checked.
> 
> *The computer that has ms4w/chameleon installed is behind a firewall. Our
> IT
> folks have opened up access to the directory inwhich ms4w is installed.
> HTTP
> requests comming from the web are directed to this machiene via proxy. I
> believe its IIS that driects traffic to the ms4w/chameleon install. Do you
> think there could be somesort of configuration issue between IIS and
> Apache?
> Perhaps a firewall setting or 'mis-setting'?
> 
> Thanks for your help!
> Jeremy
> 
> 
> 
> 
> 
> -----Original Message-----
> From: chameleon-bounces at lists.maptools.org
> [mailto:chameleon-bounces at lists.maptools.org]On Behalf Of Julien-Samuel
> Lacroix
> Sent: March 16, 2006 4:06 PM
> To: Sears, Jeremy
> Cc: chameleon at lists.maptools.org
> Subject: Re: [Chameleon] Chameleon images access problem ....
> 
> 
> Hi,
> We'll need to dig to find this one.
> What is the path to the map and button images built by Chameleon?
> This kind of problem is usually due to Apache. Does the server is
> visible from the web? Is there a Firewall between this machine and the
> web? Does the folder containing the images is visible from the web?
> 
> Julien
> PS: Did you check the "Block images from this server" option on Firefox?
> I already experience something like what you describe because of that. :)
> 
> Sears, Jeremy wrote:
> > Hi All,
> > Regarding the post below, I got chameleon's elements to work. However,
> > the map image and key map dont work. Im thinking this may be related
> > more to mapserver rather than chameleon... Any suggestions would be
> great.
> >
> > Thanks
> > Jeremy
> >
> >
> >     -----Original Message-----
> >     *From:* chameleon-bounces at lists.maptools.org
> >     [mailto:chameleon-bounces at lists.maptools.org]*On Behalf Of *Sears,
> >     Jeremy
> >     *Sent:* March 16, 2006 11:23 AM
> >     *To:* chameleon at lists.maptools.org
> >     *Subject:* [Chameleon] Chameleon images access problem ....
> >
> >     Hi All,
> >     IM having a problem with my chameleon installation ....
> >     I have chameleon setup with ms4w on winserver2003.
> >
> >     When I view my application from our LAN (either localhost or another
> >     computer on the LAN) the application works fine.
> >     However, when I attempt to view the application from the WAN, none
> >     of chameleon's elements work. The map, keymap, scalebar, button
> >     images .. etc all show up as broken links.
> >
> >     I have the entire ms4w package installed in in a location off the
> >     root like:
> >
> >     /adirectory/anotherdirectory/ms4w
> >
> >
> >     Does anyone have any thoughts as to why the app works fine when
> >     accessed from LAN but breaks when accesing through WAN?
> >     Thanks
> >     Jeremy
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/chameleon
> 
> --
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon


More information about the Chameleon mailing list