Colliberty Easy Publisher
Home / Easy Publisher CMS / Documentations / Easy Publisher 1.8 / Installing PIL

content  

Installing Easy Root

  1. Make a backup copy of the file /lib/python/OFS/Application.py
  2. Copy the file /lib/python/OFS/ApplicationXXX.py over the /lib/python/OFS/Application.py

    XXX should be the version nuber of your Zope installation (251 or 261).

  3. Restart your server.

Notes:

If you don't install the EasyRoot you will not get the EasyRoot object in the root of your Zope Database.

The roles Author and Revierer will not be installed by default, so you would need to create the manually.

Installing Easy Publisher 1.8 on Windows

  1. Download and Install the binary Zope distribution for Windows (2.5.1 and 2.6.1 for full support)
  2. Install PIL (see INSTALL_PIL.txt)
  3. To enable the EasyRoot object see Install_EasyRoot.txt If you don't install EasyRoot you need to create the roles Author and Reviewer manual in the site root object.

Installing Easy Publisher 1.8 on UNIX

  1. Download and Install Zope (2.5.1 and 2.6.1 for full support)
  2. Install PIL (see INSTALL_PIL.txt)
  3. To enable the EasyRoot object see Install_EasyRoot.txt If you don't install EasyRoot you need to create the roles Author and Reviewer manual in the site root object.

Suggested Unix rights

Normally you would set the unix right to:

  1. for files and none shell scripts and 755 for shell scripts and directories.

The owner of the files and directories are always root:root, while Zopeis running under user zope:daemon

If the Zope-Server would have an buggy exploit than the zope-user could change the underlaying Python-Code, which wouldn't be possible if the zope-user has no rights to write code to the filesystem.

I have installed Zope 2.6.1 and on startup z2.py told me that the var-dir should be owned by root and the sticky bit should be set. But this will makes it impossible to pack the Data.fs anymore. Only if you chown var-dar by zope, pack the Data.fs and chown var-dir back to root. Strange I think?

Installing PIL

PIL is copyrighted by Secret Labs AB and Fredrik Lundh Please see License.PIL.txt for software license or visit http://www.pythonware.com/

For Unix download and install PIL from Secret Labs: http://www.pythonware.com/products/pil/index.htm

For Windows you can use the binaries in the win32 directory. Copy the following files:

win32\DLLs\_imaging.pyd -> bin\DLLs\_imaging.pyd win32\DLLs\_imagingtk.pyd -> bin\DLLs\_imagingtk.pyd win32\DLLs\tcl83.dll -> bin\DLLs\tcl83.dll win32\DLLs\tk83.dll -> bin\DLLs\tk83.dll

The copy the PIL directory to the Products directory:

win32\PIL -> lib\python\PIL