How to Install MediaWiki

On this page
  1. Before You Begin
  2. Step 1: Connect to the Server via SSH
  3. Step 2: Download MediaWiki
  4. Step 3: Extract the Archive
  5. Step 4: Enter the MediaWiki Directory
  6. Step 5: Launch Midnight Commander
  7. Step 6: Select the Installation Files
  8. Step 7: Move the Files to the Website Directory
  9. Step 8: Run the Installer
  10. Verify the Installation
  11. Summary

If you encounter Warning or Fatal Error messages after uploading MediaWiki files via FTP, the issue may be caused by an incomplete or incorrect extraction of the installation archive on your local computer.

To avoid these problems, it is recommended to download and extract the MediaWiki package directly on the server using SSH.

Before You Begin

You will need:

  • An active hosting account
  • SSH access enabled for your account
  • An SSH client such as PuTTY, Bitvise, or a terminal application

Step 1: Connect to the Server via SSH

Connect to your hosting account using SSH.

Once connected, navigate to the directory where you want to download the MediaWiki installation package.

Step 2: Download MediaWiki

Download the latest MediaWiki package directly from the official source.

Example:

wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.0.tar.gz

Note: The version number in the command may change over time. You can always obtain the latest download link from the official MediaWiki download page.

Step 3: Extract the Archive

After the download completes, extract the package using:

tar -zxvf mediawiki-1.35.0.tar.gz

This will create a new directory containing the MediaWiki installation files.

Step 4: Enter the MediaWiki Directory

Move into the extracted directory:

cd mediawiki-1.35.0

Step 5: Launch Midnight Commander

Start Midnight Commander:

mc

Midnight Commander is a file manager that simplifies moving files and directories directly from the terminal.

Step 6: Select the Installation Files

Inside Midnight Commander:

  1. Open the MediaWiki directory.
  2. From the menu, select:

File → Select Group

  1. Enter:
*

to select all files and folders.

Alternatively, use your keyboard shortcuts to select the entire directory contents.

Step 7: Move the Files to the Website Directory

In the second Midnight Commander panel, open your website directory, typically:

public_html

Use the TAB key to switch between panels.

After selecting the files:

  1. Press F6 (Move).
  2. Confirm the operation.

The MediaWiki files will be moved to your website directory.

Step 8: Run the Installer

Once the files have been moved successfully, open your website in a web browser.

For example:

https://yourdomain.com

The MediaWiki installation wizard should start automatically.

Follow the on-screen instructions to:

  • Configure the database
  • Create an administrator account
  • Set the site name
  • Complete the installation

Verify the Installation

After installation is complete, confirm that:

  • The main page loads correctly.
  • You can log in to the administration interface.
  • No PHP warnings or fatal errors are displayed.
  • MediaWiki can connect to the database successfully.

Summary

If MediaWiki displays errors after being uploaded via FTP, downloading and extracting the installation package directly on the server using SSH is often the most reliable solution. After extracting the archive, move the files into the public_html directory and launch the installation wizard from your web browser to complete the setup.

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.