So far so good, I am testing on a Samsung S4 running Android 5.1.
I hope to be able to replace the dependency of MySQL with SQLite.
Instructions:
Download Termux https://play.google.com/store/apps/details?id=com.termux
Open Application (termux)
#Update Package manager
apt update
#Install PHP
apt install php
#Install Sqlite
apt install sqlite
#Install composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
cp composer.phar composer
#Install Flarum
composer create-project flarum/flarum --stability=beta
Road Block:
termux/termux-packages255
Without those required php packages, I dont think I can continue. Not to mention without Nginx.
Possible solution to road block:
https://github.com/xiaoqidun/anmpp
Info, needs to be converted from Chinese.
http://youthlin.com/2014473.html
Apparently it requires root permissions.
I'll test it on a rooted S4 as my S5 (phone in use now) stays unrooted for obvious security reasons.