MediaWiki: Difference between revisions
m (Changed some hyperlinks to https) |
(replace /etc/init.d with rc-service) |
||
Line 40: | Line 40: | ||
== Starting == | == Starting == | ||
{{Cmd| | {{Cmd|rc-service postgresql setup | ||
rc-service postgresql start && rc-update add postgresql default | |||
rc-service lighttpd start && rc-update add lighttpd default}} | |||
== Config your wiki == | == Config your wiki == |
Revision as of 09:46, 17 November 2023
MediaWiki is a popular free web-based wiki software application developed by and used on all projects of the Wikimedia Foundation, as well as on many other wiki websites worldwide. It is written in the PHP programming language with a backend database.
Install lighttpd, PHP, and postgresql
apk add curl lighttpd php php-dom php-json php-pgsql php-cgi php-mbstring php-xml php-ctype php-fileinfo php-iconv php-zlib php-gd php-session imagemagick diffutils
Install extra packages
apk add postgresql postgresql-client openrc
Installing and configuring MediaWiki
Create a folder named mediawiki
mkdir -p /usr/share/webapps/
Download the latest version. At the time of writing it is 1.35.1
cd /usr/share/webapps/ curl https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.1.tar.gz >mw.tar.gz
Unpack the archive, rename the folder and delete the tarball afterwards
tar zxvf mw.tar.gz mv mediawiki-1.35.1 mediawiki rm mw.tar.gz
Change the folder permissions
chown -R lighttpd /usr/share/webapps/
Crate a symlink to the mediawiki folder
ln -s /usr/share/webapps/mediawiki/ /var/www/localhost/htdocs/mediawiki
Edit lighttpd.conf and uncomment include "mod_fastcgi.conf"
vi /etc/lighttpd/lighttpd.conf
Starting
rc-service postgresql setup rc-service postgresql start && rc-update add postgresql default rc-service lighttpd start && rc-update add lighttpd default
Config your wiki
Install the wiki accessing
http://WEBSERVER_IP_ADDRESS/mediawiki/mw-config/index.php
When you finish, press "Install MediaWiki" button, and that's all. :) You have MediaWiki working. To access go to http://WEBSERVER_IP_ADDRESS/mediawiki and enjoy!