个人工具

Index/python/InstallPloneInBreezy

来自Ubuntu中文

跳转至: 导航, 搜索

Breezy 下 Plone 的安装指南


本文出处:www.ubuntu.org.cn

本文作者:OneLeaf

翻译人员:无

校对人员:无

适用版本:5.10



什么是 Plone

Plone是一个开放源代码的企业内容管理系统.

如何安装

现在开始安装Plone: 打开 应用程序 -> 附件 -> 终端

sudo apt-get install plone plone-site

随后将弹出的Plone的管理员帐号,输入密码,确定,端口就使用默认的8081,确定。

增加plone的站点

安装完毕后,打开firefox,在地址栏输入:

http://127.0.0.1:8081/manage

将提示输入刚才的帐号和密码,输入完毕后,确定进入。进入后如图1。

attachment:InstallPlone01.png

在打开网页的左上脚选择下拉框,选择 Plone Site,在点击旁边的 Add 按钮。点击完成后,如图2,

attachment:InstallPlone02.png

你可以输入 id 为 plone 点击 Add Plone Site 按钮。

增加完成后,如图3所示:

attachment:InstallPlone03.png

同时你可以直接在地址栏输入http://127.0.0.1:8081/plone 打开你的站点,如图4所示。

attachment:InstallPlone04.png

点击打开的网页右上脚的选项如图5

attachment:InstallPlone05.png

如果需要进行个人的设置,直接点击中间的个人选项就好了,我们下面进行网站的一些设置,点击左边的 网站设置,修改 站点标题 为你自己的网站表体,同时 将默认语言修改为 Chinese。点击网页下方的 保存 按钮,如图6

attachment:InstallPlone06.png

与 Apache 集成

以下部分是我们来设置一个可以直接访问到plone的网址,不需要这样输入端口和后面的plone名称。 这里假设你的站点的域名为 www.mydomain.com 如果没有可以使用本地的IP地址代替。 安装apache2:同样我们在终端中输入:

apt-get install apache2

安装完毕后继续输入:

sudo a2enmod rewrite
sudo a2enmod proxy

再编辑站点配置文件

sudo gedit /etc/apache2/sites-enabled/000-default

将其改为如下格式(以 ubuntu.org.cn 为例)

<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName ubuntu.org.cn
ServerAlias www.ubuntu.org.cn
CustomLog  /var/log/apache2/www.ubuntu.org.cn-access.log combined

RewriteEngine on
RewriteRule ^/(.*) http://127.0.0.1:8081/VirtualHostBase/http/www.ubuntu.org.cn:80/plone/VirtualHostRoot/$1 [L,P]

<Proxy *>
Order Deny,Allow
Deny from all
Allow from all
</Proxy>

</VirtualHost>       

如果是内网,假设IP为192.168.1.124,直接使用IP如下:

<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName ubuntu.org.cn
ServerAlias www.ubuntu.org.cn
CustomLog  /var/log/apache2/www.ubuntu.org.cn-access.log combined

RewriteEngine on
RewriteRule ^/(.*) http://127.0.0.1:8081/VirtualHostBase/http/192.168.1.124:80/plone/VirtualHostRoot/$1 [L,P]

<Proxy *>
Order Deny,Allow
Deny from all
Allow from all
</Proxy>

</VirtualHost>        

保存文件,并关闭编辑器,重新启动apahe2服务。

好了,我们现在直接在地址栏输入: http://192.168.1.124 这里是上面输入的IP地址,你也可以输入你的域名或者改为你的IP地址。如图7所示:

attachment:InstallPlone07.png

安装结束。