Re: [Zope] Beginners Confusion

2005-12-06 Thread Chris Withers

Russell Winter wrote:

If you have the time, could I bug you for another question directly, please.


Ask the list, always ask the list ;-)


I have my main Zope instance, each primary team is going to have their own
Zope Instance with Plone in their own Products directory. 


You could look at the third product directory option that used to be 
enabled by setting the PRODUCTS_PATH environment variable, should be an 
option in zope.conf somewhere now...



I have seen and read something that seems to relate to also being able to
run multiple Plone instances within the same Zope server, but each Plone
instance has its own folder (on the file-system) to store some of its files
in as well as using the Zope Zope database, I am reading this correctly? 


- yes you can have as many plone instances as you like in one zope instance

- they all run off the same software, so they will be the same version 
of Plohn, etc...


- you can get them in different places on disk my using mounted 
storages, you'll have to have a google and fiddle. This is part of the 
standard zope software, read zope.conf ;-)


- mounted storages are still ZODB-based, there's no such thing as file 
system storage ;-)


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Beginners Confusion

2005-12-05 Thread Chris Withers

Hi Russell,

Russell Winter wrote:


Thanks for the prompt response, the reason behind keeping the users separate
is that each team wants to feel that they have some control over their
destiny's and we are happy to pander to this thought, they also each have a
completely different set of visitors to the sites and wish to keep their
sites separate. From our perspective, we also want to have that little more
control over each team but in the way of resources but allow them some
flexibility in their choices. 


Fair Enough.


However, I had worked out that instances seemed to be the way to go, but I
confused myself more by trying to setup and instance for a test user and
failing dismally, the instance error'd in a number of ways, mostly I figured
to do with permissions. This will just take time to work through I think.


Yup, but it is the way to go...

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


WAS [Zope] Beginners Confusion - NOW I Think I have Pegged It

2005-12-04 Thread Russell Winter



Folks

Firstly, thanks to all those who replied... I am pleased to say 
that I have an Test installation working .. Whoohoo..! 

If anyone see's any gapping security, configuration holes or poor 
practices, please drop me a line, otherwise, I have document the how's and 
what's of what I finally ended up doing so that it might save someone else the 
time, effort and frustration I had.


After much banging of heads, scratching of unmentionables and a "little" 
bit of swearing, I think I have it pegged... 

OK, start off with my major mistakes;

1) I chose to installthe "pristine" application in a 
/home/user directory, 
 this now appears to have been a bad choice due 
to permissions and access issues.
 I really just needed a non-root user account to 
actually run Zope, not a non-root user account to install it 
in...

2) I hadn't fully read and comprehended the zope.conf 
comments
 I have now read (numerous times) the comments and am 
beginning to get a better understanding of the intracasacies


Our Environment; 

 CentOS 4.2 x86_64
 cPanel Management
 Zope 2.8.2-final, python 2.3.5, linux2 
Python Version2.3.5 (#2, Sep 28 2005, 03:41:37) [GCC 3.4.3 20050227 (Red 
Hat 3.4.3-22.1)] 



What I have done now;

1) I have installed the "pristine" application under /usr/local/Zope, 

 configured zope to run as the original planned user 
(zope.conf  effective-user parameter)
 (I actually just copied the original, modified 
zope.conf and runzope to suit)

2) Made the appropriate user directory for the department/group wishing 
to run a Zope instance

3) NOTE: I think this part is theoretically correct but should be run as 
the new user, not as root,
 so as not to have to chown the user files afterwards, 
I haven't tried this yet to see if that is right.
 
 I ran (?as root?) /usr/localZope/bin/mkzopeinstance.py 
to install the appropriate instance files in the 
 new users home directory (answer and remember the 
appropriate login details)

3a) I then had to chown the files, but as I said, I think running 
mkzopeinstance.py as the right user would negate this

4) Modify etc/zope.conf to set the effective-user, database size 
limit and modify management ports to those 
 that are unused for any other application (also 
modifying my firewall config to allow access)

5) Run bin/zopectl start - login with the appropriate credentials 
used in the mkzopeinstance procedure
 Check that everything looks to be ok 


6) untar the appropriate componemts (I installed CMF and Plone) in to the 
users products directory
 Restart ZopeServer (zopectl 
restart)

8) Select Root, add a new Plone Site, (Remember the name you give it for 
use in the httpd rewrite rule below)

7) As I am running behind Apache, configure httpd.conf for the domain and 
add Rewrite  Proxy directives and 
 rewrite rules to the new plone site 
instance.

I 
believe this allows me to achieve, multiple instances for multiple users, each 
having their own ZopeServer to control, their own Plone and other component 
control, I can manage DB size and disk usagethrough zope.conf (I assigned 
read only rights to the users after I modified it) and bandwidth through 
mod_bandwidth on apache. The users have normal FTP and email access to their own local 
virtual machines without effecting any other services or users on the 
machine.

