from : http://www.paolocorti.net/2008/01/02/installing-zope-and-plone-from-source-on-ubuntu-in-10-easy-steps/
Here are my notes for installing Zope and Plone from source in Ubuntu. I took this notes installing on 7.10 (Gutsy) but should work without problems for earlier Ubuntu versions, and for other Linux platforms
-1- install libraries needed for build (build-essential) and Zope
-2- download zope 2.10.5 and plone 3.0.4
-3- unzip the downloaded files
-4- create the makefile and set the prefix
cd Zope-2.10.5-final
way1:
or way2 (simpler):
-5- Install Zope (at the location set in prefix)
-6- create an user for zope
not run as suggested: “Now run ‘/opt/Zope-2.10.5/bin/mkzopeinstance.py’” but create an user for zope
-7- create one ore more Zope instances (here we will create just one single instance)
create a directory where to place each Zope instance
give to this directory ownership to zope user:
run mkzopeinstance.py as the zope user:
-8- Run Zope and test Zope installation
If you want to run Zope on a port different from 8080:
go to server directive:
and change 8080 to whatever port you want to run the Zope process
Now let’s start Zope: you need to run the Zope instance as the zope user
fg is the foreground option for the Zope process. Without using it you will enter an interactive mode, where you can directly send commands (like start, stop, fg, debug).
Now if you go to the address: http://localhost:8080 (change 8080 to the port you are running the Zope process) you will be promptet for the user and password of the administrative user of ZMI.
Now to stop the zope fg process (in order to install Plone) just type ctrl+Z and kill the python process:
-9- Install Plone
9.a) For Plone 3.x
Copy Plone products and Python libs to the zope instance (products directory, base Zope is without products)
give permission to zope user:
9.b) For Plone 2.x
you just need to copy the Plone products
note: for any Plone (2.x, 3.x) if you copy the Products under the /opt/Zope-2.10.5/skell/Products directory, each instance that will be created will already have all the products. Same thing for the lib/python directory.
Or, if you copy the products in /opt/Zope-2.10.5/lib/python/Products directory, all the zope instances will use that directory without copying them in each instance.
-10- Run Zope and test Plone
Now if you run the Zope process and you go to the address: http://localhost:8080 (change 8080 to the port you are running the Zope process) you will access the ZMI.
There you will create your first Plone site (by selecting “Plone Site” and then clicking the “add” button)
If you named the Plone Site “test” then you can go there by typing on the browser: http://localhost:8080/test. You are now on a new ajaxifed Plone 3.0 web site: congrats!
-extra step- debugging Zope
Run zope without the fg option and enter in the debug command prompt:
Now under the Python shell you can debug Zope (and Plone). To exit from debug type ctrl+d.
No comments:
Post a Comment