Apache2 install in Termux | http web server in Android

What is Apache ?

Apache is the most commonly used Web server on Linux systems. Web servers are used to serve Web pages requested by client computers. Clients typically request and view Web pages using Web browser applications such as Firefox, Opera, Chromium, or Internet Explorer.

How to install Apache server ?

Open terminal and type following commands :

  • $ apt update
  • $ apt install apache2

For Ubuntu :

  • $ sudo apt update
  • $ sudo apt install apache2

How to start Apache web server :

  • $ apachectl -k start

For Ubuntu :

  • $ sudo systemctl start apache2

Now apache localhost web server is running on your device.

To stop Apache server type :


  • $ apachectl -k stop

For Ubuntu :

  • $ sudo systemctl stop apache2


Comments

  1. https://www.amotermux.com/2021/09/cómoinstalarApacheenAndroidcon.Html to get acces to index.html

    ReplyDelete

Post a Comment