Tuesday, July 28, 2009

Installing Zope and Plone from source on Ubuntu in 10 easy steps

from : http://www.paolocorti.net/2008/01/02/installing-zope-and-plone-from-source-on-ubuntu-in-10-easy-steps/


Installing Zope and Plone from source on Ubuntu in 10 easy steps
Posted by Paolo Corti on January 2, 2008


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

sudo apt-get install build-essential python2.4-dev python-lxml python-elementtree python-imaging

-2- download zope 2.10.5 and plone 3.0.4

wget https://launchpad.net/plone/3.0/3.0.4/+download/Plone-3.0.4.tar.gz wget http://www.zope.org/Products/Zope/2.10.5/Zope-2.10.5-final.tgz

-3- unzip the downloaded files

tar -xvzf Zope-2.10.5-final.tgz tar -xvzf Plone-3.0.4.tar.gz

-4- create the makefile and set the prefix

cd Zope-2.10.5-final

way1:

./configure gedit makefile  and set  prefix=/opt/Zope-2.10.5

or way2 (simpler):

 ./configure --prefix=/opt/Zope-2.10.5

-5- Install Zope (at the location set in prefix)

sudo make install

-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

sudo adduser 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

sudo mkdir /srv/zope/inst_2_10_5

give to this directory ownership to zope user:

sudo chown zope.zope /srv/zope/inst_2_10_5

run mkzopeinstance.py as the zope user:

sudo su zope /opt/Zope-2.10.5/bin/mkzopeinstance.py Directory: /srv/zope/inst_2_10_5 Username: admin Password: ****

-8- Run Zope and test Zope installation

If you want to run Zope on a port different from 8080:

sudo gedit /srv/zope/inst_2_10_5/etc/zope.conf

go to server directive:

>   # valid keys are "address" and "force-connection-close"   address 8080   # force-connection-close on >

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

sudo su zope /srv/zope/inst_2_10_5/bin/zopectl fg

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:

sudo killall -9 python2.4

-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)

