just a quick question, when you change the fpm mode for a server does virtualmin write a symlink to the ‘/home/user-name/bin’ directory ? If so what is it purpose and is it safe to remove
I would not remove anything. Use your package manager do do that, that’s its job.
90% issue on issue on this forum is people poking into things they don’t know.
Just use remove instead of install https://www.virtualmin.com/documentation/web/multiplephp/
That is not the question i dont wish to remove a package i just want to know if when you change php versions vm adds a sym link to the users bin directory
If a sym link points to nothing then it should be safe to remove it. If it actually points to something then I would leave well alone - is it really occupying THAT much space to be bothered about, it is there so something thinks it needs it. I like an uncluttered world too but disk space is cheaper than my time!
The problem is it causes some php cli apps to fail due to the wrong version of php being used as .profile and maybe .bashrc add the bin directory to the path if it exists if this needs to be set for a reason it would be better to set it in the php fpm config file rather than adding it into the users path
I see so the question is what/who is setting the sym link, then what is going to break if it is removed. Could this be external to Virtualmin perhaps some add on put there by a user (some WP add-on for example)
Every time I change php fpm version in vmin the sym link changes to the newly selected version which means any sub servers now have that version of php cli when you would expect it to have the same version of cli php that the sub server is configured to use simply if a.com has php 7.4 set b.a.com will inherit 7.4 when you expect it to be 8.2