Monday, September 1, 2025

Mediawiki Installation and Setup

 

Downloads:

• Web Server: Apache VS17 binaries and modules download

• PHP: PHP Downloads

• Database: MySQL Download MySQL Community Server or MariaDB - Community Server

• MediaWiki: Download - MediaWiki


Installation:

• Unzip the files to the local folders


Configuration:

• Httpd: modify %HTTPD_HOME%/conf/httpd.conf

Set server Root:

Define SRVROOT "c:/DevApps/Apache24"

Set listen port:

Listen 8080

Enable(uncomment) SSL

LoadModule ssl_module modules/mod_ssl.so

Enable PHP

LoadModule php_module "C:/DevApps/php-8.4.11/php8apache2_4.dll"

AddHandler application/x-httpd-php .php

PHPIniDir "C:/DevApps/php-8.4.11"

• Enable extension in php.ini by removing ";" from the following lines

;extension_dir = "ext"

;extension=mysqli

;extension=curl

;extension=fileinfo

;extension=intl

;extension=mbstring

;extension=openssl

;extension=pdo_mysql


Database:

• Log in as root(admin account)

• Run the following statement to create initial DB:

CREATE DATABASE my_wiki;

CREATE USER 'wikiuser'@'localhost' IDENTIFIED BY 'database_password';

GRANT ALL PRIVILEGES ON my_wiki.* TO 'wikiuser'@'localhost' WITH GRANT OPTION;

Set up Wiki:

localhost:8080/mediawiki-1.44.0/index.php

• Set up MySQL, account etc

• Admin account creation

• Options: eg Authorized editors only

• Email, Skin etc

Download LocalSettings.php after the successful Wiki installation and copy it to %WIKI_HOME%

No comments:

Post a Comment