MediaWiki: Difference between revisions

From Alpine Linux
(add a few more php dependencies.)
m (update MW to current version)
Line 3: Line 3:
== Install lighttpd, PHP,  and postgresql ==
== Install lighttpd, PHP,  and postgresql ==


{{Cmd|apk add lighttpd php php-cgi php-apcu php-ctype php-dom php-json php-pgsql php-iconf php-zlib php-gd}}
{{Cmd|apk add lighttpd php php-dom php-json php-pgsql php-iconf php-zlib php-gd}}


Install extra packages
Install extra packages
Line 18: Line 18:


{{Cmd|cd /usr/share/webapps/
{{Cmd|cd /usr/share/webapps/
wget http://dumps.wikimedia.org/mediawiki/1.20/mediawiki-1.20.2.tar.gz}}
wget http://dumps.wikimedia.org/mediawiki/1.20/mediawiki-1.24.1.tar.gz}}


Unpack the archive and delete the tarball afterwards
Unpack the archive and delete the tarball afterwards

Revision as of 22:09, 7 February 2015

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 lighttpd php php-dom php-json php-pgsql php-iconf php-zlib php-gd

Install extra packages

apk add postgresql postgresql-client

Installing and configuring MediaWiki

Create a folder named webapps

mkdir -p /usr/share/webapps/

Download

cd /usr/share/webapps/ wget http://dumps.wikimedia.org/mediawiki/1.20/mediawiki-1.24.1.tar.gz

Unpack the archive and delete the tarball afterwards

tar zxvf mediawiki-1.20.2.tar.gz rm mediawiki-1.20.2.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!