MapTools.org

[Chameleon] Problems getting started ...

Jean-Francois.Doyon@CCRS.NRCan.gc.ca Jean-Francois.Doyon@CCRS.NRCan.gc.ca
Wed, 17 Dec 2003 16:04:12 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C3C4E1.521EBC1C
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

OK, so I've got PHP 4.3.3 compiled the way I want to, as well as
mapserver/mapscript. (Except that I've hacked PHP/MapScript to work =
with PHP
as a module for Apache to test the thread safety).

I've also configured cwc2.xml and renamed it removing the -dist ...

I've made the web user owner of the data directory ...

I've added /tmp/ms_tmp and /tmp/ms_tmp/buttons ...

And I've aliased as such:

    Alias /ms_tmp/ /tmp/ms_tmp/
=20
    Alias /chameleon/ /usr/local/chameleon/htdocs/

Now I'm trying the following URL:

/chameleon/chameleon.php?TEMPLATE=3Ddemo.html&CONTEXT=3Dgmap_context.xml=


And am just getting a blank page ...

To be exact, it contains the following code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html;
charset=3Dwindows-1252"></HEAD>
<BODY></BODY></HTML>

I've also built the "wmsparse" utility.

I guess I'm missing something but I'm all out of ideas !

Find my cwc2.xml attached. <<cwc2.xml>>=20

Any help would be greatly appreciated !

Thanks,

Jean-Fran=E7ois Doyon
Internet Service Development and Systems Support / D=E9veloppement des
services et soutien de syst=E8mes Internet
GeoAccess Division / Division G=E9oAcc=E8s
Canada Center for Remote Sensing / Centre canadien de =
t=E9l=E9d=E9tection
Natural Resources Canada / Ressources naturelles Canada
http://atlas.gc.ca
Phone: (613) 992-4902
Fax: (613) 947-2410


------_=_NextPart_000_01C3C4E1.521EBC1C
Content-Type: application/octet-stream;
	name="cwc2.xml"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="cwc2.xml"

<app-context>=0A=
    <context-param>=0A=
        <param-name>cwc2_url</param-name>=0A=
        =
<param-value>http://gadtemp.ccrs.nrcan.gc.ca/chameleon/</param-value>=0A=
        <description>This is the URL that points to the HTDOCS =
directory of the local cwc2 installation.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>server_data_path</param-name>=0A=
        <param-value>/usr/local/chameleon/data/</param-value>=0A=
        <description>This is where cached capabilities and other =
information, common to each session, should be. When a user start a new =
session, all files from that directory are copied to =
user_session_tmp_path</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>web_server_path</param-name>=0A=
        <param-value>/usr/local/chameleon/htdocs/</param-value>=0A=
        <description>This is where chameleon.php script is =
located.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>ows_schemas_location</param-name>=0A=
        <param-value>http://ogc.dmsolutions.ca</param-value>=0A=
        <description>URL pointing to the root of a repository of OGC =
schemas.  See http://ogc.dmsolutions.ca for an =
example.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>wms_parse_file</param-name>=0A=
        =
<param-value>/usr/local/chameleon/htdocs/common/wmsparse/wmsparse</param=
-value>=0A=
        <description>Full file path to the binary wms parser executable =
('/path/to/wmsparse' on Unix, '/path/to/wmsparse.exe' on Windows).  =
Leave empty to use the built in PHP parser (slower).</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>wms_connectiontimeout</param-name>=0A=
        <param-value>30</param-value>=0A=
        <description>Maximum time in seconds that MapServer will wait =
for an answer from a WMS server.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>allow_upload_context</param-name>=0A=
        <param-value>true</param-value>=0A=
        <description>Enable the "Upload map context" feature? (true or =
false).</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>allow_upload_template</param-name>=0A=
        <param-value>true</param-value>=0A=
        <description>Allow use of the 'TEMPLATE=3D' parameter when =
calling the CWC2 instance to specify any CWC2 HTML template url? (true =
or false)  If set to false then the value of 'default_template' config =
parameter is always used.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>cache_template</param-name>=0A=
        <param-value>true</param-value>=0A=
        <description>If template come from a remote server =
(http://....), the template is download from that remote server and =
saved on local server for further loading. For performace, it is =
prefered to set this value to "true". If the remote server template is =
dynamic, this value should be set to "false" so the template will be =
loaded remotely every page load.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>validate_template</param-name>=0A=
        <param-value>true</param-value>=0A=
        <description>Validate the attributes of each tag in the input =
template.  This should be set to true for debugging but may be set to =
false in a production environment to enhance =
performance.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>default_language</param-name>=0A=
        <param-value>en-CA</param-value>=0A=
        <description>Default language specifier. (en-CA or =
fr-CA)</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>default_template</param-name>=0A=
        =
<param-value>/usr/local/chameleon/htdocs/demo.html</param-value>=0A=
        <description>Default HTML template to use with this CWC2 =
instance.  Used when TEMPLATE=3D parameter not set, or when =
allow_upload_template config parameter is set to =
false.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>invalid_session_template</param-name>=0A=
        <param-value></param-value>=0A=
        <description>Template to display if session is =
invalid.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>default_context</param-name>=0A=
        =
<param-value>/usr/local/chameleon/htdocs/gmap_context.xml</param-value>=0A=
        <description>Default map context to load when starting this =
application</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>map_template</param-name>=0A=
        =
<param-value>/usr/local/chameleon/htdocs/template.map</param-value>=0A=
        <description>Default MapServer mapfile template to use when =
uploading a context file.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>mapscript_module</param-name>=0A=
        <param-value>php_mapscript.so</param-value>=0A=
        <description>Mapscript module name (i.e. php_mapscript_40.dll =
for Windows installations or php_mapscript_40.so for Unix =
installations).</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>log_path</param-name>=0A=
        <param-value>/tmp/</param-value>=0A=
        <description>Directory in which to write log =
files.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>log_error</param-name>=0A=
        <param-value>true</param-value>=0A=
        <description>This define if chameleon should log errors in =
session. If set to false, no errors will be logged at =
all.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>log_level</param-name>=0A=
        <param-value>LOG_ALL</param-value>=0A=
        <description>Control the application runtime logging level.  =
Must be one of LOG_OFF, LOG_QUIET, LOG_VERBOSE or =
LOG_ALL.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
      <param-name>image_type</param-name>=0A=
      <param-value>GIF</param-value>=0A=
      <description>Output image type (eg: PNG, GIF). Must be uppercase. =
This image format MUST be supported by your browser and GD (on the =
server). Please don't change that value unless you know what you'r =
doing.</description>=0A=
    </context-param>    =0A=
=0A=
    <context-param>=0A=
        <param-name>button_cache_path</param-name>=0A=
        <param-value>/tmp/ms_tmp/buttons/</param-value>=0A=
        <description>Directory in which to write image files generated =
for buttons.  This directory must be writable by the web server user =
and web accessible.  For performance reasons, this directory should not =
be cleaned out automatically.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>button_cache_web_path</param-name>=0A=
        <param-value>/ms_tmp/buttons/</param-value>=0A=
        <description>The URL where a browser can find cached button =
images.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>tmp_web_path</param-name>=0A=
        <param-value>/ms_tmp/</param-value>=0A=
        <description>URL where browser can find temporary files as =
context or images</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>tmp_img_path</param-name>=0A=
        <param-value>/tmp/ms_tmp/</param-value>=0A=
        <description>Directory where temporary image files are =
put.</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>context_root</param-name>=0A=
        <param-value>/tmp/</param-value>=0A=
        <description>Absolute root path to context files. All context =
should be in that folder (or sub folder).</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>context_maxsize</param-name>=0A=
        <param-value>1000000</param-value>=0A=
        <description>This is the context file max size that a CWC2 user =
can upload on the server</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>template_root</param-name>=0A=
        <param-value>/tmp/</param-value>=0A=
        <description>Absolute root path to template files. All template =
should be in that folder (or sub folder).</description>=0A=
    </context-param>=0A=
    =0A=
    <context-param>=0A=
        <param-name>fontlist_file</param-name>=0A=
        =
<param-value>/usr/local/chameleon/etc/fonts.txt</param-value>=0A=
        <description>Path and filename of the font list file used by =
MapServer (i.e. /path/to/file/fonts.txt ).</description>=0A=
    </context-param>  =0A=
=0A=
    <context-param>=0A=
        <param-name>symbol_file</param-name>=0A=
        =
<param-value>/usr/local/chameleon/etc/symbols.sym</param-value>=0A=
        <description>Path and filename of the symbol file used by =
MapServer (i.e. /path/to/file/symbols.sym ).</description>=0A=
    </context-param>       =0A=
=0A=
    <context-param>=0A=
        <param-name>textbutton_default_font_size</param-name>=0A=
        <param-value>11</param-value>=0A=
        <description>Buttons font size in points</description>=0A=
    </context-param>  =0A=
=0A=
    <context-param>=0A=
        =
<param-name>textbutton_default_font_antialiasing</param-name>=0A=
        <param-value>true</param-value>=0A=
        <description>Text Button font antialiasing (true or =
false)</description>=0A=
    </context-param>=0A=
=0A=
    <context-param>=0A=
        <param-name>gd_version</param-name>=0A=
        <param-value>gd2</param-value>=0A=
        <description>Version of GD graphic library (gd, =
gd2)</description>=0A=
    </context-param>  =0A=
=0A=
    <context-param>=0A=
        <param-name>freetype_version</param-name>=0A=
        <param-value>freetype</param-value>=0A=
        <description>Version of Freetype library used (use "ttf" for =
Freetype 1.3 or "freetype" for Freetype 2.x)</description>=0A=
    </context-param>  =0A=
    =0A=
    <context-param>=0A=
        <param-name>execution_timeout</param-name>=0A=
        <param-value>120</param-value>=0A=
        <description>The amount of time in seconds to allow PHP to =
process a PHP page.  This includes (for now) the time required to draw =
remote WMS layers which can be lengthy.</description>=0A=
    </context-param>=0A=
=0A=
</app-context>=0A=

------_=_NextPart_000_01C3C4E1.521EBC1C--


This archive was generated by Pipermail.