Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[GUIDE] How to run PocketMine an your VPS *simplified*

Comments in 'General Discussion' started by Pman1220, Mar 17, 2015.

  1. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    Hi there! In the past two months I have learned a lot about PocketMine and how to run a server. I'd like to share my methods of running PM on a VPS server. For this post I will be referring to a linux base VPS as most people prefer it. ENJOY!

    My suggestion:
    If it was me I would NOT buy an OpenVZ Server. They are known to be unstable and oversold by companies. A KVM VPS is much more ideal and almost always better in every aspect.

    Step One: Your VPS and PocketMine
    =========================
    PocketMine is in no ways a heavy process for a VPS. If you have a good premium server it should run with ease. Before you even install PM I have found that It is best to install a 32-bit Minimal Linux flavor. For two very good reasons: 1.) If your reading this post your probably just buying a VPS for pocketmine right? No need for apache and all those programs that you won't use. 2.) It uses LESS resources which can be used for PocketMine! Both of these should help if you have a smaller VPS with less ram.

    Step Two: Installing PocketMine
    =========================
    So your ready to start pocketmine eh? It's pretty darn simple. First off before you do anything you must make a new user to install PocketMine and all its goodies. Follow the commands below
    Code:
    adduser <UserNameHere>
    
    passwd <username>
    
    After you have made a new account you must now login to that account and officially install PocketMine!
    Code:
    Run these commands:
    
    dependencies:
    perl gcc g++ make automake libtool autoconf m4
    
    PM itself:
    wget -q -O - http://get.pocketmine.net/ | bash
    Once that is done go through the setup and your good to go. One thing that I found was if you are not on your root account you must use "sudo ./start.sh" or else any players that join will have their IP blocked for ten miniutes.

    Step Three: Your firewall
    ===================
    Chances are your VPS came installed with a nice shiny Firewall! My suggestion is install a different firewall such as CSF. This firewall basically drops useless packets and blocks brute force attacks( We will get into this later). If you would like to install CSF click here . If you have CSF or not you will need to accept incoming connections to your server. By default you must allow port 19132 or your players will never even get to see your glorious builds. Simply google how to allow ports on your specific firewall and now you can accept players into your server.

    Step Four: Security
    ===================
    Yup security. Eventually someone is going to get "upset" and attack your server in some way. There are various types of attacks but I will list a few. Above I mentioned brute force attacks. This is when someone tries to login to your root account several times. There are a few ways you can protect yourself. One really good way is to change your ssh/ftp port. Instead of having thousands of failed login attempts simply change your ssh port. Again this can vary depending on your firewall. Google how to change your port on your specific firewall and you will have little to no failed login attempts. Another attack is a ddos attack. These can be annoying. It happens when someone is sending you tons of useless packets to your server which eventually will lag your server and bring it offline. Depending on your VPS company they may offer protection as well or even reroute the attack to their network. Please be aware the second will bring your vps offline and most companies won't take huge attacks or a lot of attacks. It is likely they will shut you down without warning if you aren't careful. Purchasing Ddos protection will defiantly add security to your server
    ==================
    This is how you install and run PM on your VPS. These are my suggestions from my personal experience. Hopefully this helped anyone who needs it :)
    bewildered12 likes this.
  2. xFlare
    Offline

    xFlare Active Member Plugin Developer

    Joined:
    Sep 28, 2014
    Posts:
    199
    Plugins:
    1
    Minecraft User:
    xFlare
    If you want to get a VPS that is not overloaded don't buy one from the first page of Google!
    Last edited: Mar 17, 2015
    applqpak, AndrewBit, icsmoke and 6 others like this.
  3. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    252
    Minecraft User:
    RekkuzaRage
    OpenVZ VPS are cheap and crap. Both KVM and Xen VPS are very good even though they may cost a bit more.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I'm feeling lucky.
    Legoboy0215 likes this.
  5. xFlare
    Offline

    xFlare Active Member Plugin Developer

    Joined:
    Sep 28, 2014
    Posts:
    199
    Plugins:
    1
    Minecraft User:
    xFlare
    OpenVZ by it's self is good. Hosts tend to over sell. ;-;
  6. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
    You should not run PocketMine-MP with sudo!
    https://pocketmine-mp.readthedocs.org/
    hoyinm14mc and PEMapModder like this.
  7. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    I run PM on root... When I don't every player that tries to join gets their IP blocked by RakLib
  8. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    lol i agree :D
    And also on lowendbox offers. they are pretty catchy with low price but the same way they oversell their nodes.
    xFlare likes this.
  9. xFlare
    Offline

    xFlare Active Member Plugin Developer

    Joined:
    Sep 28, 2014
    Posts:
    199
    Plugins:
    1
    Minecraft User:
    xFlare
    Just like digital ocean, they oversell. Some of there names seem convincing too like "ramnode".
  10. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    I just bought a Ramnode kvm... Much better than their OpenVZ servers
  11. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
    Sounds like a permission problem. Make sure all files and directories are owned by the pocketmine user.

    Code:
    chown -R <user> <directory>
    chown -R pocketmine ~/pocketmine
    
  12. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    Thanks I'll give it a try
    GodittoServers likes this.
  13. GodittoServers
    Offline

    GodittoServers New Member

    Joined:
    Mar 2, 2015
    Posts:
    4
    Minecraft User:
    Andrewbit4
    Omg.
    I bought a OpenVZ RamNode server.

    When this month finish I gonna buy a new kvm server.
  14. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,747
    Minecraft User:
    Legoboy0215
    I think you should add a chapter about how to host the server 24/7
  15. Pman1220
    Offline

    Pman1220 Active Member Plugin Developer

    Joined:
    Nov 21, 2013
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Pman1220
    A VPS is 24/7. If your talking about screen, then yes I'll add it.
  16. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,747
    Minecraft User:
    Legoboy0215
  17. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,747
    Minecraft User:
    Legoboy0215
    Sorry. I meant host a pocketmine server on a vps 24/7
  18. Player7221
    Offline

    Player7221 New Member

    Joined:
    Feb 15, 2016
    Posts:
    33
    Guide is nice, but you can update this tutorial "how install php7.0 and pocketmime 0.14.0 for debian"?
  19. Goerick
    Offline

    Goerick Active Member

    Joined:
    Jan 24, 2014
    Posts:
    252
    Minecraft User:
    goerick
    You should mention screen. Also for security on ports go with port knocking.

Share This Page

Advertisement