I 
now will be trying to setup MySQL access and some other components to try out, 
document management etc and skins/themes is on the list the get my head 
around.

Thanks again

Russ



  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Russell 
  WinterSent: Friday, December 02, 2005 7:47 AMTo: 
  zope@zope.org; [EMAIL PROTECTED]Subject: [Zope] Beginners 
  Confusion
  
  
  
  
  Folks,
  
  I am trying to 
  understand instances, any help or suggestions would be appreciated as I am 
  obviously missing something.
  
  I would like to 
  have each user having, either, their own Zope Server binaries (including 
  CMF  Plone) in their home directories.
  
  Alternatively, as 
  multiple Zope Servers on one machine will be quite a resource eater, (probably 
  20 main users) is it possible to have just one Zope Server and multiple 
  instances of the database/CMF/Plone for the users? All user instances and 
  content including the database entries would need to be accounted for in 
  andinstalled in their own home directories to allow us to control and 
  manageeachuser or groupsbandwidth and quota's etc 
  etc.
  
  Is this possible? 
  If so, is there a how-to or something I have not found yet or some advice 
  would be appreciated. I have several books on Zope now and none of them seem 
  to describe instances or multiple user configurations in any 
  detail.
  
  I am looking for 
  each department/user/group to be able to manage,for the most part, their 
  own web-services, but with us still managing the usual operating and 
  application environments. 
  
  
  
  
  Tha

Re: [Zope] Beginners Confusion

2005-12-02 Thread Chris Withers

Russell Winter wrote:
 
I would like to have each user having, either,  their own Zope Server

binaries (including CMF  Plone) in their home directories.


Why? What's the use case here?

I'd install the binaries for each version of Zope once.
Plone, much as it pretends not to be, is just an add-on product.
I'd use mkzopeinstance for each user, put the instance in their home 
directory and put any additional software such as Plone in the Poducts 
directory of the instance...


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Beginners Confusion

2005-12-02 Thread Lennart Regebro
On 12/1/05, Russell Winter [EMAIL PROTECTED] wrote:
 Alternatively, as multiple Zope Servers on one machine will be quite a
 resource eater, (probably 20 main users) is it possible to have just one
 Zope Server and multiple instances of the database/CMF/Plone for the users?

Sure. Although it gets tricky if you want to have different product
versions for them.

 All user instances and content including the database entries would need to
 be accounted for in and installed in their own home directories to allow us
 to control and manage each user or groups bandwidth and quota's etc etc.

Sligthly more tricky, but still possible. Especially bandwidth can be
problematic, but if you have separate domains for each user and have
an apache-server that regulates the bandwidth per domain it should be
fine.

You would also have to mount a separate ZODB for each user.

But having one instance per user is probably eaasier.
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Beginners Confusion

2005-12-01 Thread Russell Winter






Folks,

I am trying to 
understand instances, any help or suggestions would be appreciated as I am 
obviously missing something.

I would like to have 
each user having, either, their own Zope Server binaries (including CMF 
 Plone) in their home directories.

Alternatively, as multiple Zope 
Servers on one machine will be quite a resource eater, (probably 20 main users) 
is it possible to have just one Zope Server and multiple instances of the 
database/CMF/Plone for the users? All user instances and content including the 
database entries would need to be accounted for in andinstalled in their 
own home directories to allow us to control and manageeachuser or 
groupsbandwidth and quota's etc etc.

Is this possible? If 
so, is there a how-to or something I have not found yet or some advice would be 
appreciated. I have several books on Zope now and none of them seem to describe 
instances or multiple user configurations in any detail.

I am looking for 
each department/user/group to be able to manage,for the most part, their 
own web-services, but with us still managing the usual operating and application 
environments. 




Thanks a lot, regards, 
Russ 

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Beginners Confusion

2005-12-01 Thread Eric Banford


At 07:46 AM 12/2/2005 +1100, Russell Winter wrote:
I would
like to have each user having, either, their own Zope Server
binaries (including CMF  Plone) in their home directories.

Alternatively, as multiple Zope Servers on one machine will be quite a
resource eater, (probably 20 main users) is it possible to have just one
Zope Server and multiple instances of the database/CMF/Plone for the
users? All user instances and content including the database entries
would need to be accounted for in and installed in their own home
directories to allow us to control and manage each user or groups
bandwidth and quota's etc etc.
Hi Russ,
You didn't mention platform, but conceptually this windows tutorial may
help with your solution regardless of your platform. I set up something
similar to his suggestion, running multiple instance of Plone on the same
Zope service, so that each instance of Plone can have their own Products
directory. This was initially done because CMFBoard wouldn't run with
PloneArticle, but we are finding it nice to have different instances for
various web site groupings.
Anyway, here is the tutorial:
http://plone.org/documentation/tutorial/multiple-plone-instances-windows/
Hope it helps, if you have more questions, please let me know.
Eric


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )