Код: Выделить всё
yum-config-manager --enable remi-php56
yum-config-manager --enable remi-php71
yum-config-manager --enable remi-php72
yum-config-manager --enable remi-php73
Код: Выделить всё
yum install php{version}
yum install php{version}-php-{extension}
Код: Выделить всё
sudo update-alternatives --set php /usr/bin/php56
Код: Выделить всё
PHP 5.6.40 (cli) (built: Sep 29 2020 11:38:05)
В centos/RH мы не можем сделать :
Код: Выделить всё
sudo a2enmod php56
Как я мог настроить конкретную версию PHP для httpd?
[img]https://i.stack.imgur. com/mrZkO.png[/img]
Подробнее здесь: https://stackoverflow.com/questions/642 ... mmand-line
Мобильная версия