Skip to content

ItzxDwi/AndroidPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

🐘 PHP Binaries for PocketMine-MP on Android

Build PHP Binaries CI

Run PocketMine-MP on your Android device using this pre-built PHP binary.

  • ✅ Works in Termux
  • ♻️ Auto-updated every 48 hours
  • 🛠 Built for ARM64 devices

✅ Requirements

  • Android 64-bit device
  • Termux

🚀 Installation

1. Install Termux and curl

pkg install curl

2. Create your server folder

mkdir -p ~/server/bin/php7/bin
cd ~/server/bin/php7/bin

3. Download the PHP binary

curl -L -O https://github.com/ItzxDwi/AndroidPHP/releases/latest/download/php
chmod +x php

4. Download PocketMine-MP

cd ~/server
curl -L -O https://github.com/pmmp/PocketMine-MP/releases/latest/download/PocketMine-MP.phar
curl -L -O https://github.com/pmmp/PocketMine-MP/releases/latest/download/start.sh
chmod +x start.sh

5. Start the server

bash start.sh

❓ FAQ (Frequently Asked Questions)

Q: Can I run this on any Android device?

A: Yes, as long as your device is 64-bit

Q: How do I update the PHP binary?

cd ~/server/bin/php7/bin
rm php
curl -L -O https://github.com/ItzxDwi/AndroidPHP/releases/latest/download/php
chmod +x php

Q: How do I update PocketMine-MP?

cd ~/server
rm PocketMine-MP.phar
curl -L -O https://github.com/pmmp/PocketMine-MP/releases/latest/download/PocketMine-MP.phar

🛠 Common Troubleshooting

❌ Error: has unexpected e_type: 2

You're likely using Termux from Google Play Store, which doesn't support running native binaries.

Fix: Uninstall Termux and reinstall it from F-Droid or GitHub

👉 More info: Reddit thread

Permission denied when running php or start.sh

✅ Fix: Make sure that the files have the right permissions:

chmod +x php
chmod +x start.sh

start.sh: ./bin/php7/bin/php: not found

✅ Fix: Make sure that the PHP binary is correctly placed in this path:

~/server/bin/php7/bin/php

Made with ♥️