What's the difference between a Multicraft server and a Minecraft server? Well, with a Multicraft server, you have the ability to run multiple servers at once with ease. Another key difference is that both servers are setup in a different manner. This article teaches you how to install a Multicraft server on Ubuntu.
Install Multicraft
First step is to update packages with apt-get.
sudo apt-get update
To start off, we need to have a few applications. This includes Apache2, MySQL-Server, PHPMyAdmin, Java (OpenJDK-7-JRE), PHP5, and LibApache2-Mod-PHP5.
sudo apt-get install apache2
sudo service apache2 restart
sudo apt-get install phpmyadmin
sudo apt-get install openjdk-7-jre
sudo apt-get install php5 libapache2-mod-php5 php5-mysql
Fill out any prompts accordingly during the installation of these components.
Now, create a directory for where you want Multicraft to be hosted from. For the purpose of the tutorial, I will set it up in a "MultiCraft" directory.
mkdir MultiCraft
cd MultiCraft/
Download and extract Multicraft. Depending on your OS type ("64x" or "32x"), you will change the $bit$
part in the command below.
wget http://www.multicraft.org/download?arch=linux$bit$ -O multicraft.tar.gz
tar xvzf multicraft.tar.gz
Change the directory to multicraft
.
cd multicraft/
Finally, run the given setup.sh
file. Fill in the prompts accordingly.
./setup.sh
Next, go to your phpMyAdmin link (http://yourdomain.com/phpmyadmin
) and login with the information you have previously filled out.
Create a new database for the panel and daemon. The recommended names: multicraft_panel
and multicraft_daemon
.
After completing that, go to http://yourdomain.com/multicraft
, and you will see the installation page. Click "Start Installation".
If your "Minimum requirements" aren't met due to "Protected directory", then you can fix this issue with the following steps.
-
Edit
apache2.conf
.nano /etc/apache2/apache2.conf
-
Change the "AllowOverride" from
None
toAll
in the following section.<Directory /var/www/>
-
Save the file.
-
Restart apache2.
sudo service apache2 restart
-
Reload the installation page and click "Continue" again.
You are now at the database setup page. We will be using MySQL as the database. Change "Database Type" to MySQL. Fill out each of the fields, and use the database "multicraft_panel".
Click "Save and Test", and the page should reload. If successful, there should be an "Initialize Database" button. Click it, and click "Continue".
Look at the top left of the page for the "Login" button, and click it. Login with the following information:
user: admin
password: admin
It will direct you to the database page, so just click "Continue".
Now, fill in the same information that you did with the MySQL, except with the database "multicraft_daemon".
Save and Test, and then "Continue".
For the next page, change what you want to change. Then proceed.
You are now at the "Daemon configuration" page.
Copy and paste everything below "#webUser" into the daemon multicraft.conf
file.
nano /home/youruser/MultiCraft/multicraft/multicraft.conf
Look for "## Example for MySQL connections" and replace the values below that with the content below "#webUser" in the installation page.
Finally, start the Multicraft daemon.
/home/youruser/MultiCraft/multicraft/bin/multicraft -v start
It will print "Started Daemon" to the console.
Go back to the installation page, there will be information on "Multicraft Daemon ID 1" in a green box. This shows that the daemon is up.
Refresh the page (http://yourdomain/multicraft
) and your installation will be complete!