Update lamp/php.md

This commit is contained in:
Ste Vaidis 2024-12-11 10:11:56 +02:00
parent 9cc6e4b38f
commit 6f6231883d

View File

@ -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