MediaWiki (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Update) |
|||
(38 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 15: | Zeile 15: | ||
<pre> | <pre> | ||
mysql -u root -p | mysql -u root -p | ||
mysql> create database if not exists | mysql> create database if not exists <database name>; | ||
mysql> create user 'wikiuser'@'%' identified by '<password>'; | mysql> create user 'wikiuser'@'%' identified by '<password>'; | ||
mysql> grant all on | mysql> grant all on <database name>.* to 'wikiuser'@'%'; | ||
mysql> create user 'wikiuser'@'localhost' identified by '<password>'; | mysql> create user 'wikiuser'@'localhost' identified by '<password>'; | ||
mysql> grant all on | mysql> grant all on <database name>.* to 'wikiuser'@'localhost'; | ||
mysql> flush privileges; | mysql> flush privileges; | ||
mysql> exit | mysql> exit | ||
Zeile 25: | Zeile 25: | ||
=== Apache === | === Apache === | ||
==== lokal ==== | |||
<pre> | <pre> | ||
cd /etc/apache2/conf-available/ | cd /etc/apache2/conf-available/ | ||
sudo | sudo vi wiki.conf | ||
</pre> | </pre> | ||
Zeile 50: | Zeile 52: | ||
sudo service apache2 reload | sudo service apache2 reload | ||
</pre> | </pre> | ||
==== extern ==== | |||
<pre> | |||
sudo vi /etc/apache2/sites-available/tutorials.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:80> | |||
ServerName tutorials.kirner.or.at | |||
ServerAlias tutorials.kirner.or.at | |||
Redirect / https://tutorials.kirner.or.at | |||
</VirtualHost> | |||
</pre> | |||
<pre> | |||
sudo vi /etc/apache2/sites-available/tutorials-ssl.conf | |||
</pre> | |||
<pre> | |||
<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> | |||
</pre> | |||
=== Optional === | |||
{{note|Noch in Bearbeitung}} | |||
<pre> | |||
sudo apt-get install php5-dev | |||
sudo apt-get install php-pear | |||
sudo pecl install intl | |||
</pre> | |||
== Skins == | |||
Siehe [[Skins MediaWiki (Linux)|Skins MediaWiki]] | |||
== Konfiguration == | |||
<pre> | |||
http://<server ip>/wiki/ | |||
</pre> | |||
== Erweiterungen == | |||
[[Zwei-Faktor-Authentifizierung (MediaWiki)|Zwei-Faktor-Authentifizierung]] | |||
== Update == | |||
[[MediaWiki - Update auf Version 1.34 (Linux)|MediaWiki - Update auf Version 1.34.0]] | |||
[[MediaWiki - Update auf Version 1.35.2 (Linux)|MediaWiki - Update auf Version 1.35.2]] | |||
[[MediaWiki - Update auf Version 1.36.0 (Linux)|MediaWiki - Update auf Version 1.36.0]] | |||
[[MediaWiki - Update auf Version 1.37.1 (Linux)|MediaWiki - Update auf Version 1.37.1]] | |||
[[MediaWiki - Update auf Version 1.39.1 (Linux)|MediaWiki - Update auf Version 1.39.1]] | |||
== Docker == | |||
[[MediaWiki in Docker-Container]] | |||
== Links == | == Links == |
Aktuelle Version vom 30. Dezember 2022, 12:31 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 <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
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
Links
https://www.mediawiki.org/wiki/Download
Zurück zu Ubuntu