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

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
*für wiki
Verwendungszweck: Mediawiki für [http://wiki.htw.stura-dresden.de wiki.htw.stura-dresden.de]
 
== Ports ==
== Ports ==
=== installierte Ports ===
* [[#apache |apache]]
* [[#apr-ipv6-devrandom-db42 |apr-ipv6-devrandom-db42]]
* autoconf
* autoconf-wrapper
* automake
* automake-wrapper
* [[#ca_root_nss |ca_root_nss]]
* cmake
* cmake-modules
* [[#curl |curl]]
* db41
* db42
* expat
* freetype2
* [[#gd |gd]]
* gettext
* gmake
* [[#help2man |help2man]]
* jpeg
* [[#libiconv |libiconv]]
* libsigsegv
* libtool
* libxml2
* [[Server/Jails#m4 |m4]]
* mysql-client
* [[#mysql-server |mysql-server]]
* p5-Locale-gettext
* [[Server/Jails#pcre |pcre]]
* [[Server/Jails#perl |perl-threaded]]
* [[#php52 |php52]]
* php52-curl
* php52-ctype
* php52-dom
* [[#php52-extensions |php52-extensions]]
* php52-filter
* [[#php52-gd |php52-gd]]
* php52-hash
* php52-iconv
* php52-json
* php52-mysql
* [[#php52-pcre |php52-pcre]]
* php52-pdo
* php52-pdo_sqlite
* php52-posix
* php52-session
* php52-simplexml
* php52-spl
* [[#php52-sqlite |php52-sqlite]]
* php52-tokenizer
* php52-xml
* php52-xmlreader
* php52-xmlwriter
* pkgconf
* [[#png |png]]
* portaudit
* [[Server/Jails#portupgrade |portupgrade]]
* [[#python27 |python27]]
* [[Server/Jails#ruby |ruby]]
* ruby18-bdb
* t1lib
* [[Server/Jails#zsh |zsh]]
=== konfigurierte Ports ===
==== apache ====
<code>
OPTIONS_FILE_SET+=THREADS
OPTIONS_FILE_SET+=MYSQL
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=SQLITE
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_UNSET+=BDB
OPTIONS_FILE_SET+=AUTH_BASIC
OPTIONS_FILE_SET+=AUTH_DIGEST
OPTIONS_FILE_SET+=AUTHN_FILE
OPTIONS_FILE_UNSET+=AUTHN_DBD
OPTIONS_FILE_SET+=AUTHN_DBM
OPTIONS_FILE_SET+=AUTHN_ANON
OPTIONS_FILE_SET+=AUTHN_DEFAULT
OPTIONS_FILE_SET+=AUTHN_ALIAS
OPTIONS_FILE_SET+=AUTHZ_HOST
OPTIONS_FILE_SET+=AUTHZ_GROUPFILE
OPTIONS_FILE_SET+=AUTHZ_USER
OPTIONS_FILE_SET+=AUTHZ_DBM
OPTIONS_FILE_SET+=AUTHZ_OWNER
OPTIONS_FILE_SET+=AUTHZ_DEFAULT
OPTIONS_FILE_SET+=CACHE
OPTIONS_FILE_UNSET+=DISK_CACHE
OPTIONS_FILE_UNSET+=FILE_CACHE
OPTIONS_FILE_UNSET+=MEM_CACHE
OPTIONS_FILE_UNSET+=DAV
OPTIONS_FILE_UNSET+=DAV_FS
OPTIONS_FILE_UNSET+=BUCKETEER
OPTIONS_FILE_UNSET+=CASE_FILTER
OPTIONS_FILE_UNSET+=CASE_FILTER_IN
OPTIONS_FILE_UNSET+=EXT_FILTER
OPTIONS_FILE_UNSET+=LOG_FORENSIC
OPTIONS_FILE_UNSET+=OPTIONAL_HOOK_EXPORT
OPTIONS_FILE_UNSET+=OPTIONAL_HOOK_IMPORT
OPTIONS_FILE_UNSET+=OPTIONAL_FN_IMPORT
OPTIONS_FILE_UNSET+=OPTIONAL_FN_EXPORT
OPTIONS_FILE_UNSET+=LDAP
OPTIONS_FILE_UNSET+=AUTHNZ_LDAP
OPTIONS_FILE_UNSET+=ACTIONS
OPTIONS_FILE_SET+=ALIAS
OPTIONS_FILE_SET+=ASIS
OPTIONS_FILE_SET+=AUTOINDEX
OPTIONS_FILE_SET+=CERN_META
OPTIONS_FILE_UNSET+=CGI
OPTIONS_FILE_SET+=CHARSET_LITE
OPTIONS_FILE_UNSET+=DBD
OPTIONS_FILE_SET+=DEFLATE
OPTIONS_FILE_SET+=DIR
OPTIONS_FILE_UNSET+=DUMPIO
OPTIONS_FILE_SET+=ENV
OPTIONS_FILE_SET+=EXPIRES
OPTIONS_FILE_SET+=HEADERS
OPTIONS_FILE_SET+=IMAGEMAP
OPTIONS_FILE_SET+=INCLUDE
OPTIONS_FILE_SET+=INFO
OPTIONS_FILE_SET+=LOG_CONFIG
OPTIONS_FILE_SET+=LOGIO
OPTIONS_FILE_SET+=MIME
OPTIONS_FILE_SET+=MIME_MAGIC
OPTIONS_FILE_SET+=NEGOTIATION
OPTIONS_FILE_SET+=REWRITE
OPTIONS_FILE_SET+=SETENVIF
OPTIONS_FILE_SET+=SPELING
OPTIONS_FILE_SET+=STATUS
OPTIONS_FILE_SET+=UNIQUE_ID
OPTIONS_FILE_UNSET+=USERDIR
OPTIONS_FILE_UNSET+=USERTRACK
OPTIONS_FILE_UNSET+=VHOST_ALIAS
OPTIONS_FILE_SET+=FILTER
OPTIONS_FILE_UNSET+=SUBSTITUTE
OPTIONS_FILE_SET+=VERSION
OPTIONS_FILE_UNSET+=PROXY
OPTIONS_FILE_UNSET+=PROXY_CONNECT
OPTIONS_FILE_UNSET+=PROXY_FTP
OPTIONS_FILE_UNSET+=PROXY_HTTP
OPTIONS_FILE_UNSET+=PROXY_AJP
OPTIONS_FILE_UNSET+=PROXY_BALANCER
OPTIONS_FILE_UNSET+=PROXY_SCGI
OPTIONS_FILE_SET+=SSL
OPTIONS_FILE_UNSET+=SUEXEC
OPTIONS_FILE_UNSET+=SUEXEC_RSRCLIMIT
OPTIONS_FILE_SET+=REQTIMEOUT
OPTIONS_FILE_UNSET+=CGID
</code>
==== apr-ipv6-devrandom-db42 ====


=== Apache22 ===
  <code>
  <code>
  [X] THREADS               Enable threads support in APR
  OPTIONS_FILE_SET+=THREADS
  [X] MYSQL                Enable MySQL support for apr-dbd
  OPTIONS_FILE_SET+=IPV6
[ ] PGSQL                Enable PostgreSQL support for apr-dbd
  OPTIONS_FILE_SET+=DEVRANDOM
  [ ] SQLITE                Enable SQLite support for apr-dbd
  OPTIONS_FILE_SET+=BDB
  [X] IPV6                  Enable IPv6 support
  OPTIONS_FILE_UNSET+=GDBM
[ ] BDB                   Enable BerkeleyDB dbm
  OPTIONS_FILE_UNSET+=LDAP
[X] AUTH_BASIC            Enable mod_auth_basic
  OPTIONS_FILE_UNSET+=MYSQL
[X] AUTH_DIGEST          Enable mod_auth_digest
  OPTIONS_FILE_UNSET+=NDBM
[X] AUTHN_FILE            Enable mod_authn_file
  OPTIONS_FILE_UNSET+=PGSQL
[ ] AUTHN_DBD            Enable mod_authn_dbd
  OPTIONS_FILE_UNSET+=SQLITE
[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>
  </code>


=== apr-ipv6-devrandom-gdbm-db42 ===
==== ca_root_nss ====


  <code>
  <code>
  [X] THREADS    Enable Threads in apr
  OPTIONS_FILE_SET+=ETCSYMLINK
[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>
  </code>


=== gdbm ===
==== curl ====


  <code>
  <code>
  [ ] COMPAT dbm/ndbm compatibility
  OPTIONS_FILE_UNSET+=CARES
  OPTIONS_FILE_UNSET+=CURL_DEBUG
OPTIONS_FILE_UNSET+=GNUTLS
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_UNSET+=KERBEROS4
OPTIONS_FILE_UNSET+=LDAP
OPTIONS_FILE_UNSET+=LDAPS
OPTIONS_FILE_UNSET+=LIBIDN
OPTIONS_FILE_UNSET+=LIBSSH2
OPTIONS_FILE_UNSET+=NTLM
OPTIONS_FILE_SET+=OPENSSL
OPTIONS_FILE_SET+=CA_BUNDLE
OPTIONS_FILE_SET+=PROXY
OPTIONS_FILE_UNSET+=RTMP
OPTIONS_FILE_UNSET+=TRACKMEMORY
  </code>
  </code>


=== libxslt ===
==== gd ====


  <code>
  <code>
  [ ] MEM_DEBUG Enable memory debugging
  OPTIONS_FILE_UNSET+=FONTCONFIG
  [X] CRYPTO    Enable crypto support for exslt
  OPTIONS_FILE_SET+=ICONV
  OPTIONS_FILE_UNSET+=XPM
  </code>
  </code>


=== MediaWiki ===
 
 
==== [[Server/Jails#libiconv |libiconv]] ====
 
==== [[Server/Jails#m4 |m4]] ====
==== mysql-server ====


  <code>
  <code>
  [ ] PGSQL    Use PostgreSQL (instead of MySQL)
  make install clean WITH_CHARSET=utf8 WITH_COLLATION=utf8_bin
[ ] 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>
  </code>


=== MySQL5.5.-client ===
==== [[Server/Jails#pcre |pcre]] ====
==== [[Server/Jails#perl |perl-threaded]] ====
==== php52 ====


  <code>
  <code>
  [X] OPENSSL Enable SSL support
  OPTIONS_FILE_SET+=CLI
  [ ] FASTMTX Replace mutexes with spinlocks
OPTIONS_FILE_UNSET+=CGI
OPTIONS_FILE_SET+=APACHE
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_UNSET+=SUHOSIN
OPTIONS_FILE_UNSET+=MULTIBYTE
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_UNSET+=MAILHEAD
  OPTIONS_FILE_UNSET+=REDIRECT
  OPTIONS_FILE_UNSET+=DISCARD
OPTIONS_FILE_UNSET+=FASTCGI
OPTIONS_FILE_UNSET+=FPM
OPTIONS_FILE_UNSET+=PATHINFO
  OPTIONS_FILE_UNSET+=LINKTHR
  </code>
  </code>


=== MySQL5.5.-server ===
==== php52-extensions ====


  <code>
  <code>
  [X] OPENSSL  Enable SSL support
  OPTIONS_FILE_UNSET+=BCMATH
  [ ] FASTMTX Replace mutexes with spinlocks
OPTIONS_FILE_UNSET+=BZ2
OPTIONS_FILE_UNSET+=CALENDAR
OPTIONS_FILE_SET+=CTYPE
OPTIONS_FILE_UNSET+=CURL
OPTIONS_FILE_UNSET+=DBA
OPTIONS_FILE_UNSET+=DBASE
OPTIONS_FILE_SET+=DOM
OPTIONS_FILE_UNSET+=EXIF
OPTIONS_FILE_UNSET+=FILEINFO
OPTIONS_FILE_SET+=FILTER
OPTIONS_FILE_UNSET+=FTP
OPTIONS_FILE_SET+=GD
OPTIONS_FILE_UNSET+=GETTEXT
OPTIONS_FILE_UNSET+=GMP
OPTIONS_FILE_SET+=HASH
OPTIONS_FILE_SET+=ICONV
OPTIONS_FILE_UNSET+=IMAP
OPTIONS_FILE_UNSET+=INTERBASE
OPTIONS_FILE_SET+=JSON
OPTIONS_FILE_UNSET+=LDAP
OPTIONS_FILE_UNSET+=MBSTRING
OPTIONS_FILE_UNSET+=MCRYPT
OPTIONS_FILE_UNSET+=MHASH
OPTIONS_FILE_UNSET+=MING
OPTIONS_FILE_UNSET+=MSSQL
OPTIONS_FILE_SET+=MYSQL
OPTIONS_FILE_SET+=MYSQLI
OPTIONS_FILE_UNSET+=NCURSES
OPTIONS_FILE_UNSET+=ODBC
OPTIONS_FILE_UNSET+=OPENSSL
OPTIONS_FILE_UNSET+=PCNTL
OPTIONS_FILE_SET+=PCRE
OPTIONS_FILE_UNSET+=PDF
OPTIONS_FILE_SET+=PDO
OPTIONS_FILE_UNSET+=PDO_SQLITE
OPTIONS_FILE_SET+=PDO_MYSQL
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_SET+=POSIX
  OPTIONS_FILE_UNSET+=PSPELL
  OPTIONS_FILE_UNSET+=READLINE
OPTIONS_FILE_UNSET+=RECODE
OPTIONS_FILE_SET+=SESSION
OPTIONS_FILE_UNSET+=SHMOP
OPTIONS_FILE_SET+=SIMPLEXML
OPTIONS_FILE_UNSET+=SNMP
OPTIONS_FILE_UNSET+=SOAP
OPTIONS_FILE_UNSET+=SOCKETS
OPTIONS_FILE_SET+=SPL
OPTIONS_FILE_UNSET+=SQLITE
OPTIONS_FILE_UNSET+=SYBASE_CT
OPTIONS_FILE_UNSET+=SYSVMSG
OPTIONS_FILE_UNSET+=SYSVSEM
OPTIONS_FILE_UNSET+=SYSVSHM
OPTIONS_FILE_UNSET+=TIDY
OPTIONS_FILE_SET+=TOKENIZER
OPTIONS_FILE_UNSET+=WDDX
OPTIONS_FILE_SET+=XML
OPTIONS_FILE_SET+=XMLREADER
OPTIONS_FILE_UNSET+=XMLRPC
OPTIONS_FILE_SET+=XMLWRITER
OPTIONS_FILE_UNSET+=XSL
OPTIONS_FILE_UNSET+=ZIP
  OPTIONS_FILE_UNSET+=ZLIB
  </code>
  </code>


=== pecl-APC ===
==== php52-gd ====


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


=== PHP5.3 ===
==== php52-pcre ====


  <code>
  <code>
  [X] CLI        Build CLI version
  OPTIONS_FILE_SET+=BUNDLED_PCRE
[X] CGI        Build CGI version
[ ] FPM        Build FPM version (experimental)
[X] APACHE    Build Apache module
[ ] AP2FILTER  Use Apache 2.x filter interface (experimental)
[ ] DEBUG      Enable debug
[X] SUHOSIN    Enable Suhosin protection system
[ ] MULTIBYTE  Enable zend multibyte support
[X] IPV6      Enable ipv6 support
[ ] MAILHEAD  Enable mail header patch
[ ] LINKTHR    Link thread lib (for threaded extensions)
  </code>
  </code>


=== php5-mbstring ===
==== php52-sqlite ====


  <code>
  <code>
  [X] REGEX  Enable multibyte regex support
  OPTIONS_FILE_SET+=UTF8
  </code>
  </code>


=== php5-mysql ===
==== png ====


  <code>
  <code>
  [ ] MYSQLND  Use MySQL Native Driver
  OPTIONS_FILE_SET+=APNG
  </code>
  </code>


=== python27 ===
==== [[Server/Jails#portupgrade |portupgrade]] ====
==== python27 ====


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


== Konfiguration Programme ==
==== [[Server/Jails#ruby |ruby]] ====
==== [[Server/Jails#zsh |zsh]] ====


=== Apache22 ===
=== zusätzliche Konfigurationsdateien ===
==== Jail ====
===== /etc/rc.conf =====
 
<code>
apache22_enable="YES"
mysql_enable="YES"
</code>


*httpd.conf
==== apache ====
===== httpd.conf =====


  <code>
  <code>
  ...
 
Listen <IP>:<port>
...
  LoadModule php5_module        libexec/apache22/libphp5.so
  LoadModule php5_module        libexec/apache22/libphp5.so
  ...
   
  <IfModule php5_module>
  <IfModule php5_module>
  DirectoryIndex index.php index.html
    DirectoryIndex index.php index.php5 index.html
  AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php
  AddType application/x-httpd-php-source .phps
    AddType application/x-httpd-php-source .phps
  <IfModule>
  </IfModule>
  ...
 
  <Directory "/path/to/mediawiki">
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>
<Directory "</path/to/mediawiki>">
     Options Indexes FollowSymLinks
     Options Indexes FollowSymLinks
     DirectoryIndex index.php index.php5 index.html
     DirectoryIndex index.php index.php5 index.html
     AllowOverride None
     AllowOverride none
     Order allow,deny
     Order allow,deny
     Allow from all
     Allow from all
  </Directory>
  </Directory>
  ...
 
Servername <jailname>:<port>
  # CustomLog "/var/log/httpd-access.log" combined # comment out [http://www.wirspeichernnicht.de/ Der StuRa speichert '''nicht'''!]
<!-- ...
 
  Include etc/apache22/extra/httpd-vhosts.conf --->
...
ServerTokens ProductOnly
ServerSignature Off
  ...
  </code>
  </code>


*extra/httpd-vhost.conf
==== mediawiki ====
===== </path/to/mediawiki>/LocalSettings.php =====


  <code>
  <code>
  ...
 
  NameVirtualHost <ip>:80
  $wgLogo            = "$wgStylePath/common/images/stura.jpg";
  ...
  $wgFavicon          = "$wgStylePath/common/images/stura_ohne_typo.favicon32.jpg";
  <VirtualHost <ip>:80>
 
    ServerAdmin webmaster@<domain>
################
    DocumentRoot "<directoryname>"         
## Extensions ##
    ServerName <domainname>
################
    ErrorLog "/var/log/<name>-error_log"
require_once( "$IP/extensions/Asirra/Asirra.php");
    CustomLog "/var/log/<name>-access_log" common
<!-- Katzenbilder wie SÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜSSSSSSS :P --->
</VirtualHost>
  </code>
  </code>


==== Probleme ====
===== </path/to/mediawiki>/extensions/Asirra/ConfirmEdit.php =====
 
* 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.
* 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 ===
 
*für mehrere Mediawikis auf einen Server


  <code>
  <code>
  cd /usr/local/www/mediawiki
 
  mkdir orginal
  $wgGroupPermissions['user'        ]['skipcaptcha'] = true;
  chown www orginal
  $wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true;
  mv * orginal
 
  mkdir <ein neues verzeichniss für jedes wiki>
  $wgCaptchaTriggers['edit']          = true; // Would check on every edit
  chown www <wikiverzeichniss>
  $wgCaptchaTriggers['create']        = true; // 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
rm *config
mkdir config
  mkdir mw-config
  </code>
  </code>


== Siehe auch ==
== Wiki ==
 
* [https://www.mediawiki.org/wiki/Manual:Upgrading_MediaWiki Upgrade a Mediawiki]
[http://www.steverumberg.com/wiki/index.php?title=WikiHelp_-_Method_Two multiple Mediawiki]
* [https://www.mediawiki.org/wiki/Extension:User_Merge_and_Delete User löschen]
 
* [https://www.mediawiki.org/wiki/Extension:Asirra Captcha]
[[Server/Hauptsystem]]


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

Version vom 9. Oktober 2012, 20:26 Uhr

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

Ports

installierte Ports

konfigurierte Ports

apache


OPTIONS_FILE_SET+=THREADS
OPTIONS_FILE_SET+=MYSQL
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=SQLITE
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_UNSET+=BDB
OPTIONS_FILE_SET+=AUTH_BASIC
OPTIONS_FILE_SET+=AUTH_DIGEST
OPTIONS_FILE_SET+=AUTHN_FILE
OPTIONS_FILE_UNSET+=AUTHN_DBD
OPTIONS_FILE_SET+=AUTHN_DBM
OPTIONS_FILE_SET+=AUTHN_ANON
OPTIONS_FILE_SET+=AUTHN_DEFAULT
OPTIONS_FILE_SET+=AUTHN_ALIAS
OPTIONS_FILE_SET+=AUTHZ_HOST
OPTIONS_FILE_SET+=AUTHZ_GROUPFILE
OPTIONS_FILE_SET+=AUTHZ_USER
OPTIONS_FILE_SET+=AUTHZ_DBM
OPTIONS_FILE_SET+=AUTHZ_OWNER
OPTIONS_FILE_SET+=AUTHZ_DEFAULT
OPTIONS_FILE_SET+=CACHE
OPTIONS_FILE_UNSET+=DISK_CACHE
OPTIONS_FILE_UNSET+=FILE_CACHE
OPTIONS_FILE_UNSET+=MEM_CACHE
OPTIONS_FILE_UNSET+=DAV
OPTIONS_FILE_UNSET+=DAV_FS
OPTIONS_FILE_UNSET+=BUCKETEER
OPTIONS_FILE_UNSET+=CASE_FILTER
OPTIONS_FILE_UNSET+=CASE_FILTER_IN
OPTIONS_FILE_UNSET+=EXT_FILTER
OPTIONS_FILE_UNSET+=LOG_FORENSIC
OPTIONS_FILE_UNSET+=OPTIONAL_HOOK_EXPORT
OPTIONS_FILE_UNSET+=OPTIONAL_HOOK_IMPORT
OPTIONS_FILE_UNSET+=OPTIONAL_FN_IMPORT
OPTIONS_FILE_UNSET+=OPTIONAL_FN_EXPORT
OPTIONS_FILE_UNSET+=LDAP
OPTIONS_FILE_UNSET+=AUTHNZ_LDAP
OPTIONS_FILE_UNSET+=ACTIONS
OPTIONS_FILE_SET+=ALIAS
OPTIONS_FILE_SET+=ASIS
OPTIONS_FILE_SET+=AUTOINDEX
OPTIONS_FILE_SET+=CERN_META
OPTIONS_FILE_UNSET+=CGI
OPTIONS_FILE_SET+=CHARSET_LITE
OPTIONS_FILE_UNSET+=DBD
OPTIONS_FILE_SET+=DEFLATE
OPTIONS_FILE_SET+=DIR
OPTIONS_FILE_UNSET+=DUMPIO
OPTIONS_FILE_SET+=ENV
OPTIONS_FILE_SET+=EXPIRES
OPTIONS_FILE_SET+=HEADERS
OPTIONS_FILE_SET+=IMAGEMAP
OPTIONS_FILE_SET+=INCLUDE
OPTIONS_FILE_SET+=INFO
OPTIONS_FILE_SET+=LOG_CONFIG
OPTIONS_FILE_SET+=LOGIO
OPTIONS_FILE_SET+=MIME
OPTIONS_FILE_SET+=MIME_MAGIC
OPTIONS_FILE_SET+=NEGOTIATION
OPTIONS_FILE_SET+=REWRITE
OPTIONS_FILE_SET+=SETENVIF
OPTIONS_FILE_SET+=SPELING
OPTIONS_FILE_SET+=STATUS
OPTIONS_FILE_SET+=UNIQUE_ID
OPTIONS_FILE_UNSET+=USERDIR
OPTIONS_FILE_UNSET+=USERTRACK
OPTIONS_FILE_UNSET+=VHOST_ALIAS
OPTIONS_FILE_SET+=FILTER
OPTIONS_FILE_UNSET+=SUBSTITUTE
OPTIONS_FILE_SET+=VERSION
OPTIONS_FILE_UNSET+=PROXY
OPTIONS_FILE_UNSET+=PROXY_CONNECT
OPTIONS_FILE_UNSET+=PROXY_FTP
OPTIONS_FILE_UNSET+=PROXY_HTTP
OPTIONS_FILE_UNSET+=PROXY_AJP
OPTIONS_FILE_UNSET+=PROXY_BALANCER
OPTIONS_FILE_UNSET+=PROXY_SCGI
OPTIONS_FILE_SET+=SSL
OPTIONS_FILE_UNSET+=SUEXEC
OPTIONS_FILE_UNSET+=SUEXEC_RSRCLIMIT
OPTIONS_FILE_SET+=REQTIMEOUT
OPTIONS_FILE_UNSET+=CGID

apr-ipv6-devrandom-db42


OPTIONS_FILE_SET+=THREADS
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_SET+=DEVRANDOM
OPTIONS_FILE_SET+=BDB
OPTIONS_FILE_UNSET+=GDBM
OPTIONS_FILE_UNSET+=LDAP
OPTIONS_FILE_UNSET+=MYSQL
OPTIONS_FILE_UNSET+=NDBM
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=SQLITE

ca_root_nss


OPTIONS_FILE_SET+=ETCSYMLINK

curl


OPTIONS_FILE_UNSET+=CARES
OPTIONS_FILE_UNSET+=CURL_DEBUG
OPTIONS_FILE_UNSET+=GNUTLS
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_UNSET+=KERBEROS4
OPTIONS_FILE_UNSET+=LDAP
OPTIONS_FILE_UNSET+=LDAPS
OPTIONS_FILE_UNSET+=LIBIDN
OPTIONS_FILE_UNSET+=LIBSSH2
OPTIONS_FILE_UNSET+=NTLM
OPTIONS_FILE_SET+=OPENSSL
OPTIONS_FILE_SET+=CA_BUNDLE
OPTIONS_FILE_SET+=PROXY
OPTIONS_FILE_UNSET+=RTMP
OPTIONS_FILE_UNSET+=TRACKMEMORY

gd


OPTIONS_FILE_UNSET+=FONTCONFIG
OPTIONS_FILE_SET+=ICONV
OPTIONS_FILE_UNSET+=XPM


libiconv

m4

mysql-server


make install clean WITH_CHARSET=utf8 WITH_COLLATION=utf8_bin

pcre

perl-threaded

php52


OPTIONS_FILE_SET+=CLI
OPTIONS_FILE_UNSET+=CGI
OPTIONS_FILE_SET+=APACHE
OPTIONS_FILE_UNSET+=DEBUG
OPTIONS_FILE_UNSET+=SUHOSIN
OPTIONS_FILE_UNSET+=MULTIBYTE
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_UNSET+=MAILHEAD
OPTIONS_FILE_UNSET+=REDIRECT
OPTIONS_FILE_UNSET+=DISCARD
OPTIONS_FILE_UNSET+=FASTCGI
OPTIONS_FILE_UNSET+=FPM
OPTIONS_FILE_UNSET+=PATHINFO
OPTIONS_FILE_UNSET+=LINKTHR

php52-extensions


OPTIONS_FILE_UNSET+=BCMATH
OPTIONS_FILE_UNSET+=BZ2
OPTIONS_FILE_UNSET+=CALENDAR
OPTIONS_FILE_SET+=CTYPE
OPTIONS_FILE_UNSET+=CURL
OPTIONS_FILE_UNSET+=DBA
OPTIONS_FILE_UNSET+=DBASE
OPTIONS_FILE_SET+=DOM
OPTIONS_FILE_UNSET+=EXIF
OPTIONS_FILE_UNSET+=FILEINFO
OPTIONS_FILE_SET+=FILTER
OPTIONS_FILE_UNSET+=FTP
OPTIONS_FILE_SET+=GD
OPTIONS_FILE_UNSET+=GETTEXT
OPTIONS_FILE_UNSET+=GMP
OPTIONS_FILE_SET+=HASH
OPTIONS_FILE_SET+=ICONV
OPTIONS_FILE_UNSET+=IMAP
OPTIONS_FILE_UNSET+=INTERBASE
OPTIONS_FILE_SET+=JSON
OPTIONS_FILE_UNSET+=LDAP
OPTIONS_FILE_UNSET+=MBSTRING
OPTIONS_FILE_UNSET+=MCRYPT
OPTIONS_FILE_UNSET+=MHASH
OPTIONS_FILE_UNSET+=MING
OPTIONS_FILE_UNSET+=MSSQL
OPTIONS_FILE_SET+=MYSQL
OPTIONS_FILE_SET+=MYSQLI
OPTIONS_FILE_UNSET+=NCURSES
OPTIONS_FILE_UNSET+=ODBC
OPTIONS_FILE_UNSET+=OPENSSL
OPTIONS_FILE_UNSET+=PCNTL
OPTIONS_FILE_SET+=PCRE
OPTIONS_FILE_UNSET+=PDF
OPTIONS_FILE_SET+=PDO
OPTIONS_FILE_UNSET+=PDO_SQLITE
OPTIONS_FILE_SET+=PDO_MYSQL
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_SET+=POSIX
OPTIONS_FILE_UNSET+=PSPELL
OPTIONS_FILE_UNSET+=READLINE
OPTIONS_FILE_UNSET+=RECODE
OPTIONS_FILE_SET+=SESSION
OPTIONS_FILE_UNSET+=SHMOP
OPTIONS_FILE_SET+=SIMPLEXML
OPTIONS_FILE_UNSET+=SNMP
OPTIONS_FILE_UNSET+=SOAP
OPTIONS_FILE_UNSET+=SOCKETS
OPTIONS_FILE_SET+=SPL
OPTIONS_FILE_UNSET+=SQLITE
OPTIONS_FILE_UNSET+=SYBASE_CT
OPTIONS_FILE_UNSET+=SYSVMSG
OPTIONS_FILE_UNSET+=SYSVSEM
OPTIONS_FILE_UNSET+=SYSVSHM
OPTIONS_FILE_UNSET+=TIDY
OPTIONS_FILE_SET+=TOKENIZER
OPTIONS_FILE_UNSET+=WDDX
OPTIONS_FILE_SET+=XML
OPTIONS_FILE_SET+=XMLREADER
OPTIONS_FILE_UNSET+=XMLRPC
OPTIONS_FILE_SET+=XMLWRITER
OPTIONS_FILE_UNSET+=XSL
OPTIONS_FILE_UNSET+=ZIP
OPTIONS_FILE_UNSET+=ZLIB

php52-gd


OPTIONS_FILE_SET+=T1LIB
OPTIONS_FILE_SET+=TRUETYPE
OPTIONS_FILE_UNSET+=JIS

php52-pcre


OPTIONS_FILE_SET+=BUNDLED_PCRE

php52-sqlite


OPTIONS_FILE_SET+=UTF8

png


OPTIONS_FILE_SET+=APNG

portupgrade

python27


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

ruby

zsh

zusätzliche Konfigurationsdateien

Jail

/etc/rc.conf

apache22_enable="YES"
mysql_enable="YES"

apache

httpd.conf

…
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>

<Directory "</path/to/mediawiki>">
   Options Indexes FollowSymLinks
   DirectoryIndex index.php index.php5 index.html
   AllowOverride none
   Order allow,deny
   Allow from all
</Directory>
…
# CustomLog "/var/log/httpd-access.log" combined # comment out Der StuRa speichert nicht!

mediawiki

</path/to/mediawiki>/LocalSettings.php

…
$wgLogo             = "$wgStylePath/common/images/stura.jpg";
$wgFavicon          = "$wgStylePath/common/images/stura_ohne_typo.favicon32.jpg";
…
################
## Extensions ##
################
require_once( "$IP/extensions/Asirra/Asirra.php");

</path/to/mediawiki>/extensions/Asirra/ConfirmEdit.php

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

Wiki