💻Termux Now Supports Full LAMP Stack on Android
Run a full web server on your spare phone
TL;DR
Termux, the Linux terminal emulator for Android, now supports installing and running a complete LAMP stack. This lets you turn any Android device into a mini web server.
Termux, an open-source Linux environment for Android, has added full support for setting up a LAMP (Linux, Apache, MySQL/MariaDB, PHP) stack directly on your phone or tablet. With just a few commands like 'pkg install apache2 php-fpm mariadb', you can turn any spare Android device into a functional web server capable of hosting PHP-based websites and applications. This is particularly useful for developers looking to test web apps without needing access to a full desktop machine or cloud service.

Key Points
Install Termux from F-Droid; Google Play Store version is outdated (2023).
Update packages with 'pkg update' to ensure compatibility and security.
Start Apache server with 'apachectl start', test at http://IP:8080 in browser.
Create PHP-based websites using git or build from scratch for full flexibility.
Explore additional services like Nextcloud or database servers on your device.
Why It Matters
If you're a developer looking to test web applications without access to a desktop machine, Termux's LAMP stack support is invaluable. It allows you to run Apache, PHP, and MariaDB directly on an Android device, making it easy to deploy small-scale projects or prototypes from anywhere.
Frequently Asked Questions
Why does this matter?
If you're a developer looking to test web applications without access to a desktop machine, Termux's LAMP stack support is invaluable. It allows you to run Apache, PHP, and MariaDB directly on an Android device, making it easy to deploy small-scale projects or prototypes from anywhere.
What happened?
Termux, the Linux terminal emulator for Android, now supports installing and running a complete LAMP stack. This lets you turn any Android device into a mini web server.
Comments
Be the first to comment
Enjoyed this article?
Get it daily. 7am. Free. Reads in 5 minutes.
Join 3,129 builders reading daily.