U
U
urajo2020-09-21 10:32:31
PHP
urajo, 2020-09-21 10:32:31

How to change the php version used?

I'm trying to install phpBB, it says You are running an unsupported PHP version. Please upgrade to PHP
7.1.3 or higher before trying to install or update to phpBB 3.3 2018 Zend Technologies But the forum still does not install and writes that the version needs to be updated. How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
debian_Lenovo-B50-30, 2020-09-21
@urajo

sudo apt remove php*
sudo apt purge php*
sudo apt autoremove
sudo apt install php7.4 php7.4-{xdebug,mysql,mbstring}
sudo systemctl restart apache2

V
Valdemar Smorman, 2020-09-21
@smorman

Adding a PHP repository to install the latest version:

cd /etc/apt/sources.list.d; echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu $(lsb_release -cs) main" | sudo tee php.list > /dev/null; sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com:443 4F4EA0AAE5267A6C; sleep 10; sudo apt update; cd

And then already 7.4 in the php name can not be registered.
It will automatically pull up the latest versions of the packages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question