Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Install and Use Apache2 Server in Termux
- *************************************************************
- Telegram post: https://t.me/efxtv/3256
- *************************************************************
- STEP 1 - Install apache2
- $ pkg install apache2
- STEP 2 - Start the apache2 server
- $ apachectl
- - Visit to view the server http://localhost:8080
- - Path for server files $PREFIX/share/apache2/default-site/htdocs
- STEP 3 - Stop the apache2 server
- $ apachectl -k stop
- NOTE: To get the links via ngrok
- - enable WiFi + hotspot (android 13)
- - enable mobile data + hotspot (below Android 13)
- How to share files from termux to other devices using apache2 (LOCALHOST)?
- Ans. Follow the steps to share the files using apache2 in termux or watch the video here.
- 1. Copy the file from /sdcard to the htdocs directory
- $ cp /sdcard/file.txt $PREFIX/share/apache2/default-site/htdocs/manual
- 2. Visit the link to Download the file
- $ http://localhost:8080/manual
- How to access the apache2 server out of the network?
- Ans. Follow the steps to share files using apache2 (WAN)
- 1. Signup to ngrok.com or use the EMSF tool
- 2. Apache2 must be running and copy paste
- $ ./ngrok http localhost:8080
- 3. Visit the link to access and download the files.
- $ https:// abc***.ngr ok.io/ manual
- - Use the EMSF tool by EFX Tv
- 1. use command to install ngrok and Cloudflare
- $ emsf ngrok
- 2. Delete the ngrok binary from home
- $ rm ~/ngrok
- 3. Start server on custom host and port
- $ emsf server > linkgen > custom
- enter ip and port
- 4. Visit the Cloudflare link
- https:// cf****. com /manual
- WATCH FULL VIDEO HERE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement