Server/MediaWiki: Unterschied zwischen den Versionen

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
Zeile 18: Zeile 18:


: <code>pkg</code>
: <code>pkg</code>
: <code>pkg install mediawiki124</code>
<!--
<pre>
Message for mediawiki124-1.24.0:
**** NOTE ****
Remember to check
%25%25MEDIAWIKIDIR%25%25/INSTALL
and
%25%25MEDIAWIKIDIR%25%25/UPGRADE
for details
</pre>
-->


: <code>pkg install mysql55-server</code>
: <code>pkg install mysql55-server</code>
Zeile 82: Zeile 99:
: <code>echo 'SetHandler application/x-httpd-php-source' >> /usr/local/etc/apache24/httpd.conf</code>
: <code>echo 'SetHandler application/x-httpd-php-source' >> /usr/local/etc/apache24/httpd.conf</code>
: <code>echo '</FilesMatch>' >> /usr/local/etc/apache24/httpd.conf</code>
: <code>echo '</FilesMatch>' >> /usr/local/etc/apache24/httpd.conf</code>
: <code>pkg install mediawiki123</code>
<!--
<pre>
**** NOTE ****
Remember to check
%25%25MEDIAWIKIDIR%25%25/INSTALL
and
%25%25MEDIAWIKIDIR%25%25/UPGRADE
for details
</pre>
-->


vielleicht auch (notwendig?)
vielleicht auch (notwendig?)

Version vom 18. Dezember 2014, 03:29 Uhr

Achtung

Dieser Artikel ist ein exemplarischer Artikel.

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

Installation

Randbedingungen

OS
FreeBSD 10.1
Paketverwaltung
freebsd-man:pkgng (statt freebsd-man:make)

tatsächliche Installation

pkg
pkg install mediawiki124
pkg install mysql55-server
/usr/local/etc/rc.d/mysql-server onestart
/usr/local/bin/mysql_upgrade
echo 'mysql_enable="yes"' >> /etc/rc.conf
pkg install apache24
echo 'apache24_enable="yes"' >> /etc/rc.conf
pkg install mod_php5
echo '<FilesMatch "\.php$">' >> /usr/local/etc/apache24/httpd.conf
echo 'SetHandler application/x-httpd-php' >> /usr/local/etc/apache24/httpd.conf
echo '</FilesMatch>' >> /usr/local/etc/apache24/httpd.conf
echo '<FilesMatch "\.phps$">' >> /usr/local/etc/apache24/httpd.conf
echo 'SetHandler application/x-httpd-php-source' >> /usr/local/etc/apache24/httpd.conf
echo '</FilesMatch>' >> /usr/local/etc/apache24/httpd.conf

vielleicht auch (notwendig?)

pkg install php5-xmlreader
pkg install php5-tidy

Erzeugen eines Accounts für MySQL und das Setzen des dazugehörigen Passwortes

/usr/local/bin/mysqladmin --user=name-of-the-user-in-mysql password "password-of-the-user-in-mysql"

Anpassen der Datei für die Konfiguration von Apache

$EDITOR /usr/local/etc/apache24/httpd.conf
#DocumentRoot "/usr/local/www/apache24/data"
DocumentRoot "/usr/local/www/mediawiki"
echo '<Directory "/usr/local/www/mediawiki">' >> /usr/local/etc/apache24/httpd.conf
echo 'Options Indexes FollowSymLinks' >> /usr/local/etc/apache24/httpd.conf
echo 'DirectoryIndex index.php index.html' >> /usr/local/etc/apache24/httpd.conf
echo 'AllowOverride None' >> /usr/local/etc/apache24/httpd.conf
echo 'Order allow,deny' >> /usr/local/etc/apache24/httpd.conf
echo 'Allow from all' >> /usr/local/etc/apache24/httpd.conf
echo '</Directory>' >> /usr/local/etc/apache24/httpd.conf
$EDITOR /usr/local/etc/apache24/httpd.conf
#<Directory />                                                               
#    AllowOverride none                                                      
#    Require all denied
#</Directory>
/usr/local/sbin/apachectl restart
ee /usr/local/www/mediawiki/LocalSettings.php

tatsächliche Installation Siehe auch

ergänzende Installation

VisualEditor

pkg install npm