Get a VPS server with a 20% discount
Sale ends in
00Days
:
00Hours
:
00Minutes
:
00Seconds

PHP is a widely used open-source general-purpose programming language. It is specifically designed for web development, and its code can be embedded directly into HTML.


Adding Necessary Libraries


To get started, use the following command:

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


Installing PHP


You need to use the following two commands to install PHP:

wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list


Next, install PHP and its core modules:

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