1. Install the following dependent packages: gcc, g ++, gnumake, tar, bzip2sudoapt-getinstallgccg ++ gnumaketarbzip22, install plone: Download plone's linuxlinux installation package (.tar.gz) extract to/tmpcd/tmptarzxvfPlone-3.2.3-UnifiedInstaller.tar.gzcdPlone-3.2
1. Install the following dependent packages: gcc, g ++, gnu make, tar, bzip2
Sudo apt-get install gcc g ++ gnu make tar bzip2
2. Install plone:
Download the plunelinuxinstallation package (.tar.gz) from the official website and decompress it to/tmp.
Cd/tmp
Tar zxvf Plone-3.2.3-UnifiedInstaller.tar.gz
Cd Plone-3.2.3-UnifiedInstaller
./Install. sh after standalone is installed, the administrator password and how to start it (the information is saved in ~ /Plone/zinstance/adminPassword.txt ).
The default port is 8080, which can be found in the configuration file ~ Modify the port in/Plone/zinstance/etc/zope. conf.
The default instance is/opt/Plone-3.2.3/zinstance.
Create two default system users and group plone and zope.
Start:
~ Close/Plone/zinstance/bin/plonectl start:
~ /Plone/zinstance/bin/plonectl stophttp:/localhost: 8080 displays a welcome page. http: // localhost: 8080/Plone enters a test plone page, http: // localhost: 8080/manage to enter the management interface.
3. Culture:
After the default installation, the language displayed in http: // localhost: 8080/Plone is English. to display the language in Chinese, you need to set it slightly: Log On with admin, and view the file with the password ~ /Plone/vsuan/adminPassword.txt.
1) Click "Site Setup" in the upper-right corner, and then click the language in the middle of the screen to enter the language settings interface. You can select "Show country-specific language variants ", select "Chinese" in the drop-down box of the language, and click "save" to refresh the page. The page is full of Chinese characters.
2) some menus are still in English (such as news, users, and events). You can do this: click "Homepage" --> "folder content" in the upper left corner and select one, click "RENAME", enter "user" in the "New title", and click "RENAME all" to return. The other two are changed to "news" and "events ".
3) The homepage is also in English: it is a good note to replace it with your own company introduction. Click "Homepage" --> "View" in the upper left corner, move the cursor down to the homepage title "Welcome to Plone", click it, and change it to "Welcome to micro-computing company". Other sections are modified in a similar way.
4) modify the default Administrator password: http: // localhost: 8080/manage --> acl_users --> users --> password
4. Official installation documents (may fail, for your reference only ):
Installing a Plone buildout on Ubuntu
By Kees Hink (Goldmund, Wyldebeast & Wunderliebe)-last modified May 02,201 0
This how-to describes, step by step, how you can install Plone on an Ubuntu system. It contains a shell script which you can execute with minimal thinking.
Important note: Since Plone 3.1, the preferred way to get a buildout-based setup for Plone is to use the standard installer for your operating system (the Windows installer, the Mac installer, or the uniied Installer for Linux/Unix/BSD ). these give you a best-practice, widely-used setup with an isolated Python and a well-known ented buildout. this template is here for older versions of Plone and for experts who explicitly want a raw, non-installer-based installation.
Target audience
In this how-to, we will install Plone using buildout. this may be slightly more difficult than the uniied Installer (which also uses buildout under the hood), and therefore does not target the complete beginner.
It is intended for people who are considering to install Plone on a Debian/Ubuntu server, or possibly another Linux distribution. it might also serve a purpose in the situation where a uniied Installer is not yet available for a specific release.
However, Ubuntu users of all levels of experience shocould be able to use this how-to get a quick start with Plone.
Application to other Linux distributions
This document is Ubuntu-specific in the sense that it gives the fastest way to install the required system libraries and Python modules (PIL). The rest will also apply to other Linux distributions.
Ubuntu releases
This how-to was originally created for Ubuntu 9.04 (Jaunty Jackalope), and has been updated for Ubuntu 9.10 (Karmic Koala) and 10.04 (Lucid Lynx ). it will be modified to continuously reflect the latest release of Ubuntu.
Plone releases
This how-to was originally created for Plone 3.3, and currently targets Plone 3.3.3. It will be modified to continuously reflect the latest release of Plone, and best practices for installing it.
Installing Plone 3 on Ubuntu
For easy usage, the main part of this how-to comes as a shell script:
#! /Bin/bash
# Install_plone_3_on_ubuntu.sh
#
# A quickstart guide to install Plone 3 on your Ubuntu system.
# Plone <4 only works with Python 2.4.
# 1a) On Ubuntu 9.04 (Jaunty) and 9.10 (Karmic ):
# Sudo apt-get install python2.4
# 1b) On Ubuntu 10.04 (Lucid ):
Wget http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz
Tar-xzf Python-2.4.6.tgz
Cd Python-2.4.6/
./Configure
Make
Sudo make install
Cd
# 2a) Get setuptools/easy_install for python 2.4
# Wget http://peak.telecommunity.com/dist/ez_setup.py
# Sudo python2.4 ez_setup.py-U setuptools
#
# 2b) As an alternative to Setuptools, you may want to consider using
# Distribute (http://pypi.python.org/pypi/distribute/) instead.
# The Plone community nowadays tends to use Distribute.
Wget http://python-distribute.org/distribute_setup.py
Sudo python2.4 distribute_setup.py
#3) Get ZopeSkel paster scripts
Sudo easy_install-2.4 ZopeSkel
#4.1) Create a buildout.
PLONEDIR = 'myplonebuildoout'
Paster create-t plone3_buildout $ PLONEDIR plone_version = 3.3.3 zope2_install = ''plone_products_install = ''zope_user = admin zope_password = admin http_port = 8080 debug_mode = off verbose_security = off
# See http://dist.plone.org/release/ for available releases.
# You might also do
# Paster create-t plone3_buildout
# To get a dialog prompting you for the variables.
Cd $ PLONEDIR
# Run bootstrap, this will create the bin/directory
Python2.4 bootstrap. py
#
#4.2) Install header files
# You need to have python header files installed in order to build Zope.
Sudo apt-get install python2.4-dev
#
# We may need these header files to build PIL (see below ).
# Without the header files, you might see this after running buildout:
#--------------------------------------------------------------------
# *** TKINTER support not available
# *** JPEG support not available
# --- ZLIB (PNG/ZIP) support OK
# *** FREETYPE2 support not available
#--------------------------------------------------------------------
# This means you'll get errors like these for uploaded JPEG images:
# IOError: decoder jpeg not available
# And you won't be able to see previews of these images, or modify them.
Sudo apt-get install libjpeg-dev libfreetype6-dev
# Now you'll see
#--------------------------------------------------------------------
# *** TKINTER support not available
# --- JPEG support OK
# --- ZLIB (PNG/ZIP) support OK
# --- FREETYPE2 support OK
#--------------------------------------------------------------------
#4.3) Run buildout.
./Bin/buildout
# (See http://www.netsight.co.uk/junk/xkcd-buildout.png .)
# 5a) For running the code, we need the Python imaging module (PIL), which is
# No longer packaged for Python 2.4 since Ubuntu 9.04 (Jaunty Jackalope ).
Wget http://dist.plone.org/thirdparty/PILwoTk-1.1.6.4.tar.gz
Sudo easy_install-2.4 PILwoTk-1.1.6.4.tar.gz
#
# 5b) As an alternative, you may also do as Alex Clarke suggests on
# Http://blog.aclark.net /? P = 31, and add this to your buildout. cfg:
# [Buildout]
# Find-links + =
# Find-links = http://dist.plone.org/thirdparty/PILwoTk-1.1.6.4.tar.gz
# [Instance]
# Eggs + =
# PILwoTk
# This means you don't have to install PILwoTk system-wide, which is nice.
# However, you still have to install the header files on your system!
#6) Start Plone!
./Bin/instance fgTroubleshooting
Solutions for common problems
Nothing yet.
References
Buildout reference manual: Managing projects with Buildout