These commands ensure your Termux environment is up-to-date and has the necessary tools.
pkg update
pkg upgradeThese commands install the specific tools needed for your workflow (GitHub projects often use git and php).
pkg install git
pkg install phpNow lets clone the git repo on to our Termux and handle r7p script or tool that launch local host website using php.
- Cloning Git repo.
git clone https://github.com/AlienQ7/DevConsole.git2.Moving file to bin directory for easy access.
cd devmv r7p /data/data/com.termux/files/usr/bincd $PREFIX/bin- lets Give premission to r7p.
chmod +x r7p- Navgating back to dev directory to excute our main file which is 'index.php'
cdcd dev- Launch the local website hoster
r7pnow enter the file name 'index.php' when r7p script asked for input.
- Remember the website will be active as long as Termux app in open in background ,so to close the website run this command
r7p kill