Setting up a Server - randomblink/PocketMine-MP GitHub Wiki

Choose your OS and follow the instructions to get started.

When you successfully installed the server check the documentation for more information.

Windows Vista / 7 / 8 / 2008 Server / 2012 Server

  • Download and run the PocketMine-MP Installer from the homepage

Step 2

  • Run "start.cmd", or start "PocketMine-MP.php"
  • Close it typing "stop" in the Console
  • Edit the server.properties to suit your needs

Instructions for Linux / Raspberry Pi

Step 0 - Dependencies

  • You may have to install perl, gcc, make, automake, libtool, autoconf and m4. If you want to compile from x86_64, you may have to install gcc-multilib. Try doing the Step 1 first to see if you need them.

  • Debian (Ubuntu, Linux Mint, Raspbian and others) users can install these dependencies running this as root: apt-get -f -y install && apt-get -y install m4 automake autoconf make gcc libtool

Step 1

  • curl -sL http://cdn.pocketmine.net/installer.sh | bash -s -
  • If the above does not work, use wget -q -O - http://cdn.pocketmine.net/installer.sh | bash -s -

Step 2

  • Run ./start.sh
  • The server starts and creates all default files
  • Close it typing "stop" in the Console
  • Edit the server.properties to suit your needs

Step 1

  • Open the Terminal
  • Run curl -sL http://cdn.pocketmine.net/installer.sh | bash -s - -v master

Step 4

  • Type ./start.sh
  • The server starts and creates all default files
  • Close it typing "stop" in the Console
  • Edit the server.properties to suit your needs

You must be rooted (or at least partial-rooted) and with a way to drop files and open a Terminal console. You may be able to run this without rooting, but you can't run binaries from the SD Card

Step 1

  • Grab the stable or development release of PocketMine-MP and place it into a folder in your computer.

Step 2

  • Download the latest PHP_5.X.X_Android_ARMv7.zip and extract it into the folder where you placed PocketMine-MP. The bin/ folder should be where PocketMine-MP.php is.

Step 3

  • Create a folder in your Android device under /data/local being root.
  • Copy the PocketMine-MP folder from your computer to that folder you've just created in your Android device.

Step 4

  • Open the Terminal and go to that directory. Do chmod 0755 bin/php
  • Go to the place where you want to install PocketMine-MP (using cd)
  • Run bin/php PocketMine-MP.php in that folder from the terminal. The server should start. You can't use the start.sh script unless you modify it.

Your device must be jailbroken in order to run the server.

Step 1

  • Add http://cydia.pocketmine.net to your Cydia sources
  • Install PHP 5.5 for PocketMine-MP

Step 2

  • Install MobileTerminal or OpenSSH
  • Start the Terminal app or connect with SSH to your device
  • Now you can run the server with /var/mobile/Media/PocketMine-MP/start.sh

Note: When you close the terminal session the server will also stop running. Use screen to keep it running in the background.

PocketMine-MP is installed in /var/mobile/Media/PocketMine-MP/.