• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Sunday, June 22, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

Install MediaWiki on the One-Click LEMP Application

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
13
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Introduction
  2. Prerequisites
  3. Step one: Create a database
  4. Step two: Download the MediaWiki package
  5. Step three: Configure and install MediaWiki from your browser
  6. Want to contribute?


Introduction

MediaWiki is a popular open-source wiki software package. In this article, we will show you how to install MediaWiki on a Vultr server based on the One-Click LEMP application.

Prerequisites

We assume that you have deployed a One-Click LEMP Vultr server instance from scratch and have logged in as root. Non-root users will need to use the sudo command.

Step one: Create a database

By default, the MySQL root password is saved on the VPS in /root/.my.cnf. Make it display on the screen with the following command:

cat /root/.my.cnf

Use the credential displayed on the screen to log into MySQL:

mysql -u root -p

Create and configure a database in MySQL with the following commands. Remember to replace the database name mywiki, the user name myusername, and the password mypassword with your own ones.

create database mywiki;
create user 'myusername'@'localhost' identified by 'mypassword';
grant all privileges on *.* to 'myusername'@'localhost' identified by 'mypassword' with grant option;
flush privileges;
exit;

Step two: Download the MediaWiki package

At the time of writing, the latest version of MediaWiki was 1.24.1. Download and unzip the latest MediaWiki package to a user-friendly directory with the following commands:

cd /usr/share/nginx/html
wget http://releases.wikimedia.org/mediawiki/1.24/mediawiki-1.24.1.tar.gz
tar xvzf mediawiki-1.24.1.tar.gz
mv mediawiki-1.24.1 wiki

Step three: Configure and install MediaWiki from your browser

Note: Before the installation, you need to modify the default access permissions to the directory /var/lib/php/session to 777, or you will encounter a permission error.

chmod 777 /var/lib/php/session

Visit http://[SERVER_IP]/wiki/ in your browser. Substitute the [SERVER_IP] with the IP address of your VPS.

Click the link “set up the wiki” to initialize the installation wizard. Follow the on-screen instructions to configure your MediaWiki.

On the step of “Connect to database”, you need to input database parameters as specified below.

Remember to replace the database name mywiki, the table prefix wk-, the user name myusername, and the password mypassword with your own ones.

Database type: MySQL (or compatible)
Database host: localhost
Database name: mywiki
Database table prefix: wk-
Database username: myusername
Database password: mypassword

On the step of “Name”, you need to specify the name of your wiki and the administrator’s username, password and email address.

All other options can use the default values or be configured later. You can find more details from the MediaWiki official website.

On the final step of “Complete!”, a file named LocalSettings.php will be downloaded to your desktop automatically. If the automatic download went wrong, you can download this file manually by click the link “Download LocalSettings.php”.

Then you need to upload this file to the base of your MediaWiki installation (the same directory as index.php, e.g., /usr/share/nginx/html/wiki). You can use PuTTY or another SSH client to get it done.

That’s it. You have installed MediaWiki onto your Vultr VPS.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How To Install RabbitMQ on Ubuntu 16.04

Next Post

Using Finnix Rescue CD to Rescue, Repair, or Backup Your Linux System

Next Post

Using Finnix Rescue CD to Rescue, Repair, or Backup Your Linux System

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In