0

I want to run a PHP MySQL web application on an Android device. The device is not rooted.

Is there any way? If there isn't, can the device connect to a PC's localhost offline?

Andrew T.
  • 15,988
  • 10
  • 74
  • 123

2 Answers2

2

UPDATE AS OF JUNE 2, 2021

Option #1 ( Using CLI-based apks)
BEST OPTION

  1. Termux (Installation of PHP, MARIADB, PHPMYADMIN packages within termux)
  2. Terminal Emulator
  3. UserLand

Option #2 (Using GUI-based apks)

  1. KSWEB
  2. Servers Ultimate


Summary:

  • The above-mentioned apks do not require rooted device.
  • CLI-based apks are highly recommended because a user can use UPDATED version of PHP, Apache, and any other packages you want to install to. The KickWeb apk does support running .php files BUT ,unfortunately, it doesn't have the latest PHP VERSION. Using an outdated version of PHP makes some of your PHP code to throw errors or warnings etc.
0

I have tried KickWeb Server and it works as expected.

Firelord
  • 25,084
  • 20
  • 124
  • 286
Harsh Gundecha
  • 367
  • 1
  • 14