Advertisement
Guest User

Multicraft Command-by-command install

a guest
Oct 11th, 2019
2,186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.79 KB | None | 0 0
  1.  
  2. apt-get update
  3. apt upgrade -y
  4. apt-get install -y apache2-utils apache2
  5. service apache2 start
  6. curl localhost
  7. nano /etc/apache2/apache2.conf
  8. #Remove AllowOverride under / and /var/www from None to All
  9. service apache2 restart
  10. apt-get install -y mysql-server
  11. apt-get install -y php7.0 libapache2-mod-php7.0
  12. apt-get install -y phpmyadmin
  13. curl localhost
  14. #If a bunch of random text pops up, it will show that it is working correctly
  15. echo >> /etc/apache2/apache2.conf
  16. echo '#phpmyadmin include' >> /etc/apache2/apache2.conf
  17. echo 'Include /etc/phpmyadmin/apache.conf' >> /etc/apache2/apache2.conf
  18. service apache2 restart
  19. apt-get install -y php-mbstring php-gettext
  20. phpenmod mcrypt
  21. phpenmod mbstring
  22. mkdir ~/Downloads
  23. mkdir ~/Downloads/Multicraft
  24. cd ~/Downloads/Multicraft
  25. wget http://www.multicraft.org/download/linux64 -O multicraft.tar.gz
  26. tar xvzf multicraft.tar.gz
  27. sudo apt-get install -y default-jre zip unzip
  28. cd multicraft/
  29. ./setup.sh
  30. ip a | grep inet | sed '/inet6/d'
  31. #This will show your IPv4 Address that you need to access the website.
  32. #http://<ipaddress>. You need a device connected to the same network
  33. #Do the web setup then run the next command
  34. /home/minecraft/multicraft/bin/multicraft start
  35. #Return to the web setup and then run the next set of commands to finish up
  36. rm -Rf /var/www/html/multicraft/install.php
  37. ufw enable
  38. ufw allow 21
  39. ufw allow 25565
  40. echo y | ufw delete 3
  41. echo y | ufw delete 3
  42. ufw allow 80
  43. echo y | ufw delete 4
  44. #You can do 'ufw status verbose' to view if 80, 21 and 25565 ports are open through firewall
  45. wget http://www.multicraft.org/files/multicraft.service -O /etc/systemd/system/multicraft.service
  46. chmod 644 /etc/systemd/system/multicraft.service
  47. systemctl enable multicraft
  48. #I suggest a reboot at the end, as in my case there was some kernel updates.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement