# How to host & develop website locally on Android phone using | Full Tutorial

**URL:** <https://onehack.st/t/how-to-host-develop-website-locally-on-android-phone-using-full-tutorial/86971>\
**Category:** Tutorials & Methods\
**Tags:** tips-tricks, hosting\
**Created:** [May 17, 2020, 1:21am UTC](https://onehack.st/t/how-to-host-develop-website-locally-on-android-phone-using-full-tutorial/86971 "2020-05-17T01:21:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jenna](https://onehack.st/user_avatar/onehack.st/jenna/32/166322_2.png) [@Jenna](https://onehack.st/u/Jenna)\
**Post date:** [May 17, 2020, 1:21am UTC](https://onehack.st/t/how-to-host-develop-website-locally-on-android-phone-using-full-tutorial/86971/1 "2020-05-17T01:21:23Z")

</div>

As we all know developing website online even with free server is a kind of expensive with data charges, and there are plenty of hosting companies out there, some expensive, some not. Some are dependable, some have terrible up time, and some simply shouldn’t be allowed to offer hosting. Even after looking through a list of some of the best options, finding the perfect hosting company can be a rather difficult thing to do. So why not host your site yourself even on android?

Thanks to your Android device’s capabilities, you can host a website by yourself. Note this is not meant to be the perfect solution for anyone and everyone. But, it’s helpful for developers who want to test their website or people who want to learn and test capabilities of their Android.

Here are the steps in developing and hosting a website with Android device:

# Set up the Server

1. Install and run [PHPRunner](https://m.apkpure.com/phprunner-php-ide/ua.naiksoftware.phprunner)to your Andriod device. I recommend PHPRunner because, the app’s full version to keep your site running is free and ease of installation. Other alternatives include [My FTP Server](https://play.google.com/store/apps/details?id=com.droidcreation.myftpserver&hl=en) (Free), [KSWEB](https://play.google.com/store/apps/details?id=ru.kslabs.ksweb&hl=en)(premium) and [Pixel Media Server](https://play.google.com/store/apps/details?id=com.cmc.dms) (Free). For the purpose of this article we will be using PHPRunner.

 ![Screenshot_20190618-133635-169x300](https://onehack.st/uploads/default/original/3X/a/4/a4cf50ed695c9778581467b13bc0b2f42f05911b.png)

1. Once opened, click on the **Install** button, a dialog showing the downloading of necessary files will popup, don’t worry this doesn’t involve data charges, it is offline.

 ![Screenshot_20190618-195321-169x300](https://onehack.st/uploads/default/original/3X/c/7/c793e04bc9f90a8cd54f2f3b3de6f0fa74066586.png)

1. Now, click on **Root Folder** , and select the folder you wish to install your website files, usually the one end with **/htdocs,** or you can set your own path, but I recommend /htdocs.

> If it gives error showing, “On a flash drive does not have access rights, the phone memory has” click [here](http://wikihowdone.com/how-to-develop-and-host-a-website-with-android/:how%20to%20fix) on how to fix error: [On a flash drive does not have access rights, the phone has or open failed: ENOENT (No such file or directory)](http://wikihowdone.com/how-to-fix-error-on-a-flash-drive-does-not-have-access-rights-the-phone-has-or-open-failed-enoent-no-such-file-or-directory-phprunner/)

 ![Screenshot_20190619-170950-169x300](https://onehack.st/uploads/default/original/3X/e/1/e1f9e29a0ea36b175532fa5d44f4cd74c0a1ed87.png)

1. Click on **Start** button to start Apache, click on **Download PhpMyAdmin** to download files for managing database.

> If it gives and error saying “open failed: ENOENT (No such file or directory)”[click here](http://wikihowdone.com/how-to-fix-error-on-a-flash-drive-does-not-have-access-rights-the-phone-has-or-open-failed-enoent-no-such-file-or-directory-phprunner/) on [On a flash drive does not have access rights, the phone has or open failed: ENOENT (No such file or directory)](http://wikihowdone.com/how-to-fix-error-on-a-flash-drive-does-not-have-access-rights-the-phone-has-or-open-failed-enoent-no-such-file-or-directory-phprunner/)

 ![Screenshot_20190618-194521-169x300](https://onehack.st/uploads/default/original/3X/f/4/f4c745750581d428461f4a992481c6bcd450f55a.png)

1. If you click on **Site editor** button, your browser should show information on the version of PHP you just install, this is because, you have no starting file like **php** or **index.html** , meanwhile you have successfully setup web host on your Android device.

 ![Screenshot_20190618-200723-169x300](https://onehack.st/uploads/default/original/3X/e/2/e21a2dee0e12e42a52195f86b550119ed5546470.png)

#### **Making your Server accessible though the Web**

You can enter the address **[http://localhost:8080](http://localhost:8080)** on any web browser like Chrome and Mozilla.

To development a website, you have to have the following tools: PHPRunner as guided above, Text editor like Quoda, Notepad++, and web browser.

1. Now, go to your File Manager and locate htdocs on your internal memory, here you will find the **phpmyadmin** folder and the **php** which is the starting file.

 ![Screenshot_20190618-201748-169x300](https://onehack.st/uploads/default/original/3X/9/c/9c468b8bcaa3af0f672c8ff07618ac9caec16fb7.png)

1. Open and edit the index.php file with your text editor to this simple php syntax.

`<?php`  
`echo “Hello Hello!”;`  
`?>`

Save the file, and the result should be:

 ![Screenshot_20190618-202247-169x300](https://onehack.st/uploads/default/original/3X/2/d/2df0fbc4f853908f73aeda79853abd90af3a661a.png)

1. That’s, all you have successfully setup website on your android device and test run simple php syntax.

`Source: wikihowdone`

# How to Install WordPress Locally on Android Phone

> **[How to Install WordPress Locally on Android Phone](https://www.geekinstructor.com/2020/01/install-wordpress-website-android.html)**
>
> This step-by-step guide will guide you how to install WordPress website on your Android phone by creating a local web server, PHP and MySQL database.

## Extra

![](https://img.youtube.com/vi/FwBK23R0UuA/maxresdefault.jpg)https://www.youtube.com/embed/FwBK23R0UuA?feature=oembed&wmode=opaque
