You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "Marc D. Murray" <ma...@phronein.com> on 2005/04/25 02:08:37 UTC
advanced new user questions
Hey guys, great work on this beast* called Lenya.
I've got a couple of questions regarding the operation of Lenya on a
debian sarge box.
1. I want to know, how does lenya recognise that something (like an XSLT
file) has changed in order to recreate the cached html file created in
the work/cache/live directory.
2. When I create a new document, lenya creates a folder for it along
with an index_en.xml and a record in sitetree.xml. Apart from the record
in sitetree.xml and the presence of the folder/index_en.xml, where else
is there a record of the existence of a document?
I'm trying to speed up the development of my application by manually
editing sitetree.xml and copying an existing folder ( /tutorial ??) that
contains a index_en.xml, rename the folder and bam.... i should have a
new doc in Lenya.
But this doesn't work. I see it appear in the Navigation, but editing it
throws an error.
3. this is more of a general
apache/tomcat/jakarta/cocoon/lenya/linux/java question...
What runs as which user? Who should own the files? what should the
file/directory permissions be?
* beast meant in a nice way
Thanks for your answers.
Marc DM
Re: advanced new user questions
Posted by qMax <qm...@mediasoft.ru>.
Monday, April 25, 2005, 7:08:37 AM, marcdm@phronein.com wrote:
MDM> 2. When I create a new document, lenya creates a folder
MDM> for it along with an index_en.xml and a record in sitetree.xml.
MDM> Apart from the record in sitetree.xml and the presence of the
MDM> folder/index_en.xml, where else is there a record of the
MDM> existence of a document?
MDM> I'm trying to speed up the development of my application
MDM> by manually editing sitetree.xml and copying an existing folder (
MDM> /tutorial ??) that contains a index_en.xml, rename the folder and
MDM> bam.... i should have a new doc in Lenya.
MDM> But this doesn't work. I see it appear in the Navigation,
MDM> but editing it throws an error.
There are also records in
content/workflow/history/authoring/$folder/index_en.xml
and
content/rcml/content/authoring/$folder/index_en.xml
MDM> 3. this is more of a general
MDM> apache/tomcat/jakarta/cocoon/lenya/linux/java question...
MDM> What runs as which user? Who should own the files? what
MDM> should the file/directory permissions be?
AFAIK, lenya does not use seuid or such stuff.
It runs as user, started or setuided servlet container (tomcat4)
and is configured in container configs or statrtup scripts (it could be e.g. tomcat4)
--
qMax
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: advanced new user questions
Posted by Michael Wechner <mi...@wyona.com>.
Marc D. Murray wrote:
> It seems I've found the answers to some of my questions. Just replying
> so that I'm not the only one with the answers
>
> On Sun, 2005-04-24 at 19:08 -0500, Marc D. Murray wrote:
>
>> Hey guys, great work on this beast* called Lenya.
>>
>> I've got a couple of questions regarding the operation of Lenya on a
>> debian sarge box.
>>
>> 1. I want to know, how does lenya recognise that something (like an
>> XSLT file) has changed in order to recreate the cached html file
>> created in the work/cache/live directory.
>
> Still don't know how it checks for recaching, I just know that I
> delete the stuff in the work/cache folder to make it regenerate them
the work/cache is being deleted if a document is being published.
Otherwise one needs to delete it by hand
>>
>> 2. When I create a new document, lenya creates a folder for it along
>> with an index_en.xml and a record in sitetree.xml. Apart from the
>> record in sitetree.xml and the presence of the folder/index_en.xml,
>> where else is there a record of the existence of a document?
>> I'm trying to speed up the development of my application by manually
>> editing sitetree.xml and copying an existing folder ( /tutorial ??)
>> that contains a index_en.xml, rename the folder and bam.... i should
>> have a new doc in Lenya.
>> But this doesn't work. I see it appear in the Navigation, but editing
>> it throws an error.
>
> Make sure that the user that runs tomcar has permissions to write to
> the folders you created.
>
>>
>> 3. this is more of a general
>> apache/tomcat/jakarta/cocoon/lenya/linux/java question...
>> What runs as which user? Who should own the files? what should the
>> file/directory permissions be?
>
> still trying to figure this one out.
I recommend to run everything under a "web" user (and never use "root"),
whereas
if Apache httpd is being run on port 80, then it needs to be started as
root, but
within httpd.conf "web" should be defined, such that it will switch
users when starting up
Michi
>>
>>
>> * beast meant in a nice way
>>
>> Thanks for your answers.
>>
>> Marc DM
>
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: advanced new user questions
Posted by "Marc D. Murray" <ma...@phronein.com>.
It seems I've found the answers to some of my questions. Just replying
so that I'm not the only one with the answers
On Sun, 2005-04-24 at 19:08 -0500, Marc D. Murray wrote:
> Hey guys, great work on this beast* called Lenya.
>
> I've got a couple of questions regarding the operation of Lenya on a
> debian sarge box.
>
> 1. I want to know, how does lenya recognise that something (like an
> XSLT file) has changed in order to recreate the cached html file
> created in the work/cache/live directory.
Still don't know how it checks for recaching, I just know that I delete
the stuff in the work/cache folder to make it regenerate them
>
> 2. When I create a new document, lenya creates a folder for it along
> with an index_en.xml and a record in sitetree.xml. Apart from the
> record in sitetree.xml and the presence of the folder/index_en.xml,
> where else is there a record of the existence of a document?
> I'm trying to speed up the development of my application by manually
> editing sitetree.xml and copying an existing folder ( /tutorial ??)
> that contains a index_en.xml, rename the folder and bam.... i should
> have a new doc in Lenya.
> But this doesn't work. I see it appear in the Navigation, but editing
> it throws an error.
Make sure that the user that runs tomcar has permissions to write to the
folders you created.
>
> 3. this is more of a general
> apache/tomcat/jakarta/cocoon/lenya/linux/java question...
> What runs as which user? Who should own the files? what should the
> file/directory permissions be?
still trying to figure this one out.
>
>
> * beast meant in a nice way
>
> Thanks for your answers.
>
> Marc DM