Now you need to install the MariaDB server and the client (MySQL) with the command apt install mariadb-server mariadb-client -y.The command for this is: apt install php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-xsl php7.4-zip php7.4-bz2 libapache2-mod-php7.4 -y Install PHP 7.4 and some important PHP modules.Install the Apache2 web server and other required packages with the following command: apt install apache2 -y.Now update your package lists again with the command apt update.Add the repository by executing the command add-apt-repository ppa:ondrej/php.Install the package for managing repositories using the following command: apt install software-properties-common -y.Add the repository by executing the command echo "deb $(lsb_release -sc) main" > /etc/apt//php.list.Use the command curl -fsSL -o /usr/share/keyrings/php-archive-keyring.gpg to add the key needed for the PHP repository.Add the repository needed to install PHP 7.4:.Next, install the packages needed for future installations in this tutorial by executing the following command: apt install ca-certificates apt-transport-https lsb-release gnupg curl nano unzip -y.Now install any available updates of the packages already installed on your server using the command apt upgrade -y.Update your package lists with the command apt update.
To do this, open PuTTY and enter the domain or IP address of your server in the text box named "Host Name (or IP address)".