Bearbeiten von „Server/SRS1/2017

Zur Navigation springen Zur Suche springen
Warnung: Du bist nicht angemeldet. Deine IP-Adresse wird bei Bearbeitungen öffentlich sichtbar. Melde dich an oder erstelle ein Benutzerkonto, damit Bearbeitungen deinem Benutzernamen zugeordnet werden. Ein eigenes Benutzerkonto hat eine ganze Reihe von Vorteilen.

Die Bearbeitung kann rückgängig gemacht werden. Bitte prüfe den Vergleich unten, um sicherzustellen, dass du dies tun möchtest, und veröffentliche dann unten deine Änderungen, um die Bearbeitung rückgängig zu machen.

Aktuelle Version Dein Text
Zeile 1: Zeile 1:
; Verwendungszweck:
* die plone-kiste
* [[Plone]] ([[Website]]) für [http://www.stura.htw-dresden.de www.stura.htw-dresden.de]
'''Lauffähig'''
* [[w:de:Webschnittstelle|Webschnittstelle]] [[Chat]] für [http://chat.htw.stura-dresden.de chat.htw.stura-dresden.de]
noch nen Dump ziehen vom alten Plone4 und dann übertragen


'''Lauft!'''
*noch portaudit installieren


== Plone ==
== Plone ==
Zeile 69: Zeile 69:
  </rolemap>
  </rolemap>


== [[Server/Jails/SRS1/Ports |Ports]] ==
== Ports ==
{{:Server/Jails/SRS1/Ports}}


== Konfiguration der Programme ==
=== Apache22 ===
<code>
[X] THREADS              Enable threads support in APR
[ ] MYSQL                Enable MySQL support for apr-dbd
[ ] PGSQL                Enable PostgreSQL support for apr-dbd
[ ] SQLITE                Enable SQLite support for apr-dbd
[X] IPV6                  Enable IPv6 support
[ ] BDB                  Enable BerkeleyDB dbm
[X] AUTH_BASIC            Enable mod_auth_basic
[X] AUTH_DIGEST          Enable mod_auth_digest
[X] AUTHN_FILE            Enable mod_authn_file
[ ] AUTHN_DBD            Enable mod_authn_dbd
[X] AUTHN_DBM            Enable mod_authn_dbm
[X] AUTHN_ANON            Enable mod_authn_anon
[X] AUTHN_DEFAULT        Enable mod_authn_default
[X] AUTHN_ALIAS          Enable mod_authn_alias
[X] AUTHZ_HOST            Enable mod_authz_host
[X] AUTHZ_GROUPFILE      Enable mod_authz_groupfile
[X] AUTHZ_USER            Enable mod_authz_user
[X] AUTHZ_DBM            Enable mod_authz_dbm
[X] AUTHZ_OWNER          Enable mod_authz_owner
[X] AUTHZ_DEFAULT        Enable mod_authz_default
[X] CACHE                Enable mod_cache
[X] DISK_CACHE            Enable mod_disk_cache
[X] FILE_CACHE            Enable mod_file_cache
[X] MEM_CACHE            Enable mod_mem_cache
[X] DAV                  Enable mod_dav
[X] DAV_FS                Enable mod_dav_fs
[ ] BUCKETEER            Enable mod_bucketeer
[ ] CASE_FILTER          Enable mod_case_filter
[ ] CASE_FILTER_IN        Enable mod_case_filter_in
[ ] EXT_FILTER            Enable mod_ext_filter
[ ] LOG_FORENSIC          Enable mod_log_forensic
[ ] OPTIONAL_HOOK_EXPORT  Enable mod_optional_hook_export
[ ] OPTIONAL_HOOK_IMPORT  Enable mod_optional_hook_import
[ ] OPTIONAL_FN_IMPORT    Enable mod_optional_fn_import
[ ] OPTIONAL_FN_EXPORT    Enable mod_optional_fn_export
[ ] LDAP                  Enable mod_ldap
[ ] AUTHNZ_LDAP          Enable mod_authnz_ldap
[X] ACTIONS              Enable mod_actions
[X] ALIAS                Enable mod_alias
[X] ASIS                  Enable mod_asis
[X] AUTOINDEX            Enable mod_autoindex
[X] CERN_META            Enable mod_cern_meta
[ ] CGI                  Enable mod_cgi
[X] CHARSET_LITE          Enable mod_charset_lite
[ ] DBD                  Enable mod_dbd
[X] DEFLATE              Enable mod_deflate
[X] DIR                  Enable mod_dir
[X] DUMPIO                Enable mod_dumpio
[X] ENV                  Enable mod_env
[X] EXPIRES              Enable mod_expires
[X] HEADERS              Enable mod_headers
[X] IMAGEMAP              Enable mod_imagemap
[X] INCLUDE              Enable mod_include
[X] INFO                  Enable mod_info
[X] LOG_CONFIG            Enable mod_log_config
[X] LOGIO                Enable mod_logio
[X] MIME                  Enable mod_mime
[X] MIME_MAGIC            Enable mod_mime_magic
[X] NEGOTIATION          Enable mod_negotiation
[X] REWRITE              Enable mod_rewrite
[X] SETENVIF              Enable mod_setenvif
[X] SPELING              Enable mod_speling
[X] STATUS                Enable mod_status
[ ] UNIQUE_ID            Enable mod_unique_id
[ ] USERDIR              Enable mod_userdir
[ ] USERTRACK            Enable mod_usertrack
[X] VHOST_ALIAS          Enable mod_vhost_alias
[X] FILTER                Enable mod_filte
[ ] SUBSTITUTE            Enable mod_substitute
[X] VERSION              Enable mod_version
[X] PROXY                Enable mod_proxy
[X] PROXY_CONNECT        Enable mod_proxy_connect
[X] PATCH_PROXY_CONNECT  Patch proxy_connect SSL support
[ ] PROXY_FTP            Enable mod_proxy_ftp
[X] PROXY_HTTP            Enable mod_proxy_http
[ ] PROXY_AJP            Enable mod_proxy_ajp
[X] PROXY_BALANCER        Enable mod_proxy_balancer
[ ] PROXY_SCGI            Enable mod_proxy_scgi
[X] SSL                  Enable mod_ssl
[ ] SUEXEC                Enable mod_suexec
[ ] SUEXEC_RSRCLIMIT      SuEXEC rlimits based on login class
[X] REQTIMEOUT            Enable mod_reqtimeout
[ ] CGID                  Enable mod_cgid
</code>
 
=== apr-ipv6-devrandom-gdbm-db42 ===


=== Konfiguration Plone ===
<code>
; für Backup aktivierung
[X] THREADS    Enable Threads in apr
* in die buildout.cfg schreiben unter der überschrift [buildout]
[X] IPV6      Enable IPV6 Support in apr
  ########################################## ##
  [X] BDB        Enable Berkley BDB support in apr-util
  # Parts Specification
  [X] GDBM      Enable GNU dbm support in apr-util
  #--------------------
  [ ] LDAP      Enable LDAP support in apr-util
  # Specifies the components that should be included in the buildout.
  [ ] MYSQL      Enable MySQL suport in apr-util
  # All the basics are in the base.cfg extension; you may add your
  [ ] NDBM      Enable NDBM support in apr-util
  # own if you need them at the end of this file.
  [ ] PGSQL      Enable Postgresql suport in apr-util
  parts =
  [ ] SQLITE     Enable SQLite3 support in apr-util
     instance
[X] DEVRANDOM  Use /dev/random or compatible in apr
    zopepy
</code>
    zopeskel
    unifiedinstaller
    chown
    '''backup'''
    '''repozo'''


* [backup] am Schluss hin schreiben und weitere Parameter eintragen (buildout.cfg)
=== gdbm ===
[backup]
recipe = collective.recipe.backup
keep = 4
full = true
debug = false
snapshotlocation = /root/plonebackup/snapshot
backup_blobs = true
blobsnapshotlocation = /root/plonebackup/blobsnapshots
gzip = true
enable_snapshotrestore = false


; wenn die Datei repozo.py fehlte (buildout.cfg)
<code>
[ ] COMPAT  dbm/ndbm compatibility
</code>


[repozo]
=== python27 ===
recipe = zc.recipe.egg
eggs = ZODB3
scripts = repozo


; /etc/crontab
<code>
[X] THREADS          Enable thread support
[ ] HUGE_STACK_SIZE  Use a larger thread stack
[ ] SEM              Use POSIX semaphores (experimental)
[ ] PTH              Use GNU Pth for threading/multiprocessing
[X] UCS4            Use UCS4 for unicode support
[X] PYMALLOC        Use python's internal malloc
[X] IPV6            Enable IPv6 support
[ ] FPECTL          Enable floating point exception handling
</code>


# Plone inkrementelles Backup
== Konfiguration der Programme ==
*      23      *      *      6      root    <path/to/plone>/zinstance/bin/backup
# Plone Fullbackup (snapshot)
*      20      5      *      *      root    <path/to/plone>/zinstance/bin/snapshotbackup


=== Konfiguration Apache22 ===
=== Apache22 ===


* httpd.conf
*httpd.conf


  <code>
  <code>
Zeile 251: Zeile 328:
  </VirtualHost>
  </VirtualHost>
  </code>
  </code>
== Konfiguration von Skripten ==
==== rc.d scripting Plone ====
Seit Anbeginn (nun mehrere Jahre) hat der Betrieb von [[Plone]] auf [[srs1]] ein großes Manko: Plone startet nicht von allein. Daher musste sich auf [[srs1]] manuell angemeldet werden und [[Plone]] musste "von Hand" gestartet werden. Das soll nun anders sein.
: <code>$EDITOR /usr/local/etc/rc.d/plone</code>
<pre>
#!/bin/sh
# PROVIDE: plone
# REQUIRE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name="plone"
rcvar=plone_enable
start_cmd="${name}_start"
stop_cmd="${name}_stop"
restart_cmd="${name}_restart"
status_cmd="${name}_status"
extra_commands="status"
load_rc_config ${name}
#: ${plone_enable:="NO"}
plone_stop()
{
        /usr/local/Plone/zinstance/bin/plonectl stop
}
plone_status()
{
        /usr/local/Plone/zinstance/bin/plonectl status
}
plone_start()
{
        /usr/local/Plone/zinstance/bin/plonectl start
}
plone_restart()
{
        /usr/local/Plone/zinstance/bin/plonectl restart
}
run_rc_command "$1"
</pre>
Anpassen der Berechtigung für eine Datei für ''rc.d''
: <code>chmod 540 /usr/local/etc/rc.d/plone</code>
: Kontrollieren der Berechtigung für eine Datei für ''rc.d''
:: <code>ls -l /usr/local/etc/rc.d/plone</code>
<pre>
-r-xr-----  1 root  wheel  603 Oct 23 18:34 /usr/local/etc/rc.d/plone
</pre>
Selbstverständlich bedarf es auch noch dem Eintrag in der ''rc.conf'', um Anzuzeigen, dass ''plone '' gestartet werden soll kann.
: <code>echo 'plone_enable="YES"' >> /etc/rc.conf</code>
Eigentlich ist die Datei für ''rc.d'' relativ simpel. (Der Bezug sind die komplexen Varianten, die ''rc.d'' und entsprechende Dateien mit sich brinken können.)
* ''/usr/local/Plone/zinstance/bin/plonectl'' ist die Stelle und Datei zur Verwaltung des Betriebes von Plone. (Woher die Auswahl dieses Stelle stammt ist nicht näher bekannt.)
* Bei der Entfernung der Auskommentierung bei '''''#''': ${plone_enable:="NO"}'' würde Plone nicht zu Starten der Jail selbst starten. Jedoch wären aber noch alle anderen gewünschten Funktionalitäten von ''rc.d'' verfügbar.
* Folgende Befehle sind nun mittels ''rc.d'' verfügbar:
** <code>service plone stop</code>
**: Stoppen von Plone
** <code>service plone stauts</code>
**: Status von Plone ausgeben lassen
** <code>service plone start</code>
**: Starten von Plone
** <code>service plone restart</code>
**: Neustarten von Plone
*:.
Läuft!
== Weblinks ==
* [http://www.imn.htwk-leipzig.de/~mfrank/lehre/osem_10/CBecker_Backup_Datensicherung_Vortrag.pdf PDF File für Plone 4 Backup]
* [https://plone.org/documentation/manual/upgrade-guide Upgrade Manual]
[[Kategorie:Rechentechnik]]
[[Kategorie:Software]]
[[Kategorie:Jail]]

Bitte beachte, dass alle Beiträge zu Wiki StuRa HTW Dresden von anderen Mitwirkenden bearbeitet, geändert oder gelöscht werden können. Reiche hier keine Texte ein, falls du nicht willst, dass diese ohne Einschränkung geändert werden können.

Du bestätigst hiermit auch, dass du diese Texte selbst geschrieben hast oder diese von einer gemeinfreien Quelle kopiert hast (weitere Einzelheiten unter StuRa HTW Dresden:Urheberrechte). ÜBERTRAGE OHNE GENEHMIGUNG KEINE URHEBERRECHTLICH GESCHÜTZTEN INHALTE!

Bitte beantworte die folgende Frage, um diese Seite speichern zu können (weitere Informationen):

Abbrechen Bearbeitungshilfe (wird in einem neuen Fenster geöffnet)

Die folgende Vorlage wird auf dieser Seite verwendet: