MediaWiki (Linux)

Aus Tutorials
Zur Navigation springen Zur Suche springen

Installation

Download

cd ~/Downloads
wget https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz
tar -xzvf mediawiki-*.tar.gz
sudo mv mediawiki-1.26.2 /var/www/wiki/
sudo chown -R www-data:www-data /var/www/wiki/

MySQL-Datenbank anlegen

mysql -u root -p
mysql> create database if not exists <database name>;
mysql> create user 'wikiuser'@'%' identified by '<password>';
mysql> grant all on <database name>.* to 'wikiuser'@'%';
mysql> create user 'wikiuser'@'localhost' identified by '<password>';
mysql> grant all on <database name>.* to 'wikiuser'@'localhost';
mysql> flush privileges;
mysql> exit

Apache

lokal

cd /etc/apache2/conf-available/
sudo vi wiki.conf
Alias /wiki "/var/www/wiki/"
<Directory "/var/www/wiki">
    Options +FollowSymLinks
    AllowOverride All

    <IfModule mod_dav.c>
      Dav off
    </IfModule>

    SetEnv HOME /var/www/wiki
    SetEnv HTTP_HOME /var/www/wiki
</Directory>
sudo a2enconf wiki
sudo service apache2 reload

extern

sudo vi /etc/apache2/sites-available/tutorials.conf
<VirtualHost *:80>
  ServerName tutorials.kirner.or.at
  ServerAlias tutorials.kirner.or.at
  Redirect / https://tutorials.kirner.or.at
</VirtualHost>                                                                                                                                                                                            
sudo vi /etc/apache2/sites-available/tutorials-ssl.conf
<VirtualHost *:443>
  ServerName tutorials.kirner.or.at
  Alias /tutorials /mnt/synology/web1/www/tutorials

  SSLEngine on
  #SSLCertificateFile /etc/letsencrypt/live/tutorials.kirner.or.at/fullchain.pem
  #SSLCertificateKeyFile /etc/letsencrypt/live/tutorials.kirner.or.at/privkey.pem

  SSLCertificateFile /etc/ssl/certs/tutorials.crt
  SSLCertificateKeyFile /etc/ssl/private/apache.key

  # Pfad zu den Webinhalten
  DocumentRoot /mnt/synology/web1/www/tutorials

  <Directory /mnt/synology/web1/www/tutorials>
    Require all granted
  </Directory>

  ErrorLog ${APACHE_LOG_DIR}/tutorials.kirner.or.at-error.log
  CustomLog ${APACHE_LOG_DIR}/tutorials.kirner.or.at-access.log combined
</VirtualHost>

Optional

Noch in Bearbeitung

sudo apt-get install php5-dev
sudo apt-get install php-pear
sudo pecl install intl

Skins

Siehe Skins MediaWiki

Konfiguration

http://<server ip>/wiki/

Erweiterungen

Zwei-Faktor-Authentifizierung

Update

MediaWiki - Update auf Version 1.34.0

MediaWiki - Update auf Version 1.35.2

MediaWiki - Update auf Version 1.36.0

MediaWiki - Update auf Version 1.37.1

MediaWiki - Update auf Version 1.39.1

Docker

MediaWiki in Docker-Container

Links

https://www.mediawiki.org/wiki/Download


Zurück zu Ubuntu