diff --git a/lamp/php.md b/lamp/php.md index 0961f77..76e5e4c 100644 --- a/lamp/php.md +++ b/lamp/php.md @@ -29,6 +29,22 @@ dnf install php74-php-xml php74-php-tidy php74-php-soap php74-php-bcmath # Configure +```sh +mv /usr/bin/php /usr/bin/php.bak +mv /usr/bin/phpize /usr/bin/phpize.bak +mv /usr/bin/php-config /usr/bin/php-config.bak + +alternatives --install /usr/bin/php php /usr/bin/php82 1 +alternatives --install /usr/bin/phpize phpize /usr/bin/phpize-8.2 1 +alternatives --install /usr/bin/php-config php-config /usr/bin/php-config-8.2 1 + +alternatives --install /usr/bin/php php /usr/bin/php83 1 +alternatives --install /usr/bin/phpize phpize /usr/bin/phpize-8.3 1 +alternatives --install /usr/bin/php-config php-config /usr/bin/php-config-8.3 1 +``` + + + ```sh sed -i 's/:9000/:9074/' /etc/opt/remi/php74/php-fpm.d/www.conf sed -i 's/:9000/:9080/' /etc/opt/remi/php82/php-fpm.d/www.conf