MediaWiki (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 105: Zeile 105:
<pre>
<pre>
$wgLogo = "$wgResourceBasePath/resources/assets/logo.png";
$wgLogo = "$wgResourceBasePath/resources/assets/logo.png";
</pre>
<pre>
sudo -u www-data cp /var/www/wiki_bak/resources/assets/logo.png /var/www/wiki/resources/assets/
</pre>
</pre>



Version vom 1. März 2020, 14:06 Uhr

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 wiki;
mysql> create user 'wikiuser'@'%' identified by '<password>';
mysql> grant all on wiki.* to 'wikiuser'@'%';
mysql> create user 'wikiuser'@'localhost' identified by '<password>';
mysql> grant all on wiki.* to 'wikiuser'@'localhost';
mysql> flush privileges;
mysql> exit

Apache

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

Optional

Noch in Bearbeitung

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

Konfiguration

http://<server ip>/wiki/

Update

Download

Unter https://releases.wikimedia.org/mediawiki/ die aktuellste Version herunterladen.

wget https://releases.wikimedia.org/mediawiki/1.34/mediawiki-1.34.0.tar.gz

Update

cd /var/www/
sudo mv wiki wiki_bak

cd ~/temp/
tar -xzf mediawiki-1.34.0.tar.gz mediawiki-1.34.0/
sudo mv mediawiki-1.34.0 /var/www/wiki_1_34

cd /var/www/
sudo ln -s wiki_1_34/ wiki
sudo chown -R www-data:www-data wiki_1_34/

sudo -u www-data cp wiki_bak/LocalSettings.php wiki
sudo -u www-data cp -R /var/www/wiki_bak/skins/CologneBlue/ /var/www/wiki/skins/
sudo -u www-data cp -R /var/www/wiki_bak/skins/Modern/ /var/www/wiki/skins/
grep wgLogo LocalSettings.php
$wgLogo = "$wgResourceBasePath/resources/assets/logo.png";
sudo -u www-data cp /var/www/wiki_bak/resources/assets/logo.png /var/www/wiki/resources/assets/

Links

https://www.mediawiki.org/wiki/Manual:Upgrading/de

https://www.mediawiki.org/wiki/Manual:Upgrading/de#Can_my_wiki_stay_online_while_it_is_upgrading?

Links

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


Zurück zu Ubuntu