Skip to content Skip to sidebar Skip to footer

Instalasi PHP di Debian 10

apa itu PHP ?

PHP merupakan kepanjangan dari Hypertext Preprocessor, yaitu sebuah bahasa pemrograman berbasiskan kode – kode (script) yang digunakan untuk mengolah suatu data dan mengirimkannya kembali ke web browser menjadi kode HTML



Disini kita akan memakai PHP 73 sebagai instalasinya.

pertama sekali kita akan memperbarui daftar paket

sudo apt update 

sudo apt upgrade

Setup PPA di Debian 10

kemudian ketik perintah ini untuk menginstal paket yang kita perlukan. lalu import kunci singing pake, kemudian komfigurasi PPA.

sudo apt install ca-certificates apt-transport-https 

wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -

sudo echo "deb https://packages.sury.org/php/ buster main" | tee /etc/apt/sources.list.d/php.list

Install PHP

sudo apt update
sudo apt install php7.3

sudo apt install php7.3-cli php7.3-common php7.3-curl php7.3-gd php7.3-json php7.3-mbstring php7.3-mysql php7.3-xml

setelah itu kita bisa mengecek versi php yang sudah terinstal tadi

php -v

PHP 7.3.1-1 (cli) (built: Jan 13 2019 10:13:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.1, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.1-1, Copyright (c) 1999-2018, by Zend Technologies
Author
Author “Yes I'm seeking for someone, to help me. So that some day I will be the someone to help some other one.”

Post a Comment for "Instalasi PHP di Debian 10"