Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sekedus/tamp

Local http web server like LAMP/XAMPP for Android using Termux.
https://github.com/sekedus/tamp

android apache lamp mariadb mysql php phpmyadmin termux xampp

Last synced: about 2 months ago
JSON representation

Local http web server like LAMP/XAMPP for Android using Termux.

Awesome Lists containing this project

README

        

# TAMP

[![GitHub repo size](https://img.shields.io/github/repo-size/sekedus/tamp?label=Size)](https://github.com/sekedus/tamp) [![GitHub Clones](https://img.shields.io/badge/dynamic/json?color=success&label=Clone&query=count&url=https://gist.githubusercontent.com/sekedus/0f5fd62474258fa66560be80b6bf9904/raw/clone.json)](https://github.com/MShawon/github-clone-count-badge) [![GitHub License](https://img.shields.io/github/license/sekedus/tamp?label=License)](https://github.com/sekedus/tamp/blob/main/LICENSE)

TAMP (Termux, Apache, MariaDB, PHP)

TAMP is a local http web server for Android using Termux, with installation packages: Apache, MySQL/MariaDB, PHP, phpMyAdmin, & Composer.

## Requirements

- [Termux](https://github.com/termux/termux-app/releases/latest) **v0.118.0** or higher
- Stable and fast internet connection

## Installation

1. Install & open Termux
2. Update & upgrade packages:
```bash
pkg update && pkg upgrade
```
3. Grant Termux storage permission:
```bash
termux-setup-storage
```
4. Install `git` & clone this repo:
```bash
pkg install git -y && cd ~/ && git clone https://github.com/sekedus/tamp.git
```
5. Install TAMP:
```bash
cd ~/tamp && bash setup && cd ~/
```
6. Wait until installation is complete.
7. Enjoy!

## Usage

- Run `tamp start` to open url in browser.
- Local web server with SSL:
* run: `tamp start-ssl`
* port: `8443`
* url: `https://localhost:8443`
- Login phpMyAdmin:
* url: `http://localhost:8080/phpmyadmin`
* username: `root`
* password: {leave_it_blank}
- **htdocs** folder can be found in:
* `/sdcard/htdocs`
* or `/storage/emulated/0/htdocs`

## Commands

- tamp start
- tamp start-ssl
- tamp stop
- tamp update
- tamp uninstall

## Credits

- [Termux](https://github.com/termux/termux-app)
- [parzibyte.me](https://parzibyte.me/blog/en/2019/04/28/install-apache-php-7-android-termux/)
- [termux-php-apache2-setup](https://github.com/gungunpriatna/termux-php-apache2-setup)
- [termux-webserver](https://github.com/HadiKhoirudin/termux-webserver)

## License

TAMP is licensed under the GNU General Public License v3.0. See the [LICENSE](https://github.com/sekedus/tamp/blob/main/LICENSE) file for more details.