Install CentOS 7 x64
Update the system

yum -y update
Run the following to install the webserver, php, and mysql and some depedancies.

yum -y install nano 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
Start and Enable apache

systemctl start httpd.service && systemctl enable httpd.service
Install MariaDB

yum -y install mariadb-server mariadb
Start and enable MariaDB

systemctl start mariadb && systemctl enable mariadb
Secure MariaDB

mysql_secure_installation

Save your MySQL password.

pass DB: <password>

Install phpMyAdmin

yum install epel-release && yum install phpmyadmin

nano /etc/httpd/conf.d/phpMyAdmin.conf

Edit all lines with Require ip 127.0.0.1 and Require ip ::1

Require ip 127.0.0.1 to #Require ip 127.0.0.1
Require ip ::1 to Require all granted

Restart the web service to apply changes.

systemctl restart httpd.service
Download, Extract and install Multicraft.

wget http://www.multicraft.org/download/linux64 -O multicraft.tar.gz

tar xvzf multicraft.tar.gz

cd multicraft

./setup.sh

Save your daemon password.

daemon pass: <password>

Allow web access and secure the protected folder.

chown -R apache.apache /var/www/html

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
Restart web service to apply changes

systemctl restart httpd.service
Navigate to http://yourip/phpmyadmin and create the daemon and panel databases. Don;t forgot to also create the users and give the proper access o your databases.

create multicraft_daemon : utf8_general_ci

create multicraft_panel : utf8_general_ci

Navigate to http://yourip/multicarft or install place for the panel
Edit the protect config file and replace daemon_password: none to one stated before

nano /var/www/html/protected/config/config.php

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
Edit multicraft.conf and replace local ip with the normal one, add a daemon name, and adjust the max memory.

nano /home/minecraft/multicraft/multicraft.conf

Remove the install script

rm -f /var/www/html/install.php ()
change admin pass on multicraft <password>

Change SSH Port (This is Optional)
Connect to your server via SSH.
Switch to the root user.
Run the following command:

vi /etc/ssh/sshd_config
Locate the following line:

# Port 22
Remove # and change 22 to your desired port number.
Restart the sshd service by running the following command:

service sshd restart
Was this article helpful?
Thank you!