Cara install multiple PHP versions di TinyCP

TinyCP support multiple PHP version, jadi dalam satu server setiap domain bisa mempunyai versi berbeda. Berikut panduan cara install multiple PHP versions di TinyCP.

Akses SSH terminal dengan akun root, dan jalankan perintah berikut:

Ubuntu

Perintah untuk Linux Ubuntu

apt install software-properties-common
add-apt-repository ppa:ondrej/php
apt-get update

Debian 10

Perintah untuk Linux Debian 10 Buster

apt install software-properties-common
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ buster main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update

Install PHP 5.6

apt-get install php5.6-{common,fpm,curl,gd,imap,intl,readline,odbc,tidy,xmlrpc,json,sqlite3,mysql,opcache,bz2,mbstring,xml,soap,zip,xsl,bz2,imagick}

Install PHP 7.0

apt-get install php7.0-{common,fpm,curl,gd,imap,intl,readline,odbc,tidy,xmlrpc,json,sqlite3,mysql,opcache,bz2,mbstring,xml,soap,zip,xsl,bz2,imagick}

Install PHP 7.1

apt-get install php7.1-{common,fpm,curl,gd,imap,intl,readline,odbc,tidy,xmlrpc,json,sqlite3,mysql,opcache,bz2,mbstring,xml,soap,zip,xsl,bz2,imagick}

Install PHP 7.2

apt-get install php7.2-{common,fpm,curl,gd,imap,intl,readline,odbc,tidy,xmlrpc,json,sqlite3,mysql,opcache,bz2,mbstring,xml,soap,zip,xsl,bz2,imagick}

Install PHP 7.3

apt-get install php7.3-{common,fpm,curl,gd,imap,intl,readline,odbc,tidy,xmlrpc,json,sqlite3,mysql,opcache,bz2,mbstring,xml,soap,zip,xsl,bz2,imagick}

Install PHP 7.4

apt-get install php7.4-{common,fpm,curl,gd,imap,intl,readline,odbc,tidy,xmlrpc,json,sqlite3,mysql,opcache,bz2,mbstring,xml,soap,zip,xsl,bz2,imagick}

Untuk memilih versi PHP silahkan login ke panel TinyCP:

Klik menu WEB > Domains > pilih nama domain > PHP VERSION : pilih versi PHP yang diinginkan.

Selesai. Semoga bermanfaat. Jika kesulitan silahkan kontak dan order jasa setup dengan TinyCP fast control panel web hosting.

Leave a Reply

Your email address will not be published. Required fields are marked *