MediaWiki: Difference between revisions

From Alpine Linux
No edit summary
No edit summary
Line 31: Line 31:
Download  
Download  


   cd /var/www/localhost/htdocs/
   cd /tmp
   wget http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.4.tar.gz
   wget http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.4.tar.gz


Line 41: Line 41:
Change Folder Name
Change Folder Name


   mv mediawiki-1.15.4 mediawiki
   mv mediawiki-1.15.4 /etc/mediawiki
 
 
Make Symlink to the wiki
 
ln -s /etc/mediawiki/ /var/www/localhost/htdocs/mediawiki/
 
== Starting ==
== Starting ==
   
   

Revision as of 08:59, 30 July 2010

What is MediaWiki?

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.

Set up MediaWiki on Alpine Linux

This document will be a quick c/p guide to setup MediaWiki on Alpine linux. What we will setup is the following:

  • Lighttpd with PHP
  • Postgresql
  • MediaWiki

Install lighttpd, PHP, and postgresql

apk add lighttpd postgresql postgresql-client php php-iconv php-json php-gd php-curl php-xml php-pgsql php-imap php-pdo php-pdo_pgsql  php-soap php-xmlrpc php-posix php-mcrypt php-gettext

Configuring Lighttpd

Edit lighttpd.conf

nano +46 /etc/lighttpd/lighttpd.conf

Uncomment lines: uncoment include "mod_fastcgi.conf", save and exit


Installing and configuring MediaWiki

Install MediaWiki

Download

 cd /tmp
 wget http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.4.tar.gz

Unpack

 gunzip mediawiki-1.15.4.tar.gz
 tar xvf mediawiki-1.15.4.tar
  

Change Folder Name

 mv mediawiki-1.15.4 /etc/mediawiki

Make Symlink to the wiki

ln -s /etc/mediawiki/ /var/www/localhost/htdocs/mediawiki/

Starting

Starting http and sql server and adding to boot

/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/mediawiki/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!