https://github.com/christiangarcia0311/termux-php-server
This repository provides a set of configuration files and a script to set up a PHP, Apache, and MySQL server in Termux.
https://github.com/christiangarcia0311/termux-php-server
apache apachectl php php-server termux-phpmyadmin
Last synced: 9 days ago
JSON representation
This repository provides a set of configuration files and a script to set up a PHP, Apache, and MySQL server in Termux.
- Host: GitHub
- URL: https://github.com/christiangarcia0311/termux-php-server
- Owner: christiangarcia0311
- Created: 2024-06-28T00:59:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-03T14:28:23.000Z (over 1 year ago)
- Last Synced: 2024-08-03T15:43:07.762Z (over 1 year ago)
- Topics: apache, apachectl, php, php-server, termux-phpmyadmin
- Language: PHP
- Homepage:
- Size: 195 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README





# Termux PHP Server

This repository provides a set of configuration files and a script to set up a PHP, Apache, and MySQL server in Termux.
## Files Included
- `config.inc.php`: Configuration file for database connection.
- `httpd-vhosts.conf`: Configuration file for setting up virtual hosts in Apache.
- `httpd.conf`: Main configuration file for Apache.
- `index.php`: Basic PHP script to test the server setup.
- `setup-server.sh`: Shell script to automate the setup process.
## Requirements
> Termux App
- download [Termux](https://termux.en.uptodown.com/android/download) here.
## Usage
1. install git `pkg install git -y`
2. clone the script `git clone https://github.com/christiangarcia0311/termux-php-server`
3. go to the folder directory `cd termux-php-server`
4. Make the script executable by running `sh setup-server.sh`
## Run and Access Server
> Initialize and start mysql
`mysqld --skip-grant-tables`
> Start apache server
`apachectl start`
## Run and Start MySQL
> start mysql
`mysql -u $(whoami)`
## Stop Server
> Terminate running mysql
`killall mysqld`
> Stop apache server
`apachectl stop`
## Server Domain
> localhost in web browser
`localhost:8080`
> phpmyadmin in web browser
`0.0.0.0:8080`
## Author

## Contact
For issues, please open an issue on GitHub.