1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Installing a PMMP on debian\vps

Discussion in 'Help' started by Juqxi, Feb 15, 2017.

  1. Juqxi

    Juqxi Spider Jockey

    Messages:
    33
    Hi, in this tutorial I will explain how to setup a PocketMine server on your VPS.
    If you are a newbie about that, I suggest you to learn for understanding this tutorial.
    NEEDED THINGS:
    1.SSH PROGRAM (PuTTy is good program) or console to your vps
    2.SFTP/FTP PROGRAM(YOUR DECISION I RECOMMEND WinSCP)
    3.ABOUT 20 MINUTES TIME
    4.HAVE MINIMUM ONE FINGER TO COPY CODE




    Run the following commands:
    Code:
    Code:
    apt-get update
    
    Code:
    Code:
    apt-get install gcc g++ make automake libtool autoconf bison
    
    Now create an account to dont have server on root:
    Code:
    Code:
    sudo adduser pocketmine
    
    Then say:
    Code:
    Code:
    logout
    
    now open your ssh program and login using your login and password what u just created:
    When it done do that to create a folder for your server:
    Code:
    mkdir <type your folder name>
    cd <folder name which you just created>
    
    Code:
    Code:
    wget -O - get.pmmp.io | bash -s - -t poggit.pmmp.io/get.pmmp -v custom
    
    That will download and install PocketMine with PHP7 in your VPS. It will take about couple of minutes.



    All is finished, to run your server you need to:
    Code:
    Code:
    ./start.sh
    
    To stop it, just type in the console:
    Code:
    Code:
    stop
    
    If you want to keep the server 24/7, you need to install "screen":
    Code:
    Code:
    apt-get install screen
    
    And then , you need to open the start.sh with screen
    Code:
    Code:
    screen ./start.sh
    
    You can close the console window if you run:
    Code:
    Code:
    Ctrl A + D
    
    If u want back to console of the already running server just say:
    Code:
    Code:
    screen -r
    
    Optional, if you want to the server reboot when running "stop" Like in some softwares Type that:
    Code:
    Code:
    apt-get install nano
    
    Code:
    Code:
    nano start.sh
    
    Then use ur arrows and change in LOOP, "no" to "yes" and you save changes with Ctrl X (to confirm type "y").
    Then u can use for example WinSCP or other sftp programs and login into your account what u created and here u can modify your server
    Hope me help anyone :)
     
    Last edited: Feb 15, 2017
  2. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    I guess that's one way, although it's a lot easier just to run this command:
    Code:
    wget -O - get.pmmp.io | bash -s - -t poggit.pmmp.io/get.pmmp -v custom
     
  3. Juqxi

    Juqxi Spider Jockey

    Messages:
    33
    i Will change that :)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.