MediaWiki: Difference between revisions

From Alpine Linux
mNo edit summary
m (Oversight from previous edit)
 
(19 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[http://www.mediawiki.org/wiki/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.
[https://www.mediawiki.org/wiki/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.


== Install lighttpd, PHP,  and postgresql ==
== Install lighttpd, PHP,  and postgresql ==
{{:Setting Up Lighttpd With FastCGI}}
 
{{Cmd|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 php-intl imagemagick diffutils}}


Install extra packages
Install extra packages


{{Cmd|apk add postgresql postgresql-client}}
{{Cmd|apk add postgresql postgresql-client openrc}}


== Installing and configuring  MediaWiki ==
== Installing and configuring  MediaWiki ==


Create a folder named {{Path|webapps}}
Create a folder named {{Path|mediawiki}}


{{Cmd|mkdir -p /usr/share/webapps/}}
{{Cmd|mkdir -p /usr/share/webapps/}}


Download  
Download the [https://www.mediawiki.org/wiki/MediaWiki latest version]. At the time of writing it is 1.42.3


{{Cmd|cd /usr/share/webapps/
{{Cmd|cd /usr/share/webapps/
wget http://dumps.wikimedia.org/mediawiki/1.20/mediawiki-1.20.2.tar.gz}}
curl https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.3.tar.gz >mw.tar.gz}}


Unpack the archive and delete the tarball afterwards
Unpack the archive, rename the folder and delete the tarball afterwards


{{Cmd| tar zxvf mediawiki-1.20.2.tar.gz
{{Cmd|tar zxvf mw.tar.gz
rm mediawiki-1.20.2.tar.gz}}
mv mediawiki-1.42.3 mediawiki
rm mw.tar.gz}}
   
   
Change the folder permissions
Change the folder permissions
Line 28: Line 30:
{{Cmd|chown -R lighttpd /usr/share/webapps/}}
{{Cmd|chown -R lighttpd /usr/share/webapps/}}


Crate a symlink to the {{Path|wordpress}} folder
Crate a symlink to the {{Path|mediawiki}} folder


{{Cmd|ln -s /usr/share/webapps/mediawiki/ /var/www/localhost/htdocs/mediawiki}}
{{Cmd|ln -s /usr/share/webapps/mediawiki/ /var/www/localhost/htdocs/mediawiki}}
Edit lighttpd.conf and uncomment '''include "mod_fastcgi.conf"'''
{{Cmd|vi /etc/lighttpd/lighttpd.conf}}


== Starting ==
== Starting ==
   
   
{{Cmd|/etc/init.d/postgresql setup
{{Cmd|rc-service postgresql setup
/etc/init.d/postgresql start && rc-update add postgresql default
rc-service postgresql start && rc-update add postgresql default
/etc/init.d/lighttpd start && rc-update add lighttpd default}}
rc-service lighttpd start && rc-update add lighttpd default}}
   
   
== Config your wiki ==
== Config your wiki ==


Browse
Install the wiki accessing
 
http://WEBSERVER_IP_ADDRESS/config/index.php


* Site config
<nowiki>http://WEBSERVER_IP_ADDRESS/mediawiki/mw-config/index.php</nowiki>
You need to set:


  Wiki name:
When you finish, press "Install MediaWiki" button, and that's all. :)
  Contact e-mail:
You have MediaWiki working. To access go to <nowiki>http://WEBSERVER_IP_ADDRESS/mediawiki</nowiki> and enjoy!
  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. :)
=See Also=
You have MediaWiki working, to access go to http://WEBSERVER_IP_ADDRESS/mediawiki and enjoy!
*[[Converting mediawiki database from postgresql to mysql/mariadb]]


[[Category:SQL]]
[[Category:SQL]]

Latest revision as of 15:39, 3 November 2024

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 php-intl 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.42.3

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

Unpack the archive, rename the folder and delete the tarball afterwards

tar zxvf mw.tar.gz mv mediawiki-1.42.3 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!

See Also