Install Apache in Android Using Termux

To install apache server using Termux in Android, just follow this command.

apt update
apt upgrade
apt install apache2
touch index.html
mv index.html /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/
apachectl

Then open http://localhost:8080 in your smartphone browser.

See video:

Leave a Comment