Aktuelle Version |
Dein Text |
Zeile 1: |
Zeile 1: |
| {{Achtung|
| |
| Dieser Artikel ist ein exemplarischer Artikel.
| |
|
| |
| Es handelt sich hierbei nicht um die Instanz [[Plone]] als Website vom StuRa.
| |
| Dazu dienen die Artikel:
| |
| * [[Website]];
| |
| * [[Server/Jails/SRS1]].
| |
| }}
| |
|
| |
| == Installation == | | == Installation == |
|
| |
|
Zeile 13: |
Zeile 4: |
|
| |
|
| ; OS: [[FreeBSD]][https://www.freebsd.org/releases/10.1R/readme.html 10.1] | | ; OS: [[FreeBSD]][https://www.freebsd.org/releases/10.1R/readme.html 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 === | | === tatsächliche Installation === |
|
| |
|
| Initialisieren von pkgng
| | Installieren<!-- :-D --> von pkgng |
| : <code>pkg</code> | | : <code>pkg install pkg</code> |
| | |
| 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 |
| : <code>mkdir -p /usr/local/plone</code> | | : <code>mkdir -p /usr/local/plone</code> |
| | |
| Erstellen einer Instanz für Zope im Verzeichnis für Plone | | Erstellen einer Instanz für Zope im Verzeichnis für Plone |
| : <code>/usr/local/bin/mkzopeinstance --dir /usr/local/plone</code> | | : <code>/usr/local/bin/mkzopeinstance --dir /usr/local/plone</code> |
Zeile 70: |
Zeile 28: |
| </pre> | | </pre> |
|
| |
|
| Ändern der Eigentumsrechte (zum Beispiel klassisch für den Account ''www'' (<tt>www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin</tt>)), um nicht mit den Berechtigungen als ''root'' Zope zu betreiben | | Ändern der Eigentumsrechte (bzw. für den Account ''www''), 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.<sup>[http://docs.zope.org/zope2/zope2book/InstallingZope.html#starting-zope-as-the-root-user<!-- Handbuch ZOPE: Zope Installieren - Starten von ZOPE als der root-Account -->]</sup> | | : Im Übrigen fordert es sich Zope ein, dass die Dateien nicht ''root'':''wheel'' gehören. |
| : <code>chown -R www:www /usr/local/plone</code> | | : <code>chown -R www:www /usr/local/plone</code> |
| Eintragung des Account mit passenden Rechten (beispielsweise nicht der Account ''nobody'')
| |
| : Das ist bei [[FreeNAS]] 9.3 (2015-08-12) nicht nötig, gar produziert es ein Fehler beim nachfolgenden Starten.
| |
| : <code>cd /usr/local/plone && echo 'effective-user www' >> etc/zope.conf</code>
| |
|
| |
|
| Starten von Zope | | Starten von Zope |
| : <code>cd /usr/local/plone && ./bin/zopectl start</code> | | : <code>cd /usr/local/plone && ./bin/zopectl start</code> |
| | |
| Anhalten von Zope | | Anhalten von Zope |
| : <code>/usr/local/plone/bin/zopectl stop</code> | | : <code>/usr/local/plone/bin/zopectl stop</code> |
| Testen von von Zope (um zu prüfen, ob alles ideal läuft)
| | |
| : <code>/usr/local/plone/bin/zopectl debug</code>
| |
| <pre>
| |
| Starting debugger (the name "app" is bound to the top-level Zope object)
| |
| >>>
| |
| </pre>
| |
| Anderes Starten von Zope | | Anderes Starten von Zope |
| : <code>/usr/local/plone/bin/zopectl start</code> | | : <code>/usr/local/plone/bin/zopectl start</code> |
Zeile 92: |
Zeile 43: |
| Eintragung, dass Zope nach einem mögliche Neustart laufen soll | | Eintragung, dass Zope nach einem mögliche Neustart laufen soll |
| : <code>echo 'zope213_enable="YES"' >> /etc/rc.conf</code> | | : <code>echo 'zope213_enable="YES"' >> /etc/rc.conf</code> |
| | |
| Eintragung, wo nach einem mögliche Neustart Zope eine (oder auch mehrere) Instanz findet | | Eintragung, wo nach einem mögliche Neustart Zope eine (oder auch mehrere) Instanz findet |
| : <code>echo 'zope213_instances="/usr/local/plone"' >> /etc/rc.conf</code> | | : <code>echo 'zope213_instances="/usr/local/plone"' >> /etc/rc.conf</code> |
|
| |
| === ergänzende Installation ===
| |
|
| |
| ==== Verwaltung via LDAP ====
| |
| : <code>pkg install -y py27-plone.app.ldap</code>
| |
| <!--
| |
| <pre>
| |
| Message for openldap-client-2.4.40_1:
| |
| ************************************************************
| |
|
| |
| The OpenLDAP client package has been successfully installed.
| |
|
| |
| Edit
| |
| /usr/local/etc/openldap/ldap.conf
| |
| to change the system-wide client defaults.
| |
|
| |
| Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at
| |
| http://www.OpenLDAP.org/faq/index.cgi?file=3
| |
| for more information.
| |
|
| |
| ************************************************************
| |
| </pre>
| |
| -->
| |
|
| |
| == troubleshooting ==
| |
|
| |
| <code>./zopectl debug</code> weist ein Problem zur Internationalisierung für Diskussionen aus
| |
| <pre>
| |
| YYYY-MM-DD hh:mm:ss WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-de.po
| |
| </pre>
| |
| <!--
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-zh_TW.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-zh_CN.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-it.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-fr.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-el.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-uk.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-es.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-pt_BR.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-da.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-ca.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-ja.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-eu.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-nl.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-cs.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-de.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-sk.po
| |
|
| |
| 2014-12-13 15:09:28 WARNING PlacelessTranslationService Error while compiling /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n/plone-no.po
| |
| -->
| |
| : Es ist nicht erklärlich warum sich dieses Problem (genau dort) ergibt. Es kann gemutmaßt werden, dass es etwas mit den Zeichensätzen der Sprachen zu tun hat.
| |
| : Der Fehler lässt sich (scheinbar) beheben, indem die Eigentumsrechte an ''www'' gegeben werden.<!-- just a shoot in the dark that works -->
| |
| :: <code>chown -R www:www /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n</code>
| |
|
| |
| == Seiten zum Ausprobieren ==
| |
| * Plone 4
| |
| ** http://plone-demo.quintagroup.com/
| |
| * Plone 5
| |
| ** https://demo.plone.org/
| |
| * Plone 6
| |
| ** https://6.demo.plone.org/
| |
|
| |
|
| [[Kategorie:Server]] | | [[Kategorie:Server]] |
| [[Kategorie:Website]] | | [[Kategorie:Website]] |