Check your Apache configuration file. There are a couple of things in it that may be used to point to where PHP resides. The first directive is PHPIniDir
which may be set to tell Apache where PHP resides.
The other directive is LoadModule php7_module
which tells Apache where to find the PHP module Apache should use.
manpreet
Best Answer
2 years ago
In Commandline
$which php
$php -v
On Apache check phpinfo();
apache2handler
I don't understand how apache decides the php path.
How can I make the apache to use the same php as commandline??