PHP is a common general-purpose open source programming language. PHP is specially designed for web development and its code can be embedded directly into HTML.

Adding necessary libraries

Use the command

sudo apt-get -y install ca-certificates apt-transport-https

Installation php:

You need to use the following two commands:

wget -q -O- | apt-key add -
echo "deb stretch main" | tee /etc/apt/sources.list.d/php.list

Next, install php and its main modules:

sudo apt-get -y install php7.4 php7.4-{mcrypt,mysql,fpm}

Last updated