As we know, android is a very smart device that allows users to use lots of things on it. Today we are going to share a method that will help you create a Local Web Server on your Android where you can test your codes. Go through the post to know about it.
[dropcap]T[/dropcap]oday for android users we are here with How to Set Up a Local Web Server on Any Android. Android is a very smart device that allows users to use lots of things on it. Till now, we have discussed lots of hacks and tricks for android. Similarly, we are here talking about how to setup a local web server on your android device which is not a big deal. You can debug your apps, scripts and see your web pages that you code and lots of things that you want to test before putting it online. Therefore, you need a local server where you can test out your codes and for that, you will have to follow the complete guide below to set up this local server on your android itself.
How to Set Up Local Web Server On Any Android Device
The method is little time taking and will allow you to set up the web server on your device where you can even install local editors like WordPress etc and you can work on them in your android device very easily. So have a look on some simple steps below to proceed.
Steps to Set Up a Local Web Server on Your Android
Step 1. First of all, you need to download and install a cool android app that is KSWEB: server + PHP + MySQL in your device. Now move to the address localhost:8080 in your android browser and there you will see default page of KSWEB.
Step 2. Now 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. Now after setting up different username and password for you local server you are done with setup local machine control and now time to set up phpMyAdmin.
Step 4. Now move ahead to KSWEB app and then there in tools tab install phpMyAdmin and download it which will be around 7MB.
Step 5. Now 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 and leave the password field blank and logged in, And after logging its recommended to change the password.
Step 6. Now if you want to change the default path of root folder then 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 any different path.
That’s it! you are down, now your local web server is ready to run your sites, apps and lots of scripts that you wish to test before taking them online.
Also Read: How to Access Ubuntu PC From Android Phone
So above is all about How to Set Up a Local Web Server on Any Android. With this step by step guide for installing the local web server on your android, you can easily setup this server on your device and can test your files offline on your android’s server. Hope you like our work, do share it with others too. Leave a comment below if you have any related queries with this.