sudo cp -r Plone-3.0.4/Products/* /srv/zope/inst_2_10_5/Products/ sudo cp -r Plone-3.0.4/lib/python/* /srv/zope/inst_2_10_5/lib/python/

give permission to zope user:

sudo chown -R zope.zope /srv/zope/inst_2_10_5

9.b) For Plone 2.x

you just need to copy the Plone products

sudo cp -r Plone-3.0.4/* /srv/zope/inst_plone2/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:

/srv/zope/inst_2_10_5/bin/zopectl zopectl> start --will start zope zopectl> debug --will debug zope zopectl> stop --will stop zope

Now under the Python shell you can debug Zope (and Plone). To exit from debug type ctrl+d.

>>> dir() ....many resources >>> dir(app) ...many resources >>> dir(app.test) --if you named your Plone site as "test" >>> print app.test 

36 comments:

Anonymous said...

Good blog~nice to meet u..................................................................

Anonymous said...

偉大的致富萬能之鑰,正是幫你充分掌握自己心志所必須的自律自制..................................................

Anonymous said...

秋去冬來~~大家要注意身體,別感冒囉!........................................

pass said...

卡通色情動畫影片免費色情動漫下載qvod色情影片色情qvod色情視訊電話成人性電影成人性圖貼成人直播室成人网站大全成人色情動畫成人色情討論區成人卡通站成人卡通貼圖區成人尼克成人地帶成人在線成人字拍成人成人影片成人老鼠成人色情av成人色情片免費觀賞成人色情片區成人色情秀成人色情討論成人看a片成人看影片成人貼圖av成人貼圖系列成人貼圖亞洲成人貼圖香港0401視訊美女sex女優0951成人頻道下載交友104相親網

Anonymous said...

It's great!!..................................................

Anonymous said...

It's great!!..........................................

Anonymous said...

成功招引朋友,挫敗可考驗朋友........................................

Anonymous said...

謝謝您的分享~感恩唷!!..................................................

Anonymous said...

很喜歡你的blog哦...加油唷 ........................................

Anonymous said...

爆乳潮吹裸體裸照裸女愛愛無碼尋夢視訊聊天a漫a片a圖一夜情一葉情人妻激情情色寫真美女自拍辣妹自拍正妹自拍美女走光辣妹走光正妹走光脫衣秀脫衣走光色情自慰自拍成人全裸打炮打手槍打飛機巨乳

Anonymous said...

Birth is much but breeding is more. 加油! .........................................

Anonymous said...

生命的意義,是在於活的充實;而不是在於活得長久。 ..................................................

于呈均名 said...

一個人的價值,應該看他貢獻了什麼,而不是他取得了什麼..................................................

Anonymous said...

恨一個人,比原諒一個人,更傷力氣。............................................................

Anonymous said...

色聊天室ipkgirl 米克情色論壇 yam交友aio 同志色教館et免費影片下載 情人視訊專區 免費看avdvd 單身聯誼 a 片天堂 武則天視訊聊天室 love104影音視訊網 成人情色視訊網 sex成人小說,777成人區 love104影音live秀 台灣情色綜合論壇 0401網愛聊天室 卡通aa片免費看sexy girl d736 免費聊天室 557557視訊交友 電話視訊交友 影音交友lover99 18h mm cg com 情慾av383日本視訊 情色聊天室 ez104 日本同志色教館 avdvd 色妹妹情色網85cc免費影片 視訊辣妹 qq 美美色網 免費成人動漫 聊天室交友primo 視訊交友 aooyy com 日本a v無碼短片 情色34c視訊交友 熟女無碼a片 38ga成人網 線上a片-免費影片 月宮貼圖色妹妹嘟嘟情人色網 彩虹情人視訊交友網 後宮-成人影片 免費視訊美女 完美女人視訊網 ez檳榔西施摸奶影片 性愛視訊交友 優質成人 xd成人圖區 視訊聊天室yani s101成人大喇叭 嘟嘟成年網 色美媚視訊美女 片免費aa免費視訊聊天論壇 免費試看av免費成人電影

家信 said...

Keep in contact. Good Luck..................................................

Anonymous said...

成熟,就是有能力適應生活中的模糊。.................................................................

Anonymous said...

在莫非定律中有項笨蛋定律:「一個組織中的笨蛋,恆大於等於三分之二。」......................................................................

Anonymous said...

人生是故事的創造與遺忘。............................................................

Anonymous said...

It takes all kinds to make a world.............................................................

Anonymous said...

好棒的地方 我一定要常來~~~^^~..................................................................

Anonymous said...

天下沒有意把鑰匙,可以打開所有的門............................................................

Anonymous said...

這樣的情感,真是值得人羨慕............................................................

Anonymous said...

Many a true word is spoken in jest.............................................................

Anonymous said...

從來愛都不知它的深度,非得等到別離的時候..................................................................

Anonymous said...

累了嗎?來杯咖啡休息一下吧!...............................................................

Anonymous said...

Knowledge is power................................................

張志亦劉美玲 said...

~~天天開心~~祝您快樂~~............................................................

韋陳富 said...

很精彩的部落格 期待你的繼續加油............................................................

Anonymous said...

人應該做自己認為對的事,而不是一味跟著群眾的建議走。..................................................

敬周喜 said...

與人相處不妨多用眼睛說話,多用嘴巴思考. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Anonymous said...

困難的不在於新概念,而在於逃避舊有的概念。......................................................................

Anonymous said...

心中醒,口中說,紙上作,不從身上習過,皆無用也。..................................................

Anonymous said...

第一次來這裡 愛上你的部落格 感謝你的分享...............................................................

孫邦柔 said...

愛,拆開來是心和受兩個字。用心去接受對方的一切,用心去愛對方的所有。......................................................................

Anonymous said...

you got it!i like it!!!