StuRa:Server/SRS13/2015: Unterschied zwischen den Versionen

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
K (ArturasMiller verschob die Seite Server/SRS13/2015 nach StuRa:Server/SRS13/2015)
 
(40 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
*für wiki
Verwendungszweck: [[MediaWiki]] für [http://wiki.htw.stura-dresden.de wiki.htw.stura-dresden.de]
== Ports ==


=== Apache22 ===
== [[Server/Jails/SRS13/Ports |Ports]] ==
<code>
[X] THREADS              Enable threads support in APR
[X] 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
[X] 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
[ ] PROXY                Enable mod_proxy
[ ] PROXY_CONNECT        Enable mod_proxy_connect
[X] PATCH_PROXY_CONNECT  Patch proxy_connect SSL support
[ ] PROXY_FTP            Enable mod_proxy_ftp
[ ] PROXY_HTTP            Enable mod_proxy_http
[ ] PROXY_AJP            Enable mod_proxy_ajp
[ ] 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 ===
{{:Server/Jails/SRS13/Ports}}


<code>
== zusätzliche Konfigurationsdateien ==
[X] THREADS    Enable Threads in apr
[X] IPV6      Enable IPV6 Support in apr
[X] BDB        Enable Berkley BDB support in apr-util
[X] GDBM      Enable GNU dbm support in apr-util
[ ] LDAP      Enable LDAP support in apr-util
[X] MYSQL      Enable MySQL suport in apr-util
[ ] NDBM      Enable NDBM support in apr-util
[ ] PGSQL      Enable Postgresql suport in apr-util
[ ] SQLITE    Enable SQLite3 support in apr-util
[X] DEVRANDOM  Use /dev/random or compatible in apr
</code>


=== gdbm ===
=== Jail ===


<code>
==== /etc/rc.conf ====
[ ] COMPAT  dbm/ndbm compatibility
</code>
 
=== libxslt ===


  <code>
  <code>
  [ ] MEM_DEBUG  Enable memory debugging
  apache22_enable="YES"
  [X] CRYPTO    Enable crypto support for exslt
  mysql_enable="YES"
  </code>
  </code>


=== MediaWiki ===
== Konfiguration der Programme ==


<code>
=== apache ===
[ ] PGSQL    Use PostgreSQL (instead of MySQL)
[ ] LDAP    Use LDAP authentication
[ ] TEXVC    Use built-in TeX rendering
[X] APC      Use pecl-APC
[ ] EACCEL  Use eAccelerator (instead of pecl-APC)
[ ] IMAGICK  Use ImageMagick
</code>


=== MySQL5.5.-client ===
==== httpd.conf ====


  <code>
  <code>
  [X] OPENSSL Enable SSL support
 
  [ ] FASTMTX Replace mutexes with spinlocks
LoadModule php5_module        libexec/apache22/libphp5.so
<IfModule php5_module>
    DirectoryIndex index.php index.php5 index.html
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
</IfModule>
ServerAdmin <admin[at]domain.tld>
ServerName wiki.htw.stura-dresden.de:80
DocumentRoot "</path/to/mediawiki>"
#<Directory "/usr/local/www/apache22/data">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #  Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
#    Options Indexes FollowSymLinks
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #  Options FileInfo AuthConfig Limit
    #
#    AllowOverride None
    #
    # Controls who can get stuff from this server.
    #
#    Order allow,deny
#    Allow from all
#</Directory>
 
  # Virtual hosts
Include etc/apache22/extra/httpd-vhosts.conf
# CustomLog "/var/log/httpd-access.log" combined # comment out [http://www.wirspeichernnicht.de/ Der StuRa speichert '''nicht'''!]
 
  </code>
  </code>


=== MySQL5.5.-server ===
===== extra/httpd-vhosts.conf =====


  <code>
  <code>
  [X] OPENSSL Enable SSL support
 
  [ ] FASTMTX Replace mutexes with spinlocks
NameVirtualHost 141.56.50.13:80
 
  <VirtualHost wiki.htw.stura-dresden.de:80>
    Redirect permanent / http://wiki.stura.htw-dresden.de/
</VirtualHost>
<VirtualHost wiki.stura.htw-dresden.de:80>
    ServerAdmin webmaster@stura.htw-dresden.de
    DocumentRoot "/usr/local/www/sturawiki_1_19_2"
    ServerName wiki.stura.htw-dresden.de
    ServerAlias www.wiki.stura.htw-dresden.de
    <Directory "/usr/local/www/sturawiki_1_19_2">
        Options Indexes FollowSymLinks
        DirectoryIndex index.php index.php5 index.html
        AllowOverride none
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "/var/log/wiki-error_log"
#    CustomLog "/var/log/wiki-access_log" common
</VirtualHost>
<VirtualHost wiki.hs-abc.htw.stura-dresden.de:80>
    ServerAdmin webmaster@stura.htw-dresden.de
    DocumentRoot "/usr/local/www/hs-abcwiki_1_19_4"
    ServerName wiki.hs-abc.htw.stura-dresden.de
    ServerAlias www.wiki.hs-abc.htw.stura-dresden.de
    <Directory "/usr/local/www/hs-abcwiki_1_19_4">
        Options Indexes FollowSymLinks
        DirectoryIndex index.php index.php5 index.html
        AllowOverride none
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "/var/log/wiki-error_log"
#  CustomLog "/var/log/wiki-access_log" common
</VirtualHost>
<VirtualHost wiki.fzs.stura-dresden.de:80>
    ServerAdmin webmaster@stura.htw-dresden.de
    DocumentRoot "/usr/local/www/fzswiki_1_19_4"
    ServerName wiki.fzs.stura-dresden.de
    ServerAlias www.wiki.fzs.htw.stura-dresden.de
    <Directory "/usr/local/www/fzswiki_1_19_4">
        Options Indexes FollowSymLinks
        DirectoryIndex index.php index.php5 index.html
        AllowOverride none
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "/var/log/fzswiki-error_log"
#    CustomLog "/var/log/fzswiki-access_log" common
</VirtualHost>
<VirtualHost fzs-wiki.de:80>
    DocumentRoot "/usr/local/www/fzswiki_1_19_4"
    ServerName wiki.fzs.stura-dresden.de
    ServerAlias www.wiki.fzs.htw.stura-dresden.de
    <Directory "/usr/local/www/fzswiki_1_19_4">
        Options Indexes FollowSymLinks
        DirectoryIndex index.html index.php
        AllowOverride none
        Order allow,deny
        Allow from all
    </Directory>
  </VirtualHost>
  </code>
  </code>


=== pecl-APC ===
=== mediawiki ===


<code>
==== Wiki ====
[ ] IPC        Enable IPC shm memory support (default: mmap)
[ ] SEMAPHORES  Enable sysv IPC semaphores (default: fcntl())
[ ] SPINLOCKS  Enable spinlocks (experimental)
[ ] FILEHITS    Enable per request cache info
</code>


=== PHP5.3 ===
===== </path/to/mediawiki-stura>/LocalSettings.php =====


  <code>
  <code>
  [X] CLI        Build CLI version
 
  [X] CGI        Build CGI version
$wgLogo            = "$wgStylePath/common/images/stura.jpg";
  [ ] FPM        Build FPM version (experimental)
$wgFavicon          = "$wgStylePath/common/images/stura_ohne_typo.favicon32.jpg";
  [X] APACHE    Build Apache module
  [ ] AP2FILTER  Use Apache 2.x filter interface (experimental)
  [ ] DEBUG      Enable debug
$wgDefaultSkin = 'vector';
  [X] SUHOSIN    Enable Suhosin protection system
  [ ] MULTIBYTE Enable zend multibyte support
  [X] IPV6       Enable ipv6 support
##############################                                                                                                     
  [ ] MAILHEAD  Enable mail header patch
## Ausnahmen Details zeigen ##                                                                                                     
  [ ] LINKTHR    Link thread lib (for threaded extensions)
##############################                                                                                                     
  </code>
$wgShowExceptionDetails = false;
###################
## Mail Settings ##
###################
$wgSMTP = array (
    'IDHost' => 'wiki.stura.htw-dresden.de', //this is used to build the Message-ID mail header
    'host'  => 'mail.stura.htw-dresden.de', //this is the outgoing mail server name (SMTP server)
    'port'  => 25, //this is the port used by the SMTP server
    'auth'  => false,  //in my case, authentication is not required by the mail server for outgoing mail
);
################
## Namespaces ##
################
define("NS_STURA", 100);
define("NS_STURA_TALK", 101);
define("NS_INTERN", 102);
define("NS_INTERN_TALK", 103);
define("NS_ADMIN", 104);
define("NS_ADMIN_TALK", 105);
define("NS_PERSON", 106);
define("NS_PERSON_TALK", 107);
$wgExtraNamespaces[NS_STURA] = "StuRa";
  $wgExtraNamespaces[NS_STURA_TALK] = "StuRa_Diskussion";
  $wgExtraNamespaces[NS_INTERN] = "Intern";
  $wgExtraNamespaces[NS_INTERN_TALK] = "Intern_Diskussion";
  $wgExtraNamespaces[NS_ADMIN] = "Admin";
  $wgExtraNamespaces[NS_ADMIN_TALK] = "Admin_Diskussion";
  $wgExtraNamespaces[NS_PERSON] = "Person";
  $wgExtraNamespaces[NS_PERSON_TALK] = "Person_Diskussion";
################
## Extensions ##
################
$wgAllowExternalImages = true #Externe Bilder einbinden
require_once "$IP/extensions/ConfirmEdit/QuestyCaptcha.php";
  $wgCaptchaClass = 'QuestyCaptcha';
  $arr = array (
        'Frage' => 'An answer!',        
  );
  foreach ( $arr as $key => $value ) {
        $wgCaptchaQuestions[] = array( 'question' => $key, 'answer' => $value );
  };


=== php5-mbstring ===
$wgCaptchaTriggers['edit'] = true;
$wgCaptchaTriggers['create'] = true;
require_once( "$IP/extensions/Renameuser/Renameuser.php" );
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
require_once( "$IP/extensions/Lockdown/Lockdown.php" );
require_once( "$IP/extensions/Interwiki/Interwiki.php" );
require_once( "$IP/extensions/ContributionScores/ContributionScores.php" );
#################################
## ContributionScores settings ##
#################################
$wgContribScoreIgnoreBots = true;          // Exclude Bots from the reporting - Can be omitted.
$wgContribScoreIgnoreBlockedUsers = true;  // Exclude Blocked Users from the reporting - Can be omitted.
$wgContribScoresUseRealName = true;        // Use real user names when available - Can be omitted. Only for MediaWiki 1.19 and later.
$wgContribScoreDisableCache = false;      // Set to true to disable cache for parser function and inclusion of table.
//Each array defines a report - 7,50 is "past 7 days" and "LIMIT 50" - Can be omitted.
$wgContribScoreReports = array(
    array(7,50),
    array(30,50),
    array(0,50)
) ;
####################
## costume groups ##
####################
// Implicit group for intern (copy of group user)
$wgGroupPermissions['intern']['move']            = true;
$wgGroupPermissions['intern']['move-subpages']    = true;
$wgGroupPermissions['intern']['move-rootuserpages'] = true; // can move root userpages
//$wgGroupPermissions['intern']['movefile']        = true;      // Disabled for now due to possible bugs and security concerns
$wgGroupPermissions['intern']['read']            = true;
$wgGroupPermissions['intern']['edit']            = true;
$wgGroupPermissions['intern']['createpage']      = true;
$wgGroupPermissions['intern']['createtalk']      = true;
$wgGroupPermissions['intern']['writeapi']        = true;
$wgGroupPermissions['intern']['upload']          = true;
$wgGroupPermissions['intern']['reupload']        = true;
$wgGroupPermissions['intern']['reupload-shared']  = true;
$wgGroupPermissions['intern']['minoredit']        = true;
$wgGroupPermissions['intern']['purge']            = true; // can use ?action=purge without clicking "ok"
$wgGroupPermissions['intern']['sendemail']        = true;
// To grant sysops permissions to edit interwiki data
$wgGroupPermissions['sysop']['interwiki'] = true;
###########################
## Restricted namespaces ##
###########################
$wgNamespacePermissionLockdown[NS_INTERN]['*'] = array('intern');
$wgNamespacePermissionLockdown[NS_INTERN_TALK]['*'] = array('intern');
$wgNamespacePermissionLockdown[NS_PERSON]['*'] = array('intern');
$wgNamespacePermissionLockdown[NS_PERSON_TALK]['*'] = array('intern');
</code>


<code>
===== Wiki Extensions =====
[X] REGEX  Enable multibyte regex support
</code>


=== php5-mysql ===
====== Wiki [[mediawikiwiki:Extension:Asirra|Extension Asirra]] ======


<code>
Die Extension:Asirra wird nicht mehr verwendet!
[ ] MYSQLND  Use MySQL Native Driver
: Die Extension:Asirra
</code>
:* wurde seit 2014-10 nicht mehr unterstützt;
 
:* funktionierte Ende 2014 nicht mehr;
=== python27 ===
:* musst Ende 2014 ersetzt werden;
 
:* wurde Anfang 2015 durch [[user:Tom|Tom]] durch [[#Wiki Extension QuestyCaptcha]] ersetzt;
<code>
:* diente als [[w:de:CAPTCHA|CAPTCHA]].
[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>


== Konfiguration Programme ==
; Asirra/ConfirmEdit.php


=== Apache22 ===
====== Wiki [[mediawikiwiki:Extension:Lockdown|Extension Lockdown]] ======


*httpd.conf
; Installation:
<code>
wget https://codeload.github.com/wikimedia/mediawiki-extensions-Lockdown/legacy.tar.gz/REL1_19


  <code>
  tar -xzf wikimedia-mediawiki-extensions-Lockdown-84fca94.tar.gz -C /var/www/mediawiki/extensions
LoadModule php5_module        libexec/apache22/libphp5.so
</code>
...
<IfModule php5_module>
  DirectoryIndex index.php index.html
  AddType application/x-httpd-php.php
  AddType application/x-httpd-php-source.phps
<IfModule>
...
Include etc/apache22/extra/httpd-vhosts.conf
</code>


*extra/httpd-vhost.conf
====== Wiki [[mediawikiwiki:Extension:QuestyCaptcha|Extension QuestyCaptcha]] ======


<code>
Die Extension:QuestyCaptcha
...
* dient als [[w:de:CAPTCHA|CAPTCHA]];
NameVirtualHost <ip>:80
* wurde 2015-01 installiert;
...
* ersetzte [[#Wiki Extension Asirra]].
<VirtualHost <ip>:80>
    ServerAdmin webmaster@<domain>
    DocumentRoot "<directoryname>"         
    ServerName <domainname>
    ErrorLog "/var/log/<name>-error_log"
    CustomLog "/var/log/<name>-access_log" common
</VirtualHost>
</code>


==== Probleme ====
==== [[Hochschul-ABC/Wiki|HS-ABC Wiki]] ====


* Einige antike Clients sind nicht kompatibel zu namensbasierten virtuellen Hosts. Damit namensbasierte virtuelle Hosts funktionieren, muss der Client den HTTP-Host-Header  senden. Dies ist bei HTTP/1.1 vorgeschrieben und in allen modernen HTTP/1.0-Browsern als Erweiterung implementiert. Wenn Sie Unterstützung für veraltete Clients benötigen und dennoch namensbasierte virtuelle Hosts verwenden, dann finden Sie eine mögliche Lösung dafür am Ende des Dokuments.
===== </path/to/mediawiki-hsabc>/LocalSettings.php =====
* Namensbasierte virtuelle Hosts können aufgrund der Natur des SSL-Protokolls nicht mit SSL-gesicherten Servern verwendet werden.
* Einige Betriebssysteme und Netzwerkanlagen setzen Techniken zum Bandbreiten-Management ein, die nicht zwischen Hosts unterscheiden können, wenn diese nicht auf verschiedenen IP-Adressen liegen.


=== Mediawiki ===
require_once( "$IP/extensions/Asirra/Asirra.php" );
require_once( "$IP/extensions/Renameuser/Renameuser.php" );
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
###################
## Mail Settings ##
###################
$wgSMTP = array (
    'IDHost' => 'wiki.hs-abc.htw.stura-dresden.de', //this is used to build the Message-ID mail header
    'host'  => 'mail.stura.htw-dresden.de', //this is the outgoing mail server name (SMTP server)
    'port'  => 25, //this is the port used by the SMTP server
    'auth'  => false,  //in my case, authentication is not required by the mail server for outgoing mail
);


*für mehrere Mediawikis auf einen Server
===== </path/to/mediawiki-hsabc>/extensions/Asirra/ConfirmEdit.php =====


  <code>
  <code>
  cd /usr/local/www/mediawiki
 
  mkdir orginal
  $wgGroupPermissions['user'        ]['skipcaptcha'] = true;
  chown www orginal
  $wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false;
  mv * orginal
 
  mkdir <ein neues verzeichniss für jedes wiki>
  $wgCaptchaTriggers['edit']          = true; // Would check on every edit
  chown www <wikiverzeichniss>
  $wgCaptchaTriggers['create']        = false; // Check on page creation.
  ln -s orginal/* <wikiverzeichniss>
  $wgCaptchaTriggers['sendemail']    = true; // Special:Emailuser
cd <wikiverzeichniss>
 
rm images
mkdir images
chown www images
  chmod 640 images
  </code>
  </code>


== Siehe auch ==
== Siehe auch ==
* [[Wiki]]
* [[mediawikiwiki:Manual:Upgrading MediaWiki]]
* [[Server/MediaWiki]]
* [[mediawikiwiki:Manual:Running MediaWiki on FreeBSD]]
* [[mediawikiwiki:Extension:User Merge and Delete]]


[[Kategorie:Rechentechnik]]
[[Kategorie:Rechentechnik]]
[[Kategorie:Software]]
[[Kategorie:Software]]
[[Kategorie:Jail]]
[[Kategorie:Wiki]]

Aktuelle Version vom 23. Februar 2020, 17:27 Uhr

Verwendungszweck: MediaWiki für wiki.htw.stura-dresden.de

Ports[Bearbeiten]

installierte Ports[Bearbeiten]

  • atk
  • autoconf
  • autoconf-wrapper
  • automake
  • automake-wrapper
  • bdftopcf
  • bigreqsproto
  • bison
  • bitstream-vera
  • ca_root_nss
  • cairo
  • cmake
  • cmake-modules
  • compositeproto
  • curl
  • cvsps
  • damageproto
  • db41
  • dejavu
  • dialog4ports
  • emacs-nox11
  • encodings
  • expat
  • fixesproto
  • font-bh-ttf
  • font-misc-ethiopic
  • font-misc-meltho
  • font-util
  • fontconfig
  • fontsproto
  • freetype2
  • gamin
  • gdbm
  • gdk-pixbuf2
  • gettext
  • gio-fam-backend
  • git
  • glib
  • gmake
  • gnomehier
  • gobject-introspection
  • help2man
  • inputproto
  • jasper
  • jbigkit
  • jpeg
  • kbproto
  • libICE
  • libSM
  • libX11
  • libXau
  • libXcomposite
  • libXcursor
  • libXdamage
  • libXdmcp
  • libXext
  • libXfixes
  • libXfont
  • libXi
  • libXinerama
  • libXrandr
  • libXrender
  • libXt
  • libcheck
  • libevent
  • libevent2
  • libexecinfo
  • libffi
  • libfontenc
  • libgcrypt
  • libgpg-error
  • libiconv
  • libidn
  • libpthread-stubs
  • libsigsegv
  • libtool
  • libxcb
  • libxml2
  • libxslt
  • libyaml
  • lynx
  • m4
  • mkfontdir
  • mkfontscale
  • nano
  • p5-Error
  • p5-ExtUtils-Constant
  • p5-IO-Socket-IP
  • p5-IO-Socket-SSL
  • p5-Locale-gettext
  • p5-Net-SMTP-SSL
  • p5-Net-SSLeay
  • p5-Socket
  • pango
  • pcre
  • perl-threaded
  • pixman
  • pkgconf
  • png
  • portaudit
  • portupgrade
  • py27-wikitools
  • python27
  • python33
  • randrproto
  • renderproto
  • ruby
  • ruby18-bdb
  • ruby19-bdb
  • ruby19-date2
  • tiff
  • tmux
  • unzip
  • vim-lite
  • wget
  • xcb-proto
  • xcb-util
  • xcb-util-renderutil
  • xcmiscproto
  • xextproto
  • xf86bigfontproto
  • xineramaproto
  • xorg-fonts-truetype
  • xorg-macros
  • xproto
  • xtrans
  • zsh

konfigurierte Ports[Bearbeiten]

ca_root_nss[Bearbeiten]

OPTIONS_FILE_SET+=ETCSYMLINK

freetype2[Bearbeiten]

OPTIONS_FILE_UNSET+=CFF_HINTING_ADOBE
OPTIONS_FILE_UNSET+=LCD_FILTERING

libcheck[Bearbeiten]

OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_SET+=EXAMPLES

libxml2[Bearbeiten]

OPTIONS_FILE_UNSET+=MEM_DEBUG
OPTIONS_FILE_SET+=SCHEMA
OPTIONS_FILE_SET+=THREADS
OPTIONS_FILE_UNSET+=THREAD_ALLOC
OPTIONS_FILE_UNSET+=XMLLINT_HIST

libxslt[Bearbeiten]

OPTIONS_FILE_SET+=CRYPTO
OPTIONS_FILE_UNSET+=MEM_DEBUG

png[Bearbeiten]

OPTIONS_FILE_SET+=APNG

python27[Bearbeiten]

OPTIONS_FILE_SET+=EXAMPLES
OPTIONS_FILE_UNSET+=FPECTL
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_SET+=NLS
OPTIONS_FILE_UNSET+=PTH
OPTIONS_FILE_SET+=PYMALLOC
OPTIONS_FILE_UNSET+=SEM
OPTIONS_FILE_SET+=THREADS
OPTIONS_FILE_UNSET+=UCS2
OPTIONS_FILE_SET+=UCS4

ruby18-bdb[Bearbeiten]

OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_UNSET+=EXAMPLES

zusätzliche Konfigurationsdateien[Bearbeiten]

Jail[Bearbeiten]

/etc/rc.conf[Bearbeiten]


apache22_enable="YES"
mysql_enable="YES"

Konfiguration der Programme[Bearbeiten]

apache[Bearbeiten]

httpd.conf[Bearbeiten]


…
LoadModule php5_module        libexec/apache22/libphp5.so

<IfModule php5_module>
   DirectoryIndex index.php index.php5 index.html
   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps
</IfModule>
…
ServerAdmin <admin[at]domain.tld>
…
ServerName wiki.htw.stura-dresden.de:80
…
DocumentRoot "</path/to/mediawiki>"
…
#<Directory "/usr/local/www/apache22/data">
   #
   # Possible values for the Options directive are "None", "All",
   # or any combination of:
   #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
   #
   # Note that "MultiViews" must be named *explicitly* --- "Options All"
   # doesn't give it to you.
   #
   # The Options directive is both complicated and important.  Please see
   # http://httpd.apache.org/docs/2.2/mod/core.html#options
   # for more information.
   #
#    Options Indexes FollowSymLinks

   #
   # AllowOverride controls what directives may be placed in .htaccess files.
   # It can be "All", "None", or any combination of the keywords:
   #   Options FileInfo AuthConfig Limit
   #
#    AllowOverride None

   #
   # Controls who can get stuff from this server.
   #
#    Order allow,deny
#    Allow from all

#</Directory>
…
# Virtual hosts
Include etc/apache22/extra/httpd-vhosts.conf
…
# CustomLog "/var/log/httpd-access.log" combined # comment out Der StuRa speichert nicht!
extra/httpd-vhosts.conf[Bearbeiten]

…
NameVirtualHost 141.56.50.13:80
…
<VirtualHost wiki.htw.stura-dresden.de:80>
   Redirect permanent / http://wiki.stura.htw-dresden.de/
</VirtualHost>

<VirtualHost wiki.stura.htw-dresden.de:80>
   ServerAdmin webmaster@stura.htw-dresden.de
   DocumentRoot "/usr/local/www/sturawiki_1_19_2"
   ServerName wiki.stura.htw-dresden.de
   ServerAlias www.wiki.stura.htw-dresden.de
   <Directory "/usr/local/www/sturawiki_1_19_2">
       Options Indexes FollowSymLinks
       DirectoryIndex index.php index.php5 index.html
       AllowOverride none
       Order allow,deny
       Allow from all
   </Directory>
   ErrorLog "/var/log/wiki-error_log"
#    CustomLog "/var/log/wiki-access_log" common
</VirtualHost>

<VirtualHost wiki.hs-abc.htw.stura-dresden.de:80>
   ServerAdmin webmaster@stura.htw-dresden.de
   DocumentRoot "/usr/local/www/hs-abcwiki_1_19_4"
   ServerName wiki.hs-abc.htw.stura-dresden.de
   ServerAlias www.wiki.hs-abc.htw.stura-dresden.de
   <Directory "/usr/local/www/hs-abcwiki_1_19_4">
       Options Indexes FollowSymLinks
       DirectoryIndex index.php index.php5 index.html
       AllowOverride none
       Order allow,deny
       Allow from all
   </Directory>
   ErrorLog "/var/log/wiki-error_log"
#   CustomLog "/var/log/wiki-access_log" common
</VirtualHost>

<VirtualHost wiki.fzs.stura-dresden.de:80>
   ServerAdmin webmaster@stura.htw-dresden.de
   DocumentRoot "/usr/local/www/fzswiki_1_19_4"
   ServerName wiki.fzs.stura-dresden.de
   ServerAlias www.wiki.fzs.htw.stura-dresden.de
   <Directory "/usr/local/www/fzswiki_1_19_4">
       Options Indexes FollowSymLinks
       DirectoryIndex index.php index.php5 index.html
       AllowOverride none
       Order allow,deny
       Allow from all
   </Directory>
   ErrorLog "/var/log/fzswiki-error_log"
#    CustomLog "/var/log/fzswiki-access_log" common
</VirtualHost>

<VirtualHost fzs-wiki.de:80>
   DocumentRoot "/usr/local/www/fzswiki_1_19_4"
   ServerName wiki.fzs.stura-dresden.de
   ServerAlias www.wiki.fzs.htw.stura-dresden.de
   <Directory "/usr/local/www/fzswiki_1_19_4">
       Options Indexes FollowSymLinks
       DirectoryIndex index.html index.php
       AllowOverride none
       Order allow,deny
       Allow from all
   </Directory>
</VirtualHost>

mediawiki[Bearbeiten]

Wiki[Bearbeiten]

</path/to/mediawiki-stura>/LocalSettings.php[Bearbeiten]

…
$wgLogo             = "$wgStylePath/common/images/stura.jpg";
$wgFavicon          = "$wgStylePath/common/images/stura_ohne_typo.favicon32.jpg";

…
$wgDefaultSkin = 'vector'; 
…

##############################                                                                                                      
## Ausnahmen Details zeigen ##                                                                                                      
##############################                                                                                                      

$wgShowExceptionDetails = false;

###################
## Mail Settings ##
###################

$wgSMTP = array (
   'IDHost' => 'wiki.stura.htw-dresden.de', //this is used to build the Message-ID mail header
   'host'   => 'mail.stura.htw-dresden.de', //this is the outgoing mail server name (SMTP server)
   'port'   => 25, //this is the port used by the SMTP server
   'auth'   => false,  //in my case, authentication is not required by the mail server for outgoing mail
);

################
## Namespaces ##
################

define("NS_STURA", 100);
define("NS_STURA_TALK", 101);
define("NS_INTERN", 102);
define("NS_INTERN_TALK", 103);
define("NS_ADMIN", 104);
define("NS_ADMIN_TALK", 105);
define("NS_PERSON", 106);
define("NS_PERSON_TALK", 107);

$wgExtraNamespaces[NS_STURA] = "StuRa";
$wgExtraNamespaces[NS_STURA_TALK] = "StuRa_Diskussion";
$wgExtraNamespaces[NS_INTERN] = "Intern";
$wgExtraNamespaces[NS_INTERN_TALK] = "Intern_Diskussion";
$wgExtraNamespaces[NS_ADMIN] = "Admin";
$wgExtraNamespaces[NS_ADMIN_TALK] = "Admin_Diskussion";
$wgExtraNamespaces[NS_PERSON] = "Person";
$wgExtraNamespaces[NS_PERSON_TALK] = "Person_Diskussion";

################
## Extensions ##
################

$wgAllowExternalImages = true #Externe Bilder einbinden

require_once "$IP/extensions/ConfirmEdit/QuestyCaptcha.php";
$wgCaptchaClass = 'QuestyCaptcha';
$arr = array (
       'Frage' => 'An answer!',       
);
foreach ( $arr as $key => $value ) {
       $wgCaptchaQuestions[] = array( 'question' => $key, 'answer' => $value );
};
$wgCaptchaTriggers['edit'] = true;
$wgCaptchaTriggers['create'] = true;

require_once( "$IP/extensions/Renameuser/Renameuser.php" );
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
require_once( "$IP/extensions/Lockdown/Lockdown.php" );
require_once( "$IP/extensions/Interwiki/Interwiki.php" );
require_once( "$IP/extensions/ContributionScores/ContributionScores.php" );

#################################
## ContributionScores settings ##
#################################

$wgContribScoreIgnoreBots = true;          // Exclude Bots from the reporting - Can be omitted.
$wgContribScoreIgnoreBlockedUsers = true;  // Exclude Blocked Users from the reporting - Can be omitted.
$wgContribScoresUseRealName = true;        // Use real user names when available - Can be omitted. Only for MediaWiki 1.19 and later.
$wgContribScoreDisableCache = false;       // Set to true to disable cache for parser function and inclusion of table.

//Each array defines a report - 7,50 is "past 7 days" and "LIMIT 50" - Can be omitted.
$wgContribScoreReports = array(
   array(7,50),
   array(30,50),
   array(0,50)
) ;

####################
## costume groups ##
####################

// Implicit group for intern (copy of group user)
$wgGroupPermissions['intern']['move']             = true;
$wgGroupPermissions['intern']['move-subpages']    = true;
$wgGroupPermissions['intern']['move-rootuserpages'] = true; // can move root userpages
//$wgGroupPermissions['intern']['movefile']         = true;       // Disabled for now due to possible bugs and security concerns
$wgGroupPermissions['intern']['read']             = true;
$wgGroupPermissions['intern']['edit']             = true;
$wgGroupPermissions['intern']['createpage']       = true;
$wgGroupPermissions['intern']['createtalk']       = true;
$wgGroupPermissions['intern']['writeapi']         = true;
$wgGroupPermissions['intern']['upload']           = true;
$wgGroupPermissions['intern']['reupload']         = true;
$wgGroupPermissions['intern']['reupload-shared']  = true;
$wgGroupPermissions['intern']['minoredit']        = true;
$wgGroupPermissions['intern']['purge']            = true; // can use ?action=purge without clicking "ok"
$wgGroupPermissions['intern']['sendemail']        = true;
// To grant sysops permissions to edit interwiki data
$wgGroupPermissions['sysop']['interwiki'] = true;

###########################
## Restricted namespaces ##
###########################

$wgNamespacePermissionLockdown[NS_INTERN]['*'] = array('intern');
$wgNamespacePermissionLockdown[NS_INTERN_TALK]['*'] = array('intern');

$wgNamespacePermissionLockdown[NS_PERSON]['*'] = array('intern');
$wgNamespacePermissionLockdown[NS_PERSON_TALK]['*'] = array('intern');

Wiki Extensions[Bearbeiten]
Wiki Extension Asirra[Bearbeiten]

Die Extension:Asirra wird nicht mehr verwendet!

Die Extension:Asirra
  • wurde seit 2014-10 nicht mehr unterstützt;
  • funktionierte Ende 2014 nicht mehr;
  • musst Ende 2014 ersetzt werden;
  • wurde Anfang 2015 durch Tom durch #Wiki Extension QuestyCaptcha ersetzt;
  • diente als CAPTCHA.
Asirra/ConfirmEdit.php
Wiki Extension Lockdown[Bearbeiten]
Installation

wget https://codeload.github.com/wikimedia/mediawiki-extensions-Lockdown/legacy.tar.gz/REL1_19
tar -xzf wikimedia-mediawiki-extensions-Lockdown-84fca94.tar.gz -C /var/www/mediawiki/extensions

Wiki Extension QuestyCaptcha[Bearbeiten]

Die Extension:QuestyCaptcha

HS-ABC Wiki[Bearbeiten]

</path/to/mediawiki-hsabc>/LocalSettings.php[Bearbeiten]
require_once( "$IP/extensions/Asirra/Asirra.php" );
require_once( "$IP/extensions/Renameuser/Renameuser.php" );
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );

###################
## Mail Settings ##
###################

$wgSMTP = array (
   'IDHost' => 'wiki.hs-abc.htw.stura-dresden.de', //this is used to build the Message-ID mail header
   'host'   => 'mail.stura.htw-dresden.de', //this is the outgoing mail server name (SMTP server)
   'port'   => 25, //this is the port used by the SMTP server
   'auth'   => false,  //in my case, authentication is not required by the mail server for outgoing mail
);
</path/to/mediawiki-hsabc>/extensions/Asirra/ConfirmEdit.php[Bearbeiten]

…
$wgGroupPermissions['user'         ]['skipcaptcha'] = true;
$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false;
…
$wgCaptchaTriggers['edit']          = true; // Would check on every edit
$wgCaptchaTriggers['create']        = false; // Check on page creation.
$wgCaptchaTriggers['sendemail']     = true; // Special:Emailuser
…

Siehe auch[Bearbeiten]