Install termux apache php webserver di android phone

enter image description here Step 1 - Install Termux

https://f-droid.org/en/packages/com.termux

Step 2 - Install PHP dan Apache

pkg install git -y && 
cd ~/ && 
git clone https://github.com/gungunpriatna/termux-php-apache2-setup.git && 
cd ~/termux-php-apache2-setup && 
bash setup && 
cd ~/ && 
rm -rf termux-php-apache2-setup
apachectl

Step 3 - Install mariadb dan start service

pkg install mariadb
mysqld_safe &

Step 4 - Setting root user

mysql -u root
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('user123456');
FLUSH PRIVILEGES;
QUIT;

login dengan root password

mysql -u root -p

Step 5 - install phpmyadmin

pkg install phpmyadmin
php -S localhost:8088 $PREFIX/share/phpmyadmin
Ezytrik Admin
Written by

Ezytrik Admin

Your digital pit stop for all things tech! Whether you're a curious beginner or a seasoned geek, this blog unpacks the world of IT, gadgets, and modern technology through hands-on tutorials, unbiased insights, and the latest digital trends.

Leave a Comment
No Comments Yet