<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2> Jussi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You seem to lack the main htdocs directory. The
htdocs directory (that contains chameleon.php) should be at the same level as
the directory that you called "sample". But it doesn't exist. That is why your
samples won't work. By trying your "Enhanced JSAPI" widget, you can actually see
that error; it's looking for "../../htdocs/chameleon.php". You probably
placed your "htdocs" folder outside of your public area, but that means you'd
have to move the samples too, or modify the, currently relative, paths in the
phtml files.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Try extracting your installation package again with
its original folder structure, and place the directory in the right place. Also,
for security purposes, perhaps turn off directory browsing, although it served
me well :-). (to do this, remove the "Indexes" value, after the "options"
parameter of the web object, and of the "directory" object in the server
configuration file (httpd.conf).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@lists.maptools.org">chameleon-bounces@lists.maptools.org</A>
[mailto:chameleon-bounces@lists.maptools.org] On Behalf Of Paul Spencer<BR>Sent:
8 April 2005 08:06<BR>To: Jussi Rasinmäki<BR>Cc: <A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A><BR>Subject:
Re: [Chameleon] Problems with local settings and sample
applications</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>weird. Try adding</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>$GLOBALS['gszAppPath'] =
'/path/to/your/app';</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>before you include chameleon.php</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>What version of php/apache are you
using?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Paul</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Jussi Rasinmäki wrote:<BR>> Hi Paul,<BR>>
<BR>> I'm obviously doing something wrong, but can't quite figure out what it
is.<BR>> sample_basic_plainbuttons.phtml returns internal server error and
the <BR>> Apache log has the following entry:<BR>> Premature end of script
headers: php, referer: <BR>> <A
href="http://latitude.mmvar.helsinki.fi/webmap/sample/htdocs/">http://latitude.mmvar.helsinki.fi/webmap/sample/htdocs/</A><BR>>
<BR>> I've edited sample_basic_plainbuttons.phtml:<BR>> include(
"/opt/app/chameleon/htdocs/chameleon.php" );<BR>> <BR>> and
chameleon.xml:<BR>>
<param-name>web_server_path</param-name><BR>>
<BR>>
<param-value>http://latitude.mmvar.helsinki.fi/chameleon/</param-value><BR>>
...<BR>>
<param-name>mapscript_module</param-name><BR>>
<param-value>php_mapscript.so</param-value><BR>>
...<BR>>
<param-name>button_cache_path</param-name><BR>>
<param-value>/tmp/ms_tmp/buttons</param-value><BR>>
...<BR>>
<param-name>button_cache_web_path</param-name><BR>>
<param-value>/ms_temp/buttons</param-value><BR>>
...<BR>>
<param-name>tmp_web_path</param-name><BR>>
<param-value>/ms_temp</param-value><BR>>
...<BR>>
<param-name>tmp_img_path</param-name><BR>>
<param-value>/tmp/ms_tmp</param-value><BR>> <BR>> I guess it's
something to do with finding the chameleon.php as my <BR>> earlier addition
of app_path to the chameleon.xml got rid of the <BR>> internal server error
but resulted in the app_context error.<BR>> <BR>> Jussi<BR>> <BR>>
----- Original Message ----- From: "Paul Spencer" <<A
href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</A>><BR>>
To: "Jussi Rasinmäki" <<A
href="mailto:jussi.rasinmaki@helsinki.fi">jussi.rasinmaki@helsinki.fi</A>><BR>>
Cc: <<A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>><BR>>
Sent: Thursday, April 07, 2005 6:01 PM<BR>> Subject: Re: [Chameleon] Problems
with local settings and sample <BR>> applications<BR>> <BR>>
<BR>>> Opps, you are exactly correct. I think that must have been a
copy and <BR>>> paste error from a previous
version.<BR>>><BR>>> default_template and default_context are really
intended to be in <BR>>> cwc2.xml as they only affect the 'Service
Instance'.<BR>>><BR>>> You do not need an app_path entry in the
configuration file.<BR>>><BR>>> The errors coming from
app_context.php normally mean that the xml <BR>>> structure in
chameleon.xml is invalid in some way ... can be very <BR>>> tricky to
find.<BR>>><BR>>> I would try replacing chameleon.xml with
chameleon.xml-dist and <BR>>> starting over again without adding any new
tags and see what happens.<BR>>><BR>>>
Cheers<BR>>><BR>>> Paul<BR>>><BR>>> Jussi Rasinmäki
wrote:<BR>>><BR>>>> 2.0<BR>>>><BR>>>> -----
Original Message ----- From: "Paul Spencer" <BR>>>> <<A
href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</A>><BR>>>>
To: "Jussi Rasinmäki" <<A
href="mailto:jussi.rasinmaki@helsinki.fi">jussi.rasinmaki@helsinki.fi</A>><BR>>>>
Cc: <<A
href="mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org</A>><BR>>>>
Sent: Thursday, April 07, 2005 3:11 PM<BR>>>> Subject: Re: [Chameleon]
Problems with local settings and sample<BR>>>>
applications<BR>>>><BR>>>><BR>>>><BR>>>>>
Jussi,<BR>>>>><BR>>>>> what version of Chameleon are you
using?<BR>>>>><BR>>>>>
Paul<BR>>>>><BR>>>>> Jussi Rasinmäki
wrote:<BR>>>>><BR>>>>>> Hi
all,<BR>>>>>><BR>>>>>> I've got problems with
Chameleon's local settings on Linux. The<BR>>>>>>
InstallationGuide lists in Table 3 the local settings most likely
to<BR>>>><BR>>>><BR>>>>
need<BR>>>><BR>>>>>> changing. These are claimed to be
in cwc2.xml. However, most of
those<BR>>>><BR>>>><BR>>>> can
be<BR>>>><BR>>>>>> found in chameleon.xml except for the
app_path setting which I added.<BR>>>>>> default_template and
default_context settings are also missing from<BR>>>>>>
chameleon.xml. As I couldn't figure out what they mean, I've not
added<BR>>>>>>
those.<BR>>>>>><BR>>>>>> This gets me as far as
getting the following output from<BR>>>>>>
sample_basic_plainbuttons.phtml:<BR>>>>>><BR>>>>>>
Notice: Undefined offset: 1 in<BR>>>>>>
/opt/app/chameleon/htdocs/common/appcontext/appcontext.php on line
208<BR>>>>>><BR>>>>>> Notice: Undefined index:
param-name in<BR>>>>>>
/opt/app/chameleon/htdocs/common/appcontext/appcontext.php on line
211<BR>>>>>><BR>>>>>> Any pointers as to what's
wrong would be greatly
appreciated.<BR>>>>>><BR>>>>>>
Regards,<BR>>>>>><BR>>>>>>
Jussi<BR>>>>>><BR>>>>>>
_______________________________________________<BR>>>>>>
Chameleon mailing list<BR>>>>>> <A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR>>>>>>
<A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR>>>>>><BR>>>>><BR>>>><BR>>>>
_______________________________________________<BR>>>> Chameleon
mailing list<BR>>>> <A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR>>>>
<A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR>>>><BR>>><BR>>
<BR>> <BR>>
<BR>_______________________________________________<BR>Chameleon mailing
list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>JACOB DELFOS<BR>SPATIAL INFORMATION
ANALYST<BR>Maunsell Australia Pty Ltd<BR>629 Newcastle Street, WA 6007<BR>PO Box
81, WA 6902<BR>Leederville <BR>Western Australia<BR>ABN 20 093 846
925</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Tel + 61 8 9281
6185<BR>Fax + 61 8 9281 6297<BR><A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A></FONT></DIV></BODY></HTML>