Official php5-cli installation on android by L3n4r0x (php Running On Android Terminal) -> This Repost From My Another Blogs <- You can visit it on http://blog.snfr.cf or http://secretnetworkforces.blogspot.com
Install PHP for Android CLI or Web Server | WMI - https://res.cloudinary.com/dimaslanjaka/image/fetch/https://4.bp.blogspot.com/-3UATHL878wU/WKoXE11tarI/AAAAAAAAFAA/QhBnNJFo5QAiB4C04RKBG9zuFrP2Uhm4gCLcB/s1600/serverphp.jpg

How to install php5-cli in android

Requirement:
  1. Busybox For Programming Support ( Read And See Here)
  2. Terminal Emulator ( Download Terminal Emulator)
  3. php server        Code BB For PHP Server ( Download Server For PHP APK )
  4. Internal min ± 300 MB free
  5. ROOT Explorer ( Download Root Explorer Pro )

Installation:

1. Install Busybox and The Module
2. Install Server Module For PHP and its php
3. Open Terminal Emulator, type the following code this:


su
data="/data/data/com.eminis.server.php"
chmod 755 $data/files/*
chmod 755 $data/lib/*
Or you can also manually set permissions 755 in /data/data/com.eminis.server.php/ all the files in the folder "files" and "lib"

4. Open Root Explorer, open the folder /data/data/com.eminis.server.php/files/, "press and hold" file named php. (See screenshot)

Install PHP for Android CLI or Web Server | WMI - https://res.cloudinary.com/dimaslanjaka/image/fetch/https://3.bp.blogspot.com/-4Vxims5hNn0/WKoef7HN-QI/AAAAAAAAFAQ/mMoYicL08MoveNutmUxI0BCyLHPyOA3uACLcB/s1600/Screenshot_2017-02-09-07-28-29-picsay.png
Click hold, then click on the option menu (top right corner)

Install PHP for Android CLI or Web Server | WMI - https://res.cloudinary.com/dimaslanjaka/image/fetch/https://4.bp.blogspot.com/-qL_df_2RacQ/WKoeooYyN3I/AAAAAAAAFAU/mi7d1QL1JyAMaYaAgZxWUXIf0LmPI8HTgCLcB/s1600/Screenshot_2017-02-09-07-23-51-picsay.png
Click on the options menu, select the "link to this file"

Once the link is copied, immediately go to the dir /system/bin/ (see screenshot)

Install PHP for Android CLI or Web Server | WMI - https://res.cloudinary.com/dimaslanjaka/image/fetch/https://3.bp.blogspot.com/-TkMyPvubUss/WKofgR_YJZI/AAAAAAAAFAc/jnmWoy_Lv149VobN4CVyKrmbGKdKVCeCgCLcB/s1600/Screenshot_2017-02-09-07-24-10-picsay.png
/System/bin/ click I marked above
Done. Try test open the Terminal emulator. Type the following code:
    php -v
    php --help
    
Install PHP for Android CLI or Web Server | WMI - instal-php-cli-pada-android-instalasi/terminal-preview.webp
Installation Results Above

[*] Features:

* Pure PHP v.5.4+ - v.7+ server with modules:
core | session | standard | date | ereg | libxml | openssl | PCRE | sqlite3 | zlib | bcmath | bzip2 | calendar | ctype | curl | dom | hash | fileinfo | filter | ftp | gd | gettext | gmp | spl | iconv | intl | json | mbstring | mcrypt | mongodb | mysqlnd | mysqli | oDBC | pdo | pdo_mysql | pdo_odbc | pdo_pgsql | pdo_sqlite | pgsql | Phar | posix | pspell | recode | reflection | mysql | simplexml | soap | sockets | exif | tidy | tokenizer | WDDX | xml | XmlReader | xMLRPC | XMLWriter | xsl | zip | cli_server | mhash ssh2 | opcache | Phalcon | yaf | yar | iD3 | lzf | oauth | quickhash | bbcode | xmldiff | xdiff | rar | gender | stats | EIO | judy | mailparse | rpmreader | spl_types | yaml | ev | inotify | weakref | xdebug | dba | Imagick

! If you need MySQL or MariaDB Server: Download MariaDB Server For Android
! If you need MongoDB Server - moNERIngAo Server: Download MongoDB Server For Android

Tag: Install PHP cli android, Install PHP Cli for android, How to install php cli on android, android php command line interface.