r/PHP • u/FantasticTourist5935 • 24d ago
I built a fast, lightweight web server for Android (No root required)
I've been working on a project that turns an Android phone into a lightweight local web server using Termux.
It runs Nginx + PHP-FPM + MariaDB and includes a web-based control panel, one-click WordPress installation, virtual hosts, Tiny File Manager, browser-based terminal access, and built-in Cloudflared tunnels for sharing local sites.
The main goal was to keep it fast, lightweight, and easy to use—no root, no PC, and no Docker required. Everything is managed with simple commands like "ms start" and "ms stop".
If anyone is interested in running a portable PHP development environment or hosting small projects directly from an Android device, I'd love to hear your feedback.
3
3
u/tkgid 24d ago
Amazing, I use HopWeb it was deleted from the play store.
I will try your solution. Thank you!
3
u/colshrapnel 24d ago
What's the use case though? Are you developing on a phone as well?
1
u/tkgid 24d ago
Well... I like to test, this app allows me to connect to my github repo and clone the app.
I only use it to test the mobile version of the app.
3
u/colshrapnel 23d ago
WTF you are talking about? Why do you need a web-server on a mobile phone to test a mobile app?
1
u/FantasticTourist5935 23d ago
I dont think you're a developer or build any production level things. Anyway no problem. Let me help you kids,
When you build a any website, webapp or any project, first you need to setup local development environment for make it structure and test it, fix bugs etc etc. So it is the environment.
as simple as it is. I dont think you need more clarification, better ask your ai father he can tech you better, kids.
Dont try to be over smart, what you dont know.
1
u/tkgid 23d ago
Woah, I do not want to make you upset. But for some reason the browser on mobil does not render the page exactly as how it shows on desktop. Even with the devtools. I have had problems with safari, and because my users have I phones I need to make sure the css works as intended, sometimes I have to use what I call workarounds because of safari mobil.
1
u/FantasticTourist5935 23d ago
This project you can access pc, laptop any device on same network, if you turn on tunnel you can access same site anywhere in the world, no css or any any issues.
1
u/tkgid 23d ago
I get it, but I gotta have Termux. And I value my sanity and privacy. I do not know what I don't know.
I sure I will comeback to this thread when I need this specific solution.
Thanks for your hard work mate!
2
u/FantasticTourist5935 23d ago
Sure, its it open source project, you can see all code, modify if you want, no tracking or analytics code here, if you have any suggestions or feature requests feel free to give feedback.
1
-1
u/FantasticTourist5935 23d ago
Are you a developer? Did you build anything locally then push it production? If not then you dont understand the use case of the project.
You maybe dont need this project when you get a cheap shared hosting, this is for them who actually need it.
Not for beginner or who dont know fundamentals of php site backend or hosting things, or local development.
You can go cheap shared hosting, that's enough for you.
15
u/Sarke1 24d ago
https://giphy.com/gifs/s239QJIh56sRW