Run phpMyAdmin with Nginx on Termux — lightweight, fast and easy to configure.
In this tutorial, I show step by step how to install and configure Nginx, PHP-FPM,
and MariaDB to run phpMyAdmin directly from your Android phone with Termux.
Forget Apache, Nginx is modern and ultra-light, perfect for small devices.
What you’ll learn in this video:
1. Setup and configure Nginx on Termux
2. Configure PHP-FPM for PHP execution
3. Install and secure MariaDB
4. Run phpMyAdmin with Nginx server
🟩 CODE SOURCE :
#server for #phpmyadmin
server {
listen 8090;
server_name localhost;
root /data/data/com.termux/files/usr/share/nginx/phpmyadmin;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /data/data/com.termux/files/usr/share/nginx/html;
}
location ~ /\.ht {
deny all;
}
}
#code for #mariadb
🟩START MARIADB:
mariadb -u root -p
🟩CREATE A USER:
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'root';
🟩GIVE THEM ALL PRIVILEGES:
GRANT ALL PRIVILEGES ON . TO 'admin'@'localhost' WITH GRANT OPTION;
🟩Then Save everything instantly with
FLUSH PRIVILEGES;
🟩Once finish Type
exit
SUPPORT THE CHANNEL:
💵💵💵 https://paypal.me/gapconwriter
Follow along, and by the end you’ll have a full working phpMyAdmin setup on your phone.
👉 Don’t forget to like, share and subscribe for more tutorials about Termux, Nginx, PHP, MySQL and web development on Android.
FIND US ON TELEGRAM :
https://t.me/+cSua2rIHK81hYjc5
#android #coding #termux #phpmyadmin #programming #nginx