Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building Android app for running PHP and MySQL on Android Tablet

I want to run PHP + MySQL server on my Android Device. People seem to suggest applications like KSWeb and Bit Web.

Other solutions suggested are that I install an application that allows me to run Linux on Android. This requires the Android Device to be rooted. :(

I don't want to use any other application for this. So I would like to build an application similar to KSWeb myself. I have searched around for how to start building such application but it has not helped so far. Any guidance on how to go about this?

I mean how is it possible for KSWeb to build something like this, without root. :O

Any guidance on how to go about building this application would be very helpful.

Somewhere I was told to get the binaries compiled for ARMv6, but I don't know how to start.

Can NDK be of any use to me?

Please Help.

like image 515
Manu Avatar asked Sep 26 '13 12:09

Manu


1 Answers

I am currently maintaining free and open source web server solution stack package, consisting mainly of the Lighttptd HTTP Server, MySQL database, PHP programming languages. It is still at beta stage.

It can give you a basic idea about how to develop this type of stuffs in android.

Yes, its true binaries must compiled for ARM CPU in order make file executable.

And you can use NDK but i recommend you to go with alternatives like CodeSourcery or Linaro

Here some starter tutorial for cross compiling Linux program to ARM

  • ARM cross-compiling
  • Cross compiling static C hello world

Anyway you can read this article how i cross compile for DroidPHP

  • Cross Compiling for DroidPHP
like image 69
Shushant Avatar answered Nov 15 '22 19:11

Shushant