Multicraft (Minecraft panel) on CentOS 6.x

edited September 2014 in Proposed How-Tos
Okay...this is quite a long one, but should be good for anyone wanting to spin up their own Minecraft server panel.

Multicraft Panel

Multicraft is a simple, easy to use web based control panel for Minecraft servers. You can create, stop, start, monitor, configure, upload, download and run your server effectively through the online control panel.
It contains features such as:
- Player Monitoring
- File Configuration
- Easy .jar changing
- Built-in FTP client
- Web Console

MySQL

Install MySQL
yum install mysql mysql-server
Set MySQL to start on bootup, and then start MySQL:
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
Run the Secure Install, entering your password when prompted, and pressing enter elsewhere
mysql_secure_installation

Apache & PHP

Install Apache and PHP
yum install httpd php
Set Apache to start on bootup, then start apache:
chkconfig --levels 235 httpd on
/etc/init.d/httpd start
Install Php extensions
yum install php-mysql php-gd
Restart Apache
/etc/init.d/httpd restart 

PhpMyAdmin

To manage the MySQL databases, phpMyAdmin must be installed, but to do this you will need to turn on the EPEL repo and install PhpMyAdmin:
cd /tmp
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum install phpmyadmin
To use phpMyAdmin you will need to configure the access. Start by opening the configuration file:
nano /etc/httpd/conf.d/phpMyAdmin.conf 
Use the down arrow key to find this section:
 IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
/IfModule>
And change Deny To Allow

To exit and save the file press Ctrl + X, then press Y and hit ENTER.
And then restart your web server:
/etc/init.d/httpd restart
You can now login to phpMyAdmin through either (phpMyAdmin is case sensitive)
yourdomain.com/phpMyAdmin
Or
yourserverIP/phpMyAdmin

The default login account is “root” and your root password.

After successfully logging into phpMyAdmin, create two databases named
multicraft_panel
And
multicraft_daemon

To protect the Multicraft panel contents you will need to open the Apache configuration using:
nano /etc/httpd/conf/httpd.conf
And scroll down until you find the section that looks like:

# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
Change None To All
To exit and save the file press Ctrl + X, then press Y and hit ENTER.

And then restart Apache:
/etc/init.d/httpd restart

And the final pre-requisites needed are Java, zip and unzip, to install it run:
yum install java-1.7.0-openjdk zip unzip

Multicraft Panel

Now to installing the Multicraft Panel
Start by downloading Multicraft 64bit (change 64 to 32 if you run a 32bit Linux operating system)
wget http://www.multicraft.org/download?arch=linux64 -O multicraft.tar.gz
Then extract it and change to the directory, and run the installer:
tar xvzf multicraft.tar.gz
cd multicraft
./setup.sh
[root@vps.stickyservers.net multicraft]# ./setup.sh

***
*** Welcome to Multicraft!
***

This installer will help you get Multicraft up and running.
No changes are made to the system until all of the required information has been collected.

NOTE: This script automates the installation as described on the Multicraft website. Use it at your own risk.


Run each Minecraft server under its own user? (Multicraft will create system users): [y]/n -- Press ENTER
Run Multicraft under this user: [minecraft] -- Press ENTER
User not found. Create user 'minecraft' on start of installation? [y]/n -- Press ENTER
Install Multicraft in: [/home/minecraft/multicraft] -- Press ENTER
If you have a license key you can enter it now: [no] -- Enter your license key if you have one and continue, or press ENTER
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] -- Press ENTER


Will the PHP frontend run on this machine? [y]/n -- Press ENTER
User of the webserver: [apache] -- Press ENTER
Location of the PHP frontend: [/var/www/html/multicraft] -- Press ENTER


Enable builtin FTP server? [y]/n -- Press ENTER
IP the FTP server will listen on (empty for same as daemon): [108.61.212.243]
FTP server port: [21] -- Press ENTER
Block FTP upload of .jar files and other executables (potentially dangerous plugins)? [y]/n n -- Press n, then ENTER



What kind of database do you want to use? [sqlite]/mysql mysql -- Type mysql, then press ENTER

NOTE: This is for the daemon config, the front end has an installation routine for database configuration and initialization.
Database host: [127.0.0.1]
Database name: [multicraft_daemon]
Database user: [root]
Database password: [] YourPassword -- Enter your MySQL password, and press ENTER

***
*** Please use the control panel to initialize the database.
***


NOTE: Any running daemon will be stopped!
Ready to install Multicraft. Start installation? [y]/n -- Press ENTER

***
*** INSTALLING

## SNIPPED TEXT TO KEEP THE CHAR LIMIT DOWN ##


*** Installation complete!
***

PLEASE READ:

Before starting the daemon you need to run the control panel installer to initialize your database. (example: http://your.address/multicraft/install.php)

The daemon WILL NOT work correctly as long as the database hasn't been initialized.


After running the control panel installer start the daemon using the following command:
/home/minecraft/multicraft/bin/multicraft -v start


If there are any issues, please check the log file: '/home/minecraft/multicraft/multicraft.log'


After reading the instructions above, press [Enter] to continue. -- Press ENTER


In case you want to rerun this script you can save the entered settings.
Save entered settings? ([y]/n)

Panel Configuration

If you encountered no errors, you can go to
yourdomain.com/multicraft
or
yourserverIP/multicraft


You should now be at the Multicraft panel installer.
Start by pressing START INSTALLATION and then viewing over the requirements.
If your server meets all the requirement (which it should), press CONTINUE and CONTINUE once again

When you arrive at the “Database 1: PANEL” page, you will want to select MySQL from the database type dropdown and fill in the required data, including your password. Press SAVE AND TEST, then initialize the database
After that you can continue to the next step where you will login to the panel using “admin” and the username and “admin” as the password.
After that press CONTINUE and head to the next database configuration section: “Database 2: DAEMON “
Again select MySQL and enter your MySQL login details and save, initialize the database then press CONTINUE.

You are now on the final page: “Settings”
The only configuration needed here is to set “Administrator contact Email” to your email address.
Then press SAVE.

Return to the command line and run:
/home/minecraft/multicraft/bin/multicraft -v start
To start the Multicraft control daemon

You can now login to the panel and control your Minecraft servers.


Thanks for viewing. Any input/feedback is appreciated.

Sign In or Register to comment.