This is expected, because you're not calling the webserver PHP, you're calling the PHP cli, from the command line. These are two very different commands with two very different configuration files.
From SSH
This will generate locations of the php versions on your server. PHPIZE is simply a command tool used for php. This will usually be something like
- /usr/local/lib/php
- /usr/local/lib/php81
- /usr/local/lib/php74
- /usr/local/lib/php82
- /usr/local/lib/php83
Each of those directories will have a bin/php file, which is what you want to call, not php directly