Skip to content
ZDNET·

💻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.

Termux Now Supports Full LAMP Stack on Android — ZDNET

Key Points

1

Install Termux from F-Droid; Google Play Store version is outdated (2023).

2

Update packages with 'pkg update' to ensure compatibility and security.

3

Start Apache server with 'apachectl start', test at http://IP:8080 in browser.

4

Create PHP-based websites using git or build from scratch for full flexibility.

5

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.

TermuxLAMP StackAndroid DevelopmentWeb Server

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

Subscribe to join the conversation...

Be the first to comment

Enjoyed this article?

Get it daily. 7am. Free. Reads in 5 minutes.

Join 3,129 builders reading daily.

Also get