From 41596a795df6d907a5969cb8bf00d3bb46627e73 Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Wed, 11 Dec 2024 10:20:31 +0200 Subject: [PATCH] Update lamp/php.md --- lamp/php.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/lamp/php.md b/lamp/php.md index a9dc196..889ca3e 100644 --- a/lamp/php.md +++ b/lamp/php.md @@ -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