MediaWiki

From Alpine Linux
Revision as of 12:18, 14 March 2021 by Lkoatz (talk | contribs) (Add required php extensions for mediawiki (mbstring xml ctype fileinfo))
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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 imagemagick diffutils

Install extra packages

apk add postgresql postgresql-client openrc

Installing and configuring MediaWiki

Create a folder named webapps

mkdir -p /usr/share/webapps/

Download

cd /usr/share/webapps/ curl https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz >mw.tar.gz

Unpack the archive and delete the tarball afterwards

tar zxvf mw.tar.gz rm mw.tar.gz

Change the folder permissions

chown -R lighttpd /usr/share/webapps/

Crate a symlink to the wordpress folder

ln -s /usr/share/webapps/mediawiki/ /var/www/localhost/htdocs/mediawiki

Starting

/etc/init.d/postgresql setup /etc/init.d/postgresql start && rc-update add postgresql default /etc/init.d/lighttpd start && rc-update add lighttpd default

Config your wiki

Browse

http://WEBSERVER_IP_ADDRESS/config/index.php

  • Site config

You need to set:

 Wiki name:
 Contact e-mail:
 Language:
 Copyright/license:
 Admin username:
 Password:
 Password confirm:
 Object caching:
 Memcached servers:
 E-mail features (global):
 User-to-user e-mail:
 E-mail notification about changes:
 E-mail address authentication:
 Database type:
 PostgreSQL
 Database host:
 Database name:
 DB username:
 DB password:
 DB password confirm:
 Superuser account:  
 Superuser name:
 Superuser password:
 Database port:
 Schema for mediawiki:
 Schema for tsearch2:

When you finish, press "Install MediaWiki" button, and thats all. :) You have MediaWiki working, to access go to http://WEBSERVER_IP_ADDRESS/mediawiki and enjoy!

See Also