How to I setup default php-fpm service if I have two versions of php

sd flag

I am having two versions of PHP on an ubuntu server that is 8.1 and 7.4 I installed both PHP-fpm extensions and I have this in /var/run/php php7.4-fpm.sock php8.1-fpm.sock php-fpm.sock

I expected that running systemctl status php-fpm without the PHP version number would be running the default version PHP. but the service is not even there. I get this message Unit php-fpm.service could not be found. How can I fix this issue? Is it even possible?

I also noticed that in /etc/php/ I only have sub folders for versions.

in flag
So, check which service units you do have. `systemctl list-units -t service |grep php`.
novapack avatar
sd flag
I get this `php7.4-fpm.service loaded active running The PHP 7.4 FastCGI Process Manager php8.1-fpm.service loaded active running The PHP 8.1 FastCGI Process Manager`

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.