Server/Plone: Unterschied zwischen den Versionen

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
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 4: Zeile 13:


; 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 ===


Installieren<!-- :-D --> von pkgng
Initialisieren von pkgng
: <code>pkg install pkg</code>
: <code>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
Zeile 30: Zeile 74:
: <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'')
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>
: <code>cd /usr/local/plone && echo 'effective-user www' >> etc/zope.conf</code>


Zeile 50: Zeile 95:
: <code>echo 'zope213_instances="/usr/local/plone"' >> /etc/rc.conf</code>
: <code>echo 'zope213_instances="/usr/local/plone"' >> /etc/rc.conf</code>


<!-- WTF! not really?!
=== ergänzende Installation ===
: <code>chown -R www:www /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n</code>
 
==== 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]]

Aktuelle Version vom 9. November 2021, 11:43 Uhr

Achtung

Dieser Artikel ist ein exemplarischer Artikel.

Es handelt sich hierbei nicht um die Instanz Plone als Website vom StuRa. Dazu dienen die Artikel:

Installation[Bearbeiten]

Randbedingungen[Bearbeiten]

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[Bearbeiten]

Initialisieren von pkgng

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)

Das ist bei FreeNAS 9.3 (2015-08-12) nicht nötig, gar produziert es ein Fehler beim nachfolgenden Starten.
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

ergänzende Installation[Bearbeiten]

Verwaltung via LDAP[Bearbeiten]

pkg install -y py27-plone.app.ldap

troubleshooting[Bearbeiten]

./zopectl debug weist ein Problem zur Internationalisierung für Diskussionen aus

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
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.
chown -R www:www /usr/local/lib/python2.7/site-packages/plone/app/discussion/i18n

Seiten zum Ausprobieren[Bearbeiten]