Joomla PHP 5.6 to 7.4 on Debian

  • Category: 電腦相關
  • Last Updated: Sunday, 11 October 2020 11:51
  • Published: Wednesday, 30 September 2020 17:43
  • Written by sam

When finish.

2020 09 30 113758

Stop old php and remove

systemctl stop php-fpm.service

 2020 09 30 110228

2020 09 30 110341

apt update

 Add SURY PHP PPA repository

apt -y install lsb-release apt-transport-https ca-certificates

wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg

echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
apt update
apt install php7.4 php7.4-fpm php7.4-mysql php7.4-xml php7.4-zip php7.4-json php7.4-common

2020 09 30 112010

2020 09 30 112041

2020 09 30 112119

2020 09 30 112150

enable extension

2020 09 30 112358

If you want to show error message

2020 09 30 112221

2020 09 30 112231

restart php7.4

2020 09 30 112418

modify websit configuration.php

2020 09 30 112444

2020 09 30 112532

2020 09 30 112602

open browser and only display Error

2020 09 30 112630

modify configuration.php error_reporting default to maximum

2020 09 30 112721

2020 09 30 112744 <---typo

and refresh again

2020 09 30 112805

modify configuration.php apc to PHP or database

2020 09 30 112825

2020 09 30 112847

and website up and normal.