How to Setup localhost web server in Termux (Termux Tutorial)





Next termux tutorial tool 
MyServer is your own localhost server. you can setup PHP, Apache and MySQL servers on your android devices or linux like Ubuntu etc. MyServer is Developed for android terminal like Termux or GNURoot Debian terminal. You can setup your localhost server and access from internet. you can host your website and test your website

What is Localhost ?


In computer networking, localhost is a hostname that means this computer. It is used to access the network services that are running on the host via the loopback network interface. Using the loopback interface bypasses any local network interface hardware.
The local loopback mechanism may be used to run a network service on a host without requiring a physical network interface, or without making the service accessible from the networks the computer may be connected to. For example, a locally installed websitemay be accessed from a Web browser by the URL http://localhost to display its home page.
The name localhost normally resolves to the IPv4 loopback address 127.0.0.1, and to the IPv6 loopback address ::1

How to Setup localhost web server ?
We can setup localhost web server using different web servers. They are following
  1. Apache2
  2. Nginx
We can use MyServer tool to start localhost web server in linux or Android devices

How to Install MyServer ?

Open the termux app and type following commands.

apt update

apt install git

git clone https://github.com/Rajkumrdusad/MyServer.git

cd MyServer

chmod +x install

sh install if not work than type ./install


Now MyServer is installed successfully.

Now type myserver start to start MyServer.



Use :
Type 1 : to start your localhost web server.
Type 2 : to access your website from internet.
Type 3 : to start MySQL Database server.
Type 4 : to start Manually localhost server.
Type 5 : to Manually host.
Type 6 : to update MyServer.
Type 7 : for server setting.
Type 8 : to about us.
Type x : to exit.



myserver -s -php localhost 8080 /sdcard/www
It will start the php localhost server in your device.


To access localhost server open the browser and type http://localhost:8080 or http://127.0.0.1:8080


MyServer Support :
  1. Apache2 server.
  2. nginx server.
  3. PHP server.
  4. Python web server.
  5. MySQL Database server.
  6. You can setup localhost we server and database server using myserver.
Checkout YouTube Video





Thanks for Reading Our Post & feel free to ask and question regarding this post.
Donate Now
If you like our work and our content then you can support us by donating money.
 If you donate then our services will be available free to everyone and even it helps us to improve our services.
How to Setup localhost web server in Termux (Termux Tutorial) How to Setup localhost web server in Termux (Termux Tutorial) Reviewed by Surjeet Roy on January 10, 2020 Rating: 5

No comments:

To insert a short code, use & lt; i rel = & quot; code & quot; & gt; ... CODE ... & lt; / i & gt;
To insert a long code, use & lt; i rel = & quot; pre & quot; & gt; ... CODE ... & lt; / i & gt;
To insert an image, use & lt; i rel = & quot; image & quot; & gt; ... PICTURE URL ... & lt; / i & gt;

Powered by Blogger.