MediaWiki (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 22: | Zeile 22: | ||
mysql> flush privileges; | mysql> flush privileges; | ||
mysql> exit | mysql> exit | ||
</pre> | |||
=== Apache === | |||
<pre> | |||
cd /etc/apache2/conf-available/ | |||
sudo nano wiki.conf | |||
</pre> | |||
<pre> | |||
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> | |||
</pre> | |||
<pre> | |||
sudo a2enconf wiki | |||
sudo service apache2 reload | |||
</pre> | </pre> | ||
Version vom 8. Mai 2016, 09:27 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 nano 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
Links
https://www.mediawiki.org/wiki/Download
Zurück zu Ubuntu