H
H
Him4enko2021-11-07 17:12:38
linux
Him4enko, 2021-11-07 17:12:38

How to change php version in phpinfo to Manjaro?

How to change the php version on the server (Manjaro), now phpinfo is php 8, I already have php7.4 installed under cli, I need to install according to the php7.4 standard

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2021-11-07
@karabanov

sudo update-alternatives --set php /usr/bin/php7.4
sudo update-alternatives --set phar /usr/bin/phar7.4
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.4

T
toxa82, 2021-11-07
@toxa82

Disable php8 module for server and enable php7.4. For Apache it's like: sudo a2dismod php8.0; sudo a2enmod php7.4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question