Friday, April 24, 2009

Configuring webdav and effective user in plone-buildout

If you installed Plone 3.x from their universal installer, there is a default buildout.cfg provided. Edit this to installed cool additional packages and just run `bin/buildout`. It will download whatever you need and then ready to be up and running again. The buildout will override your zope.conf so if you want any settings to persist in your zope.conf it should be put into your buildout.cfg.

Inside the buildout.cfg there is section for client1 and client2 if you installed the default cluster settings. So to configure the effective user for client1 (so that root can start the instance) you should add:

effective-user = plone

in the client1 section. And inside client2 section you can just add:

effective-user = ${client1:effective-user}

so that you don't have to edit at 2 places later. And do you want to enable webdav with that? Then just add:

zope-conf-additional =
enable-ms-author-via on
<webdav-source-server>
address localhost:1980
force-connection-close off
</webdav-source-server>

in the client sections. All done.

3 comments:

Nuno L. Ferreira said...

Hey,

The addition os the webdav enabling lines, should be done on both client1 and client2 sections?

Cheers,
Nuno

abdza said...

That's what I do. But of course using different ports for each client (client1 is usually 1980 and client2 is 1981).

Nuno L. Ferreira said...

Hey Abdullah,

Thanks for the tips. Seems to be working fine ...
N.

Is Blogging No Longer a Thing?

As I embark on my new journey to learn the Rust programming language, I find myself pondering—where have all the blogs gone? In search of pr...