I’m trying to install Magento 2.3 with Composer, with php 72. I am hosted on a shared cloud server that has php 70 as the server version (what php -v returns). I can set the local version of php to php 72 in cpanel but php -v still indicates I have 70, when I run phpinfo.php it shows php 72 running locally. In order to install Magento 2.3 using the CLI I have had to use a full path to the binary for php 7.2 in front of bin/magento commands. The results seems to run with no problem. My question is does this situation with php cause any issues during runtime or development? If so what do I need to do?
Looks like you cli using old php.ini
You can specify the php.ini file in command line by using the following syntax:
php -c [Path to php.ini file] [Path to .php file]
php -c /home/userna5/public_html/php.ini /home/userna5/public_html/example.php
And you also need to change php settings. Use command:
php -c [Path to php.ini file] [Path to .php file] -d [PHP setting]
php -c /home/userna5/public_html/php.ini /home/userna5/public_html/example.php -d memory_limit=256M