adel
March 9, 2024, 1:02am
1
My YunoHost server
Hardware: VPS bought online
YunoHost version: 11.2.10.3
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
Hi guys,
I have 4 versions of PHP installed and trying to update apps to the latest ones they support. What is the safe way to remove the old unused PHP versions?
Wish everybody a nice weekend!
ppr
March 9, 2024, 10:12am
2
Hello,
Maybe this topic in french could helps you :
Bonjour,
J’ai plusieurs versions de php qui se cumulent au fil du temps.
J’ai actuellement les versions 7.3, 7.4, 8.0, 8.1. Je doute que ces 4 versions soient nécessaire. Les commandes ci-dessous indiquent qu’il y a des paquets installés concernant ces 4 versions mais également que php7.3 n’a pas l’air de tourner sur le serveur. Donc inutile?
php8.0-fpm.service tourne mais ne concerne aucune application si je comprends bien, donc pourrais-je supprimer php8.0 Ă©galement?
dpkg -l | grep php[0-9…
ppr
1 Like
metyun
March 9, 2024, 10:28am
3
Hi,
You can read this too :
Be carefull, Nextcloud use php8.1-fpm not php8.2-fpm.
The command ls /etc/php/**/fpm/pool.d list also old versions of config file (example an old version of Nextcloud that was on an old yunohost with Debian 10 before migration to Debian 11 is not delete)
This command is more useful to see which versions to keep :
lsof | grep /var/run/php | awk '{print $9}' | sort -u | cut -d'/' -f5 | awk -F'-' '{print $1,$3}' | cut -d'.' -f1,2
1 Like
system
Closed
April 8, 2024, 10:28am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.