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

PHP Installation

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

 
Adding required libraries

Use the following command:

sudo apt-get -y install ca-certificates apt-transport-https
 
PHP installation:

You need to use the following two commands:

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}