Book Image

Plone 3.3 Site Administration

Book Image

Plone 3.3 Site Administration

Overview of this book

In the past few years, we have seen some dramatic changes in the way Plone sites are being developed, deployed, and maintained. As a result, developing and deploying sites, changing their default settings, and performing day to day maintenance tasks can be a challenge. This book covers site administration tasks, from setting up a development instance, to optimizing a deployed production site, and more. It demonstrates how-to perform these tasks in a comprehensive way, and walks the user through the necessary steps to achieve results.We have divided the subject of Plone site administration into three categories: development, deployment, and maintenance. We begin by explaining how a Plone site is built, and how to start using it through the web. Next, we add features by installing add-on products, focusing on themes, blogging, and other common enhancements. After the basics of developing and deploying a Plone site are covered, the book covers the basics of maintaining it.Further, throughout the book we preview some new technologies related to Plone site administration, available now as add-ons to the current Plone release. Finally, we will cover a variety of techniques to help you optimize your site's performance.
Table of Contents (15 chapters)
Plone 3.3 Site Administration
Credits
Foreword
About the Author
About the Reviewer
Preface
Index

Rotating logs


As you are probably aware, Zope 2 generates log files. Hence, we need to think about what to do when these log files grow.

Using iw.rotatezlogs on Mac OS X, Ubuntu Linux, and Windows

One of the tasks that could be difficult to standardize across operating systems is rotating Zope 2 log files. Luckily for us, there is iw.rotatezlogs (http://pypi.python.org/pypi/iw.rotatezlogs).

Although technically not a recipe, iw.rotatezlogs makes it simple to set up log rotation.

The process involves three steps:

  1. Add the iw.rotatezlogs egg to the eggs parameter in instance section.

  2. Add an event-log-custom parameter to your instance section with iw.rotatezlogs settings.

  3. Add an access-log-custom parameter to your instance section with iw.rotatezlogs settings.

In 05-deployment-maintenance-rotate.cfg, we have the following:

[buildout]
extends = 05-deployment-maintenance-cron2.cfg

[instance]
eggs += iw.rotatezlogs
event-log-custom =
    %import iw.rotatezlogs
    <rotatelogfile>
        path ${buildout...