MediaWiki (Linux)
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/
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