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 applic
I am New to android but something sounds wrong about all this.php is a server side scripting language. Now you are going to run around from hot spot to hot spot hosting I guess a web service backed by a mysql database. Do you have a static ip? Mysql is an excellent choice for a low end dbms if sqlite was not already built into droid. Like I said I am New and it's probably me but this just sounds wrong. From the answers I see someone talking about compiling php which would make it no longer script.
If you're open to use something other than PHP/Mysql, Python may be a good option. You can listen to sockets and send info through Python, which is supported through SL4A app.
Apparently CherryPy works on Android: http://www.defuze.org/archives/228-running-cherrypy-on-android-with-sl4a.html
There's Django and probably others, but those may be more complex to set up.
here is some articles regarding cross compiling PHP, Nginx, Lighttpd on arm6
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
Anyway you can read this article how i cross compile for DroidPHP