Wednesday, 28 December 2016

Run PHP and MySQL in your Android Phone



To run PHP in your android phone you need to have an Apache Service running 
you can download 
https://play.google.com/store/apps/details?id=com.andi.serverweb&hl=en
or Search for Bit WebServer in Google Playstore
it supports 

LIGHTTPD as Web Server ,
- PHP as PHP Server ,
- MYSQL as MySQL Server ,
- MSMTP as SMTP Client



after installing the application, just start LIGHTTPD and mysql and put your website in www folder in root directory of your android phone.

you can also access phpmyadmin and import your mysql database. 


this will run your php website in your android phone :)

if you are using codegniter and using mod_write there's lighthttpd configuration in the app. just enter this code 

 url.rewrite = (
      ".*\.(js|ico|gif|jpg|png|swf|css|html)$" => "$0",
      "^/(.*)$" => "index.php/$1"
 )


to enable ur rewrite.


No comments:

Post a Comment