Skip to content

This repository provides a set of configuration files and a script to set up a PHP, Apache, and MySQL server in Termux.

Notifications You must be signed in to change notification settings

christiangarcia0311/termux-php-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Badge Static Badge Static Badge Static Badge Static Badge

Termux PHP Server

asset

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

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

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

Static Badge

Contact

For issues, please open an issue on GitHub. Contributions, feature requests, and feedback are all welcome!

About

This repository provides a set of configuration files and a script to set up a PHP, Apache, and MySQL server in Termux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published