How to install Multicraft

This tutorial is for CentOS 7

First off we need to ensure your system is up to date


yum -y update

Once that has run, We now need to install all the dependencies for you to run Multicraft and Minecraft.
yum -y install httpd php php-common php-gd php-mbstring php-ldap php-odbc php-pear php-xml php-xmlrpc php-bcmath php-mysql php-pdo wget vim tar zip curl java-1.8.0-openjdk

Once that has installed, we now need to download and run the Multicraft installer, this can be done using the command below
wget -O multicraft.tar.gz https://multicraft.org/files/multicraft-2.4.0-64.tar.gz && tar xfz multicraft.tar.gz && cd multicraft && ./setup.sh

The script will prompt you to enter the settings you wish to use for your Multicraft, You may enter your own settings or use our recommended settings here
Run each Minecraft server under its own user? (Multicraft will create system users): [y]/n y

Run Multicraft under this user: [minecraft] minecraft

User not found. Create user 'minecraft' on start of installation? [y]/n y

Install Multicraft in: [/home/minecraft/multicraft] /home/minecraft/multicraft

If you have a license key you can enter it now: [no] *Enter license key if you have one*

If you control multiple machines from one control panel you need to assign each daemon a unique ID(requires a Dynamic or custom license). Daemon ID? [1] 1

Will the PHP frontend run on this machine? [y]/n y

User of the webserver: [www-data] apache

Location of the PHP frontend: [/var/www/multicraft] /var/www/html

Enable builtin FTP server? [y]/n y

IP the FTP server will listen on (empty for same as daemon): [] *Just hit enter*

FTP server port: [21] 21

Block FTP upload of .jar files and other executables (potentially dangerous plugins)? [y]/n n

What kind of database do you want to use? [sqlite]/mysql sqlite

Ready to install Multicraft. Start installation? [y]/n y

Now you have installed Multicraft, we need to ensure that the other settings on your Dedicated Server are correctly configured.

We need to make sure that your frontend website files have the correct permissions configured
chown -R apache.apache /var/www/html

We need to allow Apache's configuration to allow .htaccess overrides
awk '/AllowOverride None/{c++;if(c==2){sub("AllowOverride None","AllowOverride All");c=0}}1' /etc/httpd/conf/httpd.conf > /tmp/httpd.conf; mv -f /tmp/httpd.conf /etc/httpd/conf/httpd.conf

Now we want to ensure that the apache service boots after a Dedicated Server Reboot
systemctl enable httpd
systemctl restart httpd


To finish your installation we need to head over to Multicraft itself and run their web installer, Head to your Dedicated Server's IP in the browser such as http://192.168.0.14/

Once there, You'll see this screen, press "Start Installation"

 

You will then be prompted to initialize your panel and server databases, Simply press Initialize Database on both and then save the changes, You'll finally be prompted with a Settings screen, Just press Save at the bottom and you've successfully installed Multicraft onto your Dedicated Server!

 

 

  1. /home/minecraft/multicraft/bin/multicraft -v stop
  2. /home/minecraft/multicraft/bin/multicraft -v start

 

Important

Install firewalld

yum install firewalld
systemctl start firewalld
Add your rules

firewall-cmd --permanent --zone=public --add-port=80/tcp

firewall-cmd --permanent --zone=public --add-port=25565/tcp

firewall-cmd --permanent --zone=public --add-port=25565-25580/tcp

firewall-cmd --permanent --zone=public --add-port=25465/tcp

firewall-cmd --permanent --zone=public --add-port=3306/tcp

firewall-cmd --permanent --zone=public --add-service=ftp

firewall-cmd --reload

  • multicraft, minecraft
  • 2 Users Found This Useful
Was this answer helpful?

Powered by WHMCompleteSolution