How to host your own TinyWebDB Instance
This tutorial will help you to host your own TinyWebDB Instance for FREE using an alternative PHP version
This means that you can use any hosting provider or a VPS with a running Apache & PHP server
The tutorial is divided in 4 different sections:
1. Signup into a hosting service
You can skip this step and go to “2. Uploading the files” if you already have a hosting provider or a VPS
One provider that will suit you is AwardSpace, so we’ll use that one for this guide. But you can use any other if they allow API hostings (this means that websites can be accessed with JavaScript disabled basically)
-
Signup into AwardSpace by clicking on the “Give it a try” button
-
Fill the following form with your details (or use a Social Login) and click on Register Now!
-
After closing all Welcome Dialogs, scroll down and click on Domain Manager:
-
Click on “Create a Free Subdomain”, input the desired name for your project and hit “Create”:
-
You are done! In a few minutes your new website will be ready
2. Uploading the files
For this section, we’ll use the File Transfer Protocol (FTP) to upload the files as all hosting providers allow it, and you can easily configure it for your VPS (just run sudo apt-get install vsftpd
if FTP is not yet enabled)
-
First of all, we’ll need to install a FTP Client on our computer to access the files. I strongly recommed FileZilla. For me, it’s the best one due to its simplicity and functionalities.
- For Windows users: Windows x64 or Windows x32
- For Mac OS X users: Mac OS X
- For Linux users: Executesudo apt-get install filezila
Or just Google “FileZilla Clientyour_platform_name
Installation” -
Now we will need the FTP Access Credentials
If you use a VPS, those credentials are the ones used to login via SSH
Let’s go back to AwardSpace. To get those credentials, you’ll need to Login to the Dashboard, and click on FTP Manager
Now create a new FTP Account by filling these textboxes (leaveFTP Path
blank):
Finally, scroll down and click on “Information”
We’ll need theFTP Username
and one of theHostnames
(FTP Password
is the one you inputted before) only -
Open FileZilla, and fill the textboxes that are on the top with this data:
Host:your_website_url
or your hosting provider FTP URL or your VPS IP Address
Username:FTP Username
from the last step or the FTP Username of your hosting provider or your VPS username
Password:FTP Password
from the last step or the FTP Password of your hosting provider or your VPS password of the username
Port:21
if you use a hosting provider or22
if you have a VPS -
Now hit Quickconnect, and if appears check the “Always trust certificate in future sessions” and hit “OK”:
-
You’ll see these new folders:
Access toyour_website_url
(if you are using a VPS go to/var/www/html
) folder (it can sometimes bepublic_html
orpublic
) and delete ALL its files (except the..
folder) -
Now download this ZIP file
Extract the ZIP, navigate toTinyWebDB-PHP-master
and you’ll see the following files:
You need to upload the following files:.htaccess
,database.txt
,getvalue.php
andstoreavalue.php
. Select them and drag to the FTP Client to upload
It should look like this:
3. Configuration
- In FileZilla, make right click to
database.txt
and click on “File permissions…”:
You need to make the new dialog like this:
What is important is the Numeric value, which should be 666
Hit “OK” and configuration will be done for hosting providers
- If you are using a VPS, you will need to allow HTAccess Override and Mod Rewrite Module manuall
Login via SSH and:- Execute
sudo nano /etc/apache2/apache.conf
and browse to a block of code like this:
You need to change theAllowOverride None
toAllowOverride All
After this, hit Ctrl+X, Y and Enter - Execute
sudo a2enmod rewrite
- Execute
sudo systemctl restart apache2
- Execute
4. Kodular Creator setup
-
In all TinyWebDB Components, you need to change in Properties the Service URL to the URL of your service or the IP of your VPS. In my case, it is
http://tinywebdb-php.epizy.com
-
Enjoy your own TinyWebDB Service!
I hope this tutorial will help some users to host their own TinyWebDB Service using our modified version in PHP
You can suggest any change to this tutorial