The weird thing is that When I run the phpinfo() I have the version 7.4.1 but when I do a php -v with ssh I have the 4.4.9 version how can I update it and is that possible ?
There are two (or more) php installed. Your webserver uses 7.4 while your client points to 4.4.
If you do which php it will give you the path to the one you are using (4.4).
So you need to make your 7.4 installation default. Not knowing your system setup but something like