apache2 - installing


first update and upgrade

$ apt update

$ apt upgrade

Now install apache2

$ apt install apache2

apache2 path =

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

for Example i have a file read.txt now you must move this file to apache2 path then type this command :

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

Now start apache2 service with this command :

$ apachectl

Now opn browser and type :

localhost:8080

It shows IT WORKS !

Now access read.txt file with browser then type this command:

localhost:8080/read.txt

If you want to stop apache2 service then close termux application it will stop.

That's it.

Comments

Join us: t.me/Xpykerz

Share And Support