Apache:
sudo apt update
sudo apt install apache2 -y
安裝完成後,打開瀏覽器,輸入伺服器ip,會看到apache畫面
MySQL:
sudo apt install mysql-server -y
sudo mysql_secure_installation //進行設定
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 2 //這裡我選擇2
Do you wish to continue with the password provided?
PHP:
sudo apt install php libapache2-mod-php php-mysql -y