更新系统
# apt-get update# apt-get upgrade
处理系统语言
echo "export LC_ALL=C" >> /root/.bashrc然后执行一下:
source /root/.bashrc
安装plone的ubuntu准备工作
sudo apt-get install build-essential libssl-dev libxml2-dev libbz2-dev libjpeg62-dev libreadline5-dev wv poppler-utils python-setuptosols安装lamp
sudo tasksel 选择lamp配置虚拟主机
sudo a2enmod rewritesudo a2enmod proxy
sudo /etc/init.d/apache2 restart
cd etc/apache2/sites-available/
nano 虚拟机配置文件名
配置文件
——————————–
<VirtualHost 10.39.6.59>
ServerName edunuke.firehare.com
ServerAdmin ubuntu.firehare@firehare.com
DocumentRoot "/var/www/edunuke/"
ErrorLog "/var/log/apache2/edunuke_errors.log"
CustomLog "/var/log/apache2/edunuke_accesses.log" common
</VirtualHost>
启动虚拟机配置
sudo a2ensite 配置文件sudo /etc/init.d/apache2 restart 重启 apache
禁用某个站点配置
sudo a2dissite edunukesudo /etc/init.d/apache2 restart
安装curl
sudo apt-get install php5-curl安装 plone
tar zxvf Plone-4.0.5-UnifiedInstaller.tgz
cd Plone-4.0.5-UnifiedInstaller.tgz
sudo ./install.sh standalone
记录下超级用户密码
启动Plone
To start Plone,>> sudo /usr/local/Plone/zinstance/bin/plonectl start
To stop Plone,
>> sudo /usr/local/Plone/zinstance/bin/plonectl stop
To check status,
>> sudo /usr/local/Plone/zinstance/bin/plonectl status
plone 必装模块
多语言区块 ContentWellPortlets
eggs =
…
Products.ContentWellPortlets
Plone虚拟主机配置
/etc/apache2/sites-available/default<VirtualHost *:80>
ServerName example.com
ServerAdmin services@example.com
ServerSignature On
RewriteEngine on
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/example.com:80/Plone/VirtualHostRoot/$1 [P,L]
</VirtualHost>
etc/apache2/mods-available/proxy.conf
===
<IfModule mod_proxy.c>
#turning ProxyRequests on and allowing proxying from all may allow
#spammers to use your proxy to send email.
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
allow from all
#Allow from .example.com
</Proxy>
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
ProxyVia On
</IfModule>