Advertisement
efxtv

Install and Use Apache2 Server in Termux (share files using termux)

Dec 30th, 2023 (edited)
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | Cybersecurity | 0 0
  1. Install and Use Apache2 Server in Termux
  2.  
  3. *************************************************************
  4. Telegram post: https://t.me/efxtv/3256
  5. *************************************************************
  6.  
  7. STEP 1 - Install apache2
  8. $ pkg install apache2
  9.  
  10. STEP 2 - Start the apache2 server
  11. $ apachectl
  12.  
  13. - Visit to view the server http://localhost:8080
  14. - Path for server files $PREFIX/share/apache2/default-site/htdocs
  15.  
  16. STEP 3 - Stop the apache2 server
  17. $ apachectl -k stop
  18.  
  19. NOTE: To get the links via ngrok
  20. - enable WiFi + hotspot (android 13)
  21. - enable mobile data + hotspot (below Android 13)
  22.  
  23. How to share files from termux to other devices using apache2 (LOCALHOST)?
  24. Ans. Follow the steps to share the files using apache2 in termux or watch the video here.
  25.  
  26. 1. Copy the file from /sdcard to the htdocs directory
  27. $ cp /sdcard/file.txt $PREFIX/share/apache2/default-site/htdocs/manual
  28.  
  29. 2. Visit the link to Download the file
  30. $ http://localhost:8080/manual
  31.  
  32. How to access the apache2 server out of the network?
  33. Ans. Follow the steps to share files using apache2 (WAN)
  34.  
  35. 1. Signup to ngrok.com or use the EMSF tool
  36.  
  37. 2. Apache2 must be running and copy paste
  38. $ ./ngrok http localhost:8080
  39.  
  40. 3. Visit the link to access and download the files.
  41. $ https:// abc***.ngr ok.io/ manual
  42.  
  43. - Use the EMSF tool by EFX Tv
  44. 1. use command to install ngrok and Cloudflare
  45. $ emsf ngrok
  46.  
  47. 2. Delete the ngrok binary from home
  48. $ rm ~/ngrok
  49.  
  50. 3. Start server on custom host and port
  51. $ emsf server > linkgen > custom
  52. enter ip and port
  53.  
  54. 4. Visit the Cloudflare link
  55. https:// cf****. com /manual
  56.  
  57. WATCH FULL VIDEO HERE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement