Hi John,

The approot option is present:

--approot arg                 application root for private support files; if
                              unspecified, the value of the environment
                              variable $WT_APP_ROOT is used, or else the
                              current working directory

If I'm not mistaken, this was first introduced in wt 3.1.9.

Actually the examples respect approot, but you have to set it to the
example's source directory. We fixed this because some connectors
(e.g. ISAPI) don't allow to specify the CWD.

Best regards,
Wim.

2011/5/3 John Robson <[email protected]>:
> I found the problem!!! was not permissions, but I changed the AppRoot in
> "/etc/wt/wt_config.xml". (for my personal use)
>
> The current AppRoot is required for all my sites, but the examples were
> made for an empty Wt AppRoot.
>
> It would be important to have the option:  --approot  in wthttp
>
> /usr/lib/Wt/examples/charts/charts.wt --approot
> /usr/lib/Wt/examples/charts/ --docroot /usr/lib/Wt/examples/charts/
> --http-addr 0.0.0.0 --http-port 10030
> or
> /usr/lib/Wt/examples/charts/charts.wt --approot . --docroot
> /usr/lib/Wt/examples/charts/ --http-addr 0.0.0.0 --http-port 10030
>
>
> Pau Garcia i Quiles already asked for it at:
> http://comments.gmane.org/gmane.comp.web.witty.general/6221
>
> Koen, I also think important to set approots, because not always the
> sites are hosted on the same place.
>
> John
>
> On 05/03/2011 03:27 AM, Wim Dumon wrote:
>> 2011/5/3 H.S.Rai<[email protected]>:
>>> On Tue, May 3, 2011 at 2:44 AM, John Robson<[email protected]>  wrote:
>>>> $ /usr/lib/Wt/examples/charts/charts.wt --docroot
>>>> /usr/lib/Wt/examples/charts/ --http-addr 0.0.0.0 --http-port 10030
>>>>
>>>> Not show html.
>>>>
>>>> ??introduction??
>>>
>>> Problem of path or permission.
>>>
>>> Follow documentation faithfully, it will work.
>>>
>>
>> A little more explanation:
>> The ??sometext?? is an indication that a translation key (= the
>> tr("sometext") that you see in the code) could not be resolved. The
>> message resource bundles are .xml files, and in the examples they are
>> supposed to be found in the CWD.
>> The error-missing-data is specific to the chart examples and indicates
>> that the .csv files containing the chart data could not be found.
>>
>> Most likely, these could not be found in the CWD of your application,
>> or could not be read because of permission issues.
>>
>> BR,
>> Wim Dumon.
>>
>> ------------------------------------------------------------------------------
>> WhatsUp Gold - Download Free Network Management Software
>> The most intuitive, comprehensive, and cost-effective network
>> management toolset available today.  Delivers lowest initial
>> acquisition cost and overall TCO of any competing solution.
>> http://p.sf.net/sfu/whatsupgold-sd
>
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to