Latest hacking and mod apps, Games coming soon ! so stay connected with us.

How to install Apache2 in Termux - Termux Tutorials


How to install and use apache2 in Termux

What is Apache HTTP server?

Apache server is a free open source platform for web server .Apache servers copies run on Linux distributions.2.0 version of Apache server supports for non-Unix operating systems. Such as windows. Developed of Apache Server began in early  1995 after after work on the NCSA code settled. Apache supports a variety of Features ,some common languages interfaces support
Perl, PHP, Python, and Tcl.

Apache 2 available on Kali Linux, Ubuntu, windows, But we can install and use Apache HTTP server on our Android Devices by using Linux emulator called Termux.

Apache server is used to file transfer, locally site hosting and many more. Basically Hackers used Apache server for file transfer and for creating Phishing pages.

We can Run BWAPP and DVWA vulnerable we applications. these DVWA and BWAPP are vulnerable web applications for practice how web sites vulnerabilities are works and how hackers exploit our websites. So we can practice and stay update.

We can install WordPress, Drupal, Joomla, site locally in Apache 2 server.


How to install and use Apache 2 in Termux ?

Follow these steps to install apache2 server in Termux

➤  go to play store and search Termux and install termux app . Now open Termux and update termux with this commands

    apt update

  apt upgrade

Now install Apache 2 server with this command : apt install apache2

 If you guys want to move any file in Apache location .remember Apache directory is this

/data/data/com.termux/files/usr/share/apache2/default-site/htdocs/

For example I have read.txt if you want to move this read.txt to Apache directory then I use this command

mv read.txt /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/

Now read.txt file is moved in apache2 location we can start Apache now.

To start apache2 server in Termux type this command : apachectl

Now open browser and type localhost:8080 to check this is working or not. 100% it works.
Now i want to access that read.txt file with browser I will type this command :

localhost:8080/read.txt

so this is the process to install and use apache2 server on our Termux app.

That’s it guys.


Previous
Next Post »