How to install Multicraft on Ubuntu 20.04

Updated on July 19, 2022
How to install Multicraft on Ubuntu 20.04 header image

Introduction

Multicraft is a powerful control panel for hosting many different Minecraft servers on the same machine. This article explains how to install Multicraft on your Ubuntu 20.04 server.

Prerequisites

1. Install the Dependencies

Install Apache2 and SQLite.

# apt-get install apache2 sqlite

Install PHP and the required PHP extensions.

# apt-get install php7.4 php7.4-sqlite php7.4-gd

Install Java.

# apt-get install openjdk-8-jdk

Edit the Apache configuration file /etc/apache2/apache2.conf in your favorite text editor.

# nano /etc/apache2/apache2.conf

In the Apache configuration file, in the <Directory /var/www/> section set the AllowOverride option to all.

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

Save and exit the file.

Reload the Apache configuration.

# service apache2 reload

2. Install Multicraft

Download the Multicraft installer.

# wget -O multicraft.tar.gz http://www.multicraft.org/download/index?arch=linux64

Extract the installer.

# tar -xzf multicraft.tar.gz

Navigate to the extracted directory.

# cd multicraft/

Run the installation script.

# ./setup.sh

The installation script asks you several configuration questions. If you're not sure how to answer them, press Enter to go with the default answer. Answer no when asked to enable the built-in FTP server, because it is insecure.

Configure the firewall. Use our quickstart guide to learn how to open the needed UFW ports for your server.

3. Configure the Control Panel

Open a web browser and navigate to your server's IP address with the subdirectory /multicraft/install.php.

For instance, if your IP address is 192.0.2.2, you would navigate to the following URL.

http://192.0.2.2/multicraft/install.php
  1. Press Start Installation.
  2. If you've completed the steps above without an error, the page shows your server meets the requirements. Click Continue.
  3. Multicraft asks you for a confirmation to copy the configuration file. Press Continue.
  4. Click Initialize Database. Multicraft has initialized the database for use. Press Continue once again.
  5. Click Login in the black navigation bar at the top of the page.
  6. A sign in form shows up on your screen. Input the name admin and password admin. Click Login.
  7. Press Continue again.
  8. Click Initialize Database again and then Continue.
  9. Fill in your email address into the Administrator contact Email field.
  10. Click the Save button.

Start the Multicraft daemon.

# /home/minecraft/multicraft/bin/multicraft -v start

Go back into your web browser. Click Refresh and then Continue. Then press Continue to Multicraft.

Delete the Multicraft installation file for security purposes.

# rm /var/www/html/multicraft/install.php

4. Change the Administrator Account Password

To prevent unauthorized access into your Multicraft panel, change the administrator account password from the default one.

  1. Click Users in the top black navigation bar.
  2. Select My Profile from the Users section.
  3. Input the password admin into the Current Password field.
  4. Type a new password into the New Password field and Confirm Password fields.
  5. Press Save.

Conclusion

In this article, you have learned how to install and configure Multicraft.

More Information

For more information about Multicraft, visit the official documentation page.