Server/Plone: Unterschied zwischen den Versionen

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
Zeile 13: Zeile 13:
Installieren von Plone
Installieren von Plone
: <code>pkg install plone</code>
: <code>pkg install plone</code>
<!--
<pre>
Message for zope213-2.13.22:
**********************************************************************
Zope Successfull installed.
To create an instance of Zope please run
/usr/local/bin/mkzopeinstance --dir <INSTANCEDIR>
<INSTANCEDIR> is the directory where the instance files should
              be installed. This can be /usr/local/www/Zope213
Command-line options to 'mkzopeinstance' are available, and can be
investigated by running 'mkzopeinstance --help'.
Zope instances, created by mkzopeinstance, will not be removed
when the package is deinstalled. You'll have to delete them yourself.
If Zope should get started automatically when the system starts,
please add the following line to /etc/rc.conf
zope213_enable="YES"
If you are using not default instance location, please add this
line to /etc/rc.conf to make it working:
zope213_instances="<INSTANCEDIR>"
Additional Zope instances have to be added to zope213_instances
separated by a space.
</pre>
-->


Erstellen des Verzeichnisses, wo Plone beheimatet sein soll
Erstellen des Verzeichnisses, wo Plone beheimatet sein soll

Version vom 13. Dezember 2014, 06:31 Uhr

Installation

Randbedingungen

OS
FreeBSD 10.1
Paketverwaltung
freebsd-man:pkgng (statt freebsd-man:make)
  • LDAP ist (2014-12-13) nicht im pkg-Binärpaket und müsste "gebaut" werden.

tatsächliche Installation

Installieren von pkgng

pkg install pkg

Installieren von Plone

pkg install plone

Erstellen des Verzeichnisses, wo Plone beheimatet sein soll

mkdir -p /usr/local/plone

Erstellen einer Instanz für Zope im Verzeichnis für Plone

/usr/local/bin/mkzopeinstance --dir /usr/local/plone
Please choose a username and password for the initial user.
These will be the credentials you use to initially manage
your new Zope instance.

Username: $account-of-zope-admin
Password: 
Verify password:

Ändern der Eigentumsrechte (zum Beispiel klassisch für den Account www (www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin)), um nicht mit den Berechtigungen als root Zope zu betreiben

Im Übrigen fordert es sich Zope ein, dass die Dateien nicht root:wheel gehören.[1]
chown -R www:www /usr/local/plone

Eintragung des Account mit passenden Rechten (beispielsweise nicht der Account nobody)

cd /usr/local/plone && echo 'effective-user www' >> etc/zope.conf

Starten von Zope

cd /usr/local/plone && ./bin/zopectl start

Anhalten von Zope

/usr/local/plone/bin/zopectl stop

Testen von von Zope (um zu prüfen, ob alles ideal läuft)

/usr/local/plone/bin/zopectl debug
Starting debugger (the name "app" is bound to the top-level Zope object)
>>>

Anderes Starten von Zope

/usr/local/plone/bin/zopectl start

Eintragung, dass Zope nach einem mögliche Neustart laufen soll

echo 'zope213_enable="YES"' >> /etc/rc.conf

Eintragung, wo nach einem mögliche Neustart Zope eine (oder auch mehrere) Instanz findet

echo 'zope213_instances="/usr/local/plone"' >> /etc/rc.conf