How to install Multicraft on Ubuntu 20.04
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
- Deploy an Ubuntu 20.04 LTS cloud server at Vultr.
- Update the server.
- Log in to your server as the root user.
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
- Press Start Installation.
- If you've completed the steps above without an error, the page shows your server meets the requirements. Click Continue.
- Multicraft asks you for a confirmation to copy the configuration file. Press Continue.
- Click Initialize Database. Multicraft has initialized the database for use. Press Continue once again.
- Click Login in the black navigation bar at the top of the page.
- A sign in form shows up on your screen. Input the name
admin
and passwordadmin
. Click Login. - Press Continue again.
- Click Initialize Database again and then Continue.
- Fill in your email address into the Administrator contact Email field.
- 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.
- Click Users in the top black navigation bar.
- Select My Profile from the Users section.
- Input the password
admin
into the Current Password field. - Type a new password into the New Password field and Confirm Password fields.
- 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.