If you are a developer who moves around a lot and will probably like to get some work done even when you’re not with your PC, then this guide will help you Setup Local Web Server On Android device.
If you want to debug your apps, scripts and see the web pages that you code and any stuff that you want to test before putting it online, Then you need a local server where you can test your codes. It’s not too difficult to set up the web server on your device and you can even install local editors like WordPress, joomla etc. so follow the guide below…
How to Set Up Local Web Server On Any Android Device
Step 1. First of all, you need to download and install an android app called KSWEB: server + PHP + MySQL on your device. then go to the address localhost:8080 in your android browser and you should see the default page of KSWEB.
Step 5. after installation, you will able to navigate to phpMyAdmin at the address 127.0.0.1:8000. Your default username of this admin panel is root. leave the password field blank and logg in.
And after logging its recommended to change the password.
Step 6. if you want to change the default path of root folder, you can do that also as the default path is /mnt/sdcard/htdocs and you can change by visiting Lighttpd tab and then setting up a different path.
That’s it! you are done, now your local web server is ready to run your sites, apps and any scripts that you wish to test before publishing online. If you have any questions, comment below.