https://dev.to/programmerhasan/how-to-enable-http3-on-nginx-with-ubuntu-3hgp
https://gist.github.com/GAS85/89be86e482651e804f0fa2b04ce60083
https://www.inmotionhosting.com/support/server/apache/hide-apache-version-and-linux-os/
https://synaptica.info/2023/03/23/ubuntu-lts-update-apache2-to-the-lastest-version-via-ssh/
แสดงรายละเอียดระบบปฎิบัติการที่ใช้งาน OS
$ lsb_release -a
https://kb.synology.com/en-us/DSM/tutorial/How_to_back_up_Linux_computer_to_Synology_NAS
https://www.wundertech.net/use-ssh-keys-to-automatically-backup-a-linux-pc-to-a-synology-nas/
การติดตั้ง Ubuntu Server 20.04 และโปรแกรมที่เกี่ยวข้อง
sudo apt update
sudo apt upgrade
sudo apt-get install ntpdate
sudo ntpdate 192.168.0.11 <- ตรวจสอบเวลาจาก ntp server
sudo apt install apache2
sudo apt install mysql-server
sudo mysql_secure_installation
auto eth0
iface eth0 inet static
address 192.168.1.128
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
$ sudo vi /etc/resolvconf/resolv.conf.d/basesearch (domain name)
nameserver 8.8.8.8
nameserver 8.8.4.4
# Install prerequisites
sudo apt-get install php-dev libmcrypt-dev gcc make autoconf libc-dev pkg-config
# Compile mcrypt extension
sudo pecl install mcrypt-1.0.1
# Just press enter when it asks about libmcrypt prefix
# Enable extension for apache
echo "extension=mcrypt.so" | sudo tee -a /etc/php/7.2/apache2/conf.d/mcrypt.ini
# Restart apache
sudo service apache2 restart
$ sudo phpenmod mcrypt<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
AllowOverride All <--- เพิ่มบรรทัดนี้เข้าไป
....
$ sudo systemctl restart apache2AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/phpmyadmin/.htpasswd
Require valid-user
$ sudo htpasswd -c /etc/phpmyadmin/.htpasswd username