making a lamp with P H P

apt-get -y update
apt-get -y upgrade

# install apache software-prop

apt-get -y install tasksel apache2 software-properties-common mariadb-client mariadb-server  python-certbot-apache lsb-release apt-transport-https ca-certificates

# install php 7.3
apt -y install lsb-release apt-transport-https ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo “deb https://packages.sury.org/php/ $(lsb_release -sc) main” | tee /etc/apt/sources.list.d/php7.3.listapt-get -y update

apt-get -y upgrade

apt-get -y install libapache2-mod-php7.3 php7.3-gd php7.3-mysql php7.3-curl php7.3-intl php7.3-xsl php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-soap php7.3-imagick

### install lets encrypt#
apt-get -y install python-certbot-apache
# set cert
certbot –apache

## harden mysql

mysql_secure_installation