Fedora 33 (Desktop) Need a mediawiki install clean and simple procedure

Good Day:
could someone document cleanly & concisely how to install on Fedor22 Desktop and really use “mediawiki” package with MariaDB (perhaps others too) as a database ?

Comment: there is just to much often contradictory info on https://www.mediawiki.org/wiki/MediaWiki, on Fedora 32 all I was able to do was… to brick completely Fedora ! (I use MATE Desktop: clean, frugal, functional, and stay away from GNOME3 bloated, complex).

Consequently a procedure would be very helpful. Ideally a virtual package, one day will do the job so it works “out of the box”, ideally with the same environment as Wikipedia, including the same visual editor.

2 Likes
sudo dnf install httpd mariadb-server mediawiki
sudo systemctl --now enable httpd.service mariadb.service
sudo mysql_secure_installation
sudo mysql << EOF
create database if not exists mediawiki;
grant all privileges on mediawiki.* to 'mediawiki'@'localhost' identified by 'mediawiki_passwd';
flush privileges;
EOF
sudo sed -i -e "6,12s/^#\s//" /etc/httpd/conf.d/mediawiki.conf
sudo systemctl reload httpd.service
chromium-freeworld http://localhost/wiki/
sudo cp "$(xdg-user-dir DOWNLOAD)/LocalSettings.php" /var/www/wiki
sudo sed -i -e "/^require\s/s/\s/_once /" /usr/share/php/OOUI/widgets/InputWidget.php

Tested in a Fedora 33 VM.

5 Likes

https://hub.docker.com/_/mediawiki

1 Like

I also see that there’s a README in the package that should perhaps be worth a look:

https://src.fedoraproject.org/rpms/mediawiki/blob/master/f/README.RPM

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.