[Klone-users] new user and problem with helloworld.kl1 example

Mark Richards mark.richards at massmicro.com
Mon Aug 4 04:48:51 EDT 2008


smlabs wrote:
> Hello Stefano,
> 
> thank you for your answer...
> I have some dubts on the dir structure on the foxboard... In fact I saw 
> the wiki page "using_klone_as_a_normal_server", but
> I don't remeber where can I read the following infos for the fox:
> 
>    *
>      /var/www/htdocs: for static contents (HTML, images, flash, etc.)
>    *
>      /var/www/cgi-bin: CGI programs
>    *
>      /var/www/phpwiki: PHP wiki served by wiki.mysite.com virtual host
> 
> do you have any experience on the foxboard?

I have a lot of experience with the AXIS which is the Foxboard's parent :)

It appears maybe there is confusion over the directory structure on the 
host and that embedded within the klone server.

Remember that when you compile klone, stuff in the directories goes 
along for the ride.


/m


> 
> regards.
> 
> 
> Stefano Barbato ha scritto:
>> If you are using the configuration suggested in the 
>> "using_klone_as_a_normal_server" wiki page you can copy your CSS in 
>> the /var/www/htdocs directory (see doc_root variable in kloned.conf 
>> file); otherwise just copy all static files into 
>> ${klone-src-directory}/webapp/www/ and run 'make' to embed such files 
>> into the server executable (note that you must recompile if you modify 
>> any file).
>>
>> s
>>
>>
>>
>>
>> On 01/ago/08, at 07:46, smlabs wrote:
>>
>>> ok... thanks.
>>> I'll look for the absolute path php-cgi on the foxboard.
>>>
>>> Last:   In the case I'd use a particular CSS, do I have to copy that 
>>> in the same directory of kloned?
>>>
>>> regards.
>>>
>>> thomas fossati ha scritto:
>>>> Hi,
>>>>
>>>> On Jul 31, 2008, at 10:22 PM, smlabs wrote:
>>>>> I don't know how may I run php and klone together on the fox. In 
>>>>> fact I read this topic in the wiki:
>>>>> http://wiki.koanlogic.com/doku.php?id=using_klone_as_a_normal_server
>>>>
>>>> yes you can, wiki.koalogic.com is klone+php (dokuwiki).
>>>>
>>>> Some hints follow:
>>>> a) your klone app must be configured with cgi support enabled (i.e. 
>>>> KLONE_CONF_ARGS += --enable_cgi);
>>>> b) the activation record  of your klapp in the kloned.conf file must 
>>>> contain a directive to dispatch .php files to their handler (e.g.: 
>>>> "cgi.php.handler /usr/bin/php-cgi" or whatever is php-cgi's path on 
>>>> your system).
>>>>
>>>> Anyway I'd recommend this solution only in case you have legacy php 
>>>> code to reuse.  Otherwise, if you are writing a klone-app from 
>>>> scratch and you can handle one of C/C++, you will find coding .kl1 
>>>> files a pleasant experience :) - especially is performance and 
>>>> low-level interaction is a concern (if you are using a FOX board I 
>>>> guess so).
>>>>
>>>>> but I don't understand if boa server could work with klone... may 
>>>>> yes...
>>>>
>>>> they are two different beasts, use the one that fits your need.
>>>>
>>>> ciao, t.
>>>>
>>>> _______________________________________________
>>>> Klone-users mailing list
>>>> Klone-users at koanlogic.com
>>>> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>>>>
>>>
>>> _______________________________________________
>>> Klone-users mailing list
>>> Klone-users at koanlogic.com
>>> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>>>
>>
>>
>> _______________________________________________
>> Klone-users mailing list
>> Klone-users at koanlogic.com
>> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>>
> 
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users





More information about the klone-users mailing list