Advertisement
Guest User

Untitled

a guest
May 9th, 2018
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. -=-=-=- Pre Instalation -=-=-=-
  2. UPDATE THE SERVER:
  3. sudo yum update
  4.  
  5. FORWARD PORT 25565 FOR MINECRAFT:
  6. firewall-cmd --zone=public --add-port=25565/tcp --permanent;
  7. firewall-cmd --reload
  8.  
  9.  
  10. FORWARD PORT 80 FOR APACHE:
  11. firewall-cmd --zone=public --add-port=80/tcp --permanent;
  12. firewall-cmd --reload
  13.  
  14. INSTALL PHP:
  15. sudo yum install php
  16.  
  17. INSTALL JAVA:
  18. sudo yum install java-1.8.0-openjdk-devel
  19.  
  20. INSTALL WGET:
  21. yum install wget
  22.  
  23. INSTALL VIM:
  24. yum install vim
  25.  
  26.  
  27. -=-=-=- Install Apache -=-=-=-
  28. sudo yum install httpd
  29. sudo systemctl enable httpd.service
  30. sudo systemctl restart httpd.service
  31.  
  32. -You can now go to your servers public IP address in your browser and will be greeted with the Apache front page!
  33.  
  34.  
  35. -=-=-=- Install MySQL -=-=-=-
  36. wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
  37. sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
  38. yum update
  39. sudo yum install mysql-server
  40. sudo systemctl start mysqld
  41.  
  42. - Now you must change the password for your new database:
  43.  
  44. mysql_secure_installation
  45.  
  46. - Once you run this command it will ask you a few basic questions. The first question asks for a password just hit enter. Question 2 asks if you wish to setup a password surprisingly you do. Set the password. Question 3 asks if you wish to remove anonymouse users anwser yes. Question 4 Should root be accessable remotely, yes. last question asks if you want to delete the test database. again you do want to delete the test database.
  47.  
  48.  
  49. -=-=-=- Install phpMyAdmin -=-=-=-
  50. rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  51. yum -y update
  52. yum -y install phpmyadmin
  53.  
  54. - Next you are going to want to allow your personal IP to connect remotely to phpMyAdmin. To do this we will use are vim editor to edit are phpMyAdmin.conf. You will want to update every "Require ip 127.0.0.1" "Allow from 127.0.0.1" To your own public IP address
  55.  
  56. vim /etc/httpd/conf.d/phpMyAdmin.conf
  57. systemctl restart httpd
  58.  
  59. - You can now access your database by going to http://the_IP_of_your_server/phpmyadmin.
  60.  
  61. - You will need to create two databases once connected to phpMyAdmin one database will be named "multicraft_daemon" and the other will be named "multicraft_panel". These databases will be needed throughout the Multicraft instalation.
  62.  
  63. -=-=-=- Install MultiCraft -=-=-=-
  64. wget -O multicraft.tar.gz http://www.multicraft.org/download/linux64
  65. tar xfvz multicraft.tar.gz
  66. cd multicraft
  67. ./setup.sh
  68.  
  69. - You will be hit with the following instalation setup
  70.  
  71. Run each Minecraft server under its own user? (Multicraft will create system users): [y]/n y
  72. Run Multicraft under this user: [minecraft]
  73. User not found. Create user 'minecraft' on start of installation? [y]/n y
  74. Install Multicraft in: [/home/minecraft/multicraft]
  75. If you have a license key you can enter it now: [no]
  76. If you control multiple machines from one web panel you need to assign each daemon a unique number (requires a Dynamic or custom license). Daemon number? [1]
  77. Will the web panel run on this machine? [y]/n y
  78. User of the webserver: [apache]
  79. Location of the web panel files: [/var/www/html/multicraft]
  80. Please enter a new daemon password (use the same password in the last step of the panel installer) [none]
  81. Enable builtin FTP server? [y]/n y
  82. IP the FTP server will listen on (0.0.0.0 for all IPs): [155.94.164.161]
  83. FTP server port: [21]
  84. Block FTP upload of .jar files and other executables (potentially dangerous plugins)? [n]/y n
  85. What kind of database do you want to use? [sqlite]/mysql mysql
  86. Database host: [127.0.0.1]
  87. Database name: [multicraft_daemon]
  88. Database user: [root]
  89. Database password: [**YOUR DATABASE PASSWORD**]
  90.  
  91. -You can then go to http://YourServerIP/multicraft and it will direct you to the instalation page where you will sellect to use mySQL as your database and enter the database login information created earlier. This process will repeat twice one will configure the daemon database and the second will configure the Multicraft panel database. Once you have entered your database info for both you will be prompted with a config page almost nothing has to be touched so you can continue. You will need to start the daemon server at this point to do so.... do.
  92.  
  93. /home/minecraft/multicraft/bin/multicraft start
  94.  
  95.  
  96.  
  97. ## You are now finished this long instalation and your multicraft panel should be working!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement