PHP composer version error

Hello friends, I have a site with MAUTIC installed and PHP in version 7.4.32 but when I go to update or try to run a cronjob through the terminal I get this message

Hello @fsi Happy you are here

You need to create a symbolic link to whichever version you need e.g.

ln -s /usr/bin/php /usr/local/lsws/lsphp74/bin/php

This sets default php for CyberPanel installation as 7.4.32

the link is already created

cp -f /usr/local/lsws/lsphp74/bin/php /usr/bin/ and restart php