Exported on 23-Aug-2021 15:43:34
Parameters
1 - Upgrade apt
The connection details have changed from the last step.
Login as user {Host_Creds} on node {Hostname}
sudo apt update -y
sudo apt upgrade -y
2 - Open FW Ports
Login as user {Host_Creds} on node {Hostname}
sudo ufw allow ssh #allow ssh in Ubuntu firewall
sudo ufw allow 80 #allow http access
sudo ufw allow 443 #allow https access
sudo ufw enable #enable Ubuntu firewall
4 - Install PHP
Login as user {Host_Creds} on node {Hostname}
sudo apt install -y php7.4 php7.4-mysql php-common php7.4-cli php7.4-json php7.4-common php7.4-opcache libapache2-mod-php7.4
5 - Install MariaDB
Login as user {Host_Creds} on node {Hostname}
sudo apt install -y mariadb-server mariadb-client
6 - MariaDB Secure Installation
Login as user {Host_Creds} on node {Hostname}
sudo mysql_secure_installation <<EOF
y
{mysqlRoot.password}
{mysqlRoot.password}
y
y
y
y
EOF
# 1. set root password
# 2. set MySQL root password
# 3. confirm MySQL root password
# 4. remove anonymous users
# 5. disable remote root login
# 6. remove test DB
# 7. save changes
Using Attune to install LAMP Stack
This blueprint installs a LAMP (Linux Apache MySQL [MariaDB] PHP Stack. This full stack can be used to easily serve PHP web application content.
Pre-Blueprint Attune setup
Blueprint Steps