Verify the Active PHP Version
Run the following command to check which PHP binary is being used:
which php
This should output /usr/bin/php, and if everything is configured correctly. If you see different, then have to fix it first.
/usr/bin/php,