How to install and host WordPress locally on your Android Phone (For none PC users)
Welcome to the next tutorial on how to use WordPress. On our first post, we wrote that we will be doing a complete WordPress tutorial, you can read the post HERE, and on our previous post, we talked about how to install and host WordPress locally on your PC, without using WAMP, MAMP, LAMB or XAMPP, you can read the previous post HERE. We also wrote that our next post would be centered on how to use WordPress dashboard tools, but while preparing the post, one of my students asked me if it were possible to host WordPress locally on an android phone. Now, while the question might sound lame to some who didn't think it was possible, to me, it sounded like a pretty good question and an idea, because it made me flash back to when my computer was faulty, and i was forced to discover a new method of hosting and managing WordPress locally on my android phone.
Hosting WordPress locally on your android phone can be useful if you do not own a PC, or if you want to play around with WordPress, learning new things on the go. The process of hosting WordPress locally on an android phone is quit straight forward and simple, and we are going to go through every step of it with screenshots.
1. Android Version: 4.5 or higher
2. Storage space: At least 150 MB
3. ZArchiver: Android app
4 Bit web server: Android app
Before we proceed, make sure you are browsing this website with your android phone, because you will be downloading necessary apps to your phone.
- Download & Install ZArchiver
- Download & Install Bit web server
- Download WordPress
- Start using wordpress
The first step is to install Zarcher File manager app to your phone. Open your Google PlayStore, search and install zarchiver app. After installing, proceed to the next step, which is to download and install Bit web server android app. This is not on Google Playstore but here's the download link: download-Bit-web-server. After downloading and installing the Bit web server, then proceed to download WordPress. Now, there's a little bit of problem, which is, the latest version of WordPress 5.4, doesn't support the latest version of Bit web server. The solution? Download WordPress 5.1.4. Visit: www.wordpress.org/download/releases/
When on the page, look for version 5.1.4 and click on zip to start the download. Check below screenshot for example.
Clicking on the zip will start the download. After downloading WordPress, go to the menu on your android phone, look for the Zarchiver app you installed earlier and open it. Once opened, you will see all the folders on your phone, but we are not focusing on all the folder, are we? So we are just going to click through the necessary ones. To proceed, look for your download folder and open it.
Now look for the WordPress zip file you downloaded earlier. The file name should look like wordpress-5.1.4.zip as seen on the screenshot below.
Now click on it and select Extract to ./<Archive name>/
After the extraction, scroll to the top of the screen, you should see a new folder named wordpress-5.1.4, click on it to open the folder.
Inside the folder, you will see another folder named just WORDPRESS. This folder contains all the necessary files you need for your website, and this folder name WORDPRESS will serve as your website's URL, unless you want to change it to something else, but on this tutorial, we are leaving the folder name as it is. You do not have to open the folder, all you have to do is to copy the folder into another folder named WWW. To do this, click and hold on the folder, a slide-up will show, click on copy.
After you've copied the folder, click on the folder with green arrow, which is above the WordPress folder.
After you've clicked on the folder, it will go back to the download folder. You have to click on it again to take you back to the screen containing all the folders on your phone. Now scroll and look for the WWW folder.
When you have located the WWW folder, open the folder and click on the paste icon on the bottom right of the screen as seen below.
Clicking on that icon will paste the copied WORDPRESS folder to the WWW folder. You can see the WORDPRESS folder right inside the WWW folder from the screenshot below.
Now we are through with this part. You have successfully installed Zarchiver, Bit web server and WordPress. We have also moved the WORDPRESS folder to the WWW folder. Proceeding to the next part, open the Bit web server you installed earlier. After the installation of Bit web server, the app name will automatically change to DAILY UPDATE SERVER. So don't get confused when you are seeing this. Locate the DAILY UPDATE SERVER app on the menu of your android phone. Once seen, click to open the app. On opening the app, you might see a screen like the one below.
Just click on the back button of your phone to clear that off. Now on the next screen you will see two toggle buttons and another two buttons with the names, LOCALHOST and PHPmyADMIN. The two toggle buttons are all you need to control the Online and Offline of your local host. Usually, when you want to access your WordPress website to start developing, you will toggle ON those buttons, and toggle OFF when you are done developing, as this could drain your battery if left ON and running. The LocalHost button is used to access our website, and the PHPmyADMIN button will only be used once, and that's to create a new DataBase for our WordPress site.
let's click on the PHPmyADMIN button to create a new DataBase. Make sure those two buttons are toggled ON before clicking the PHPmyADMIN. Once you have clicked on the PHPmyADMIN, a new page will open from your default internet browser, which will ask you to login to PHPmyADMIN. The default login detail is: (USERNAME: root ) and (PASSWORD: empty). Use "root" as the username and the password box should be empty. After filling the username, clear out the password field and click "GO" just as seen on the screenshot below.
Once logged in, you will see a link on the top right corner of the page with the name as NEW.
Clicking on the link will display a box with the name CREATE DATABASE. Now put any name you like. In our case, we named ours wp_data, you can name yours anything you like, but keep it simple and short, also make it easy to remember because we will need it in other to connect WordPress with the Database. Once you are done choosing the database name, click on the CREATE button.
Once you have seen a successful message (and you should) then you have successfully created a database. Now visit: localhost:8080/wordpress/ from your browser. If everything works well, you should see a page like the one below.
If you see an error message instead, then it might likely mean that your LocalHost is turned off. In that case you have to open the DAILY UPDATE SERVER to toggle ON the WEB SERVER and DATABASE SERVER, then go back to your internet browser and refresh it. You should now see a page like the one above. Now select your preferred language and click on the Continue button to proceed. Now the next page will display list of things you need to know before proceeding to the next page.
Just scroll down and click on the "LET'S GO!" button as seen below.
The next page is where we need to enter those required information. Just as seen from the screenshot below, you need to input the database name which was created earlier. Our own database name is wp_data. You need to type-in yours according to how you named it when creating a new database.
Remember that the Username should be "root" and the Password box should be left empty. Now if you scroll down, you will see that the Database Host and Table Prefix has already been set as LOCALHOST & WP_ , respectively. You shouldn't change anything in those Database Host & Table Prefix, just leave them as there are and click on "SUBMIT" just as seen below.
After submitting, a page like the one below will come up. You need to click on "RUN THE INSTALLATION" button
On clicking the "RUN THE INSTALLATION" button, another page like the one below will appear. Just scroll down to fill the information required.
On the Site title, you need to choose the title of your website. We named ours "WP Dixcus" you can name yours anything you like. Next you need to set your WordPress Admin dashboard login details. You can choose any name for this, then set your password. After choosing your password, scroll down the page to put an email address. That's all you need for this page, so click on "INSTALL WORDPRESS" button.
Congrats! You have successfully installed WordPress locally on your phone. Now click on "LOGIN" to login to your admin dashboard.
On the admin login page, you need to put the username and password you set earlier then click on "LOGIN"
Welcome to your dashboard, AKA Control Panel. Now let's visit our website to see how it looks.
Not looking tool pretty, right? That's because we haven't changed the default theme. So just take your time to study the environment, install couple of themes and plugins and design it to your taste. Trust me, there's no limit to the design you can give your WordPress website, and that's the beauty of it.
On our next post we will be studying the admin dashboard tools and their uses. Till then, stay informed!
If you liked our tutorial, then consider Joining our forum for other benefits as a member. Don't forget to leave a comment below.