Colliberty Easy Publisher
Home / Easy Publisher CMS / Documentations / Install on MacOSX

contents  

Installing Easy Publisher on Mac OS X with Python 2.3

To be able to install with Python 2.3.4 you need to be able to compile your own Python so you need the Development Toolkit installed (GCC). (If you don't know how to compile and install applications from source code you can buy that service from us.)

Tips 1: I use the curl command in MacOSX to download URLs. curl have replaced wget in recent MacOSX releases. wget and curl works basicly the same way.

Downloading and installing Python

Download the source distribution tarball of Python 2.3 from the Python web site.

  • Unpack, ./configure, make and make install (as root).

Tips 2: I use the gnutar instead of tar in MacOSX, because the BSD tar has issues with long paths that gets croped.

Downloading and installing Zope

  • Download Zope 2.7.2 or later, unpack, and run wo_pcgi.py or w_pcgi.py with the resently installed Python version. For instance:

    /usr/local/bin/python w_pcgi.py
    ...
    ...
    (It will print out the username and password of inituser. Write this down for later.)

Tips 3: To check that your running the correct version of Python you can start the intepreter with the -V flag, for instance:
> /usr/local/bin/python -V
Python 2.2.3
>

Easy Publisher 1.8 needs PyXML

For Easy Publisher 1.8 PyXML also needs to be installed so I download and install PyXML-0.8.3 first.

  • Download, unpack, and install (for instance)

    /usr/local/bin/python setup.py build
    /usr/local/bin/python setup.py install #as root

Zope Security

Now we need to configure Zope's security. Set doc/SETUID.txt for more information. This is what I needed to do:

  1. Add a user that Zope runs as after it has been started by root.
  2. Add the user to the z2.py or start scripts.
  3. chown to root of the var directory.
  4. Set the sticky bit on the var directory: chmod +t var

Choose correct ports for the services

You will also make sure that no other server is running on the ports you use. I usually set this up in z2.py, but the convention is to use the start script.
(This is due to difficulties in editing the start-up arguments in a Windows Services installation and I want to use the same style regardless of OS.)

Default is to start a web-server at port 8080 and a FTP-server at 8021. For some reason my MacOSX got a server at 8021 so I had to change the FTP-port to 8121.

Test the Zope installtion

Now you can start and test that Zope is working properly. Use the admin account information returned by the w_pcgi.py/wo_pcgi.py script before.

Installing Easy Publisher 1.8

To install Easy Publisher your copy the content of the tar ball to the directory where you have installed Zope.

Follow the install instructions in Easy Publisher on how to install additional products (PIL), modifying the Zope root and more.

 

Installing Easy Publisher on Mac OS X for Easy Publisher 1.7

(Not this is the old install instructions)

Mac OS X is based on unix, and the unix install of Easy Publisher 1.7 should therefore work on Mac OS X. However, it requires you to have the development kit installed and most installations do not have this. The workaround is to install a binary version of Zope 2.5.1 first, and then install Easy Publisher on top of that.

  1. Install Zope 2.5.1 and start it to make sure it runs. Stop the Zope server.
  2. Pack up Easy Publisher (you need to start a command line for this):
    sudo tar xvfz ep17ce.tgz
  3. Copy everything from the EasyPublisher-1.7 directory into the Zope 2.5.1 directory created when you installed Zope 2.5.1. This will overwrite a lot of files.
  4. Start the Zope server again. Go to http://localhost:8080/registration to register your Easy Publisher installation.
  5. Done!
Colliberty
Mail: info@easypublisher.com