Giter Club home page Giter Club logo

termux-php-server's Introduction

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

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

Static Badge

Contact

For issues, please open an issue on GitHub.

termux-php-server's People

Contributors

christiangarcia0311 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.