Skip to main content

Install MariaDB + phpMyAdmin (LXC)

Install MariaDB

ใช้ Helper Script เพื่อความรวดเร็ว

https://tteck.github.io/Proxmox/

หลังจากนั้นทำตาม Post Install ในบางส่วนเพื่อเพิ่มความปลอดภัยใน terminal (ทำตามทั้งหมด phpMyAdmin จะใช้ไม่ได้)

Enter current password for root (enter for none): enter

Switch to unix_socket authentication [Y/n] n

Change the root password? [Y/n] n

Remove anonymous users? [Y/n] y

Disallow root login remotely? [Y/n] n

Remove test database and access to it? [Y/n] y

Reload privilege tables now? [Y/n] y

นอกนั้นทำตาม Post Install

 


Install Apache2

apt install apache2 -y


Install PHP

apt install php php-common php-mysql php-gd php-cli -y
service apache2 restart

 

Install PHPMyAdmin

เลือก Apache2

apt install phpmyadmin -y

 

เช้าใช้งานตาม ip เช่น

http://192.168.1.100/phpmyadmin/

โดยใช้ user pass ที่ตั้งไว้

 

Source

https://github.com/tteck/Proxmox/discussions/2915

https://www.miguelvallejo.com/installing-mariadb-phpmyadmin-on-debian-11-debian-11-proxmox-lxc-container/