Setup Local Web Server On Android

0
1064
Setup Local Web Server On Android device

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 2.  Visit the URL 127.0.0.1:8001  that is your admin page and its default username is root and password is also root. After entering admin panel, change your username and password for security reasons.
Step 3. After setting up different username and password for you local server you are done with setup local machine control. Now proceed to set up phpMyAdmin.
Step 4. Next step, go to KSWEB app and then in tools tab, install phpMyAdmin and download it which will be around 7MB.

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.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.