Update lamp/php.md

This commit is contained in:
Ste Vaidis 2024-12-11 10:20:31 +02:00
parent 69aaa9ad88
commit 41596a795d

View File

@ -45,6 +45,13 @@ 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 2
```
# Use
```sh
alternatives --config php
alternatives --config phpize
alternatives --config php-config
```
```sh
@ -56,13 +63,18 @@ semanage port -a -t http_port_t -p tcp 9074
# SystemD
```
```sh
systemctl start php83-php-fpm
systemctl start php82-php-fpm
systemctl start php74-php-fpm
systemctl enable php74-php-fpm
systemctl enable php83-php-fpm
systemctl enable php82-php-fpm
systemctl status php74-php-fpm
systemctl enable php74-php-fpm
systemctl status php83-php-fpm
systemctl status php82-php-fpm
systemctl status php74-php-fpm
```
# php-cgi