console:
# php -i|grep php.ini
Configuration File (php.ini
) Path => /usr/local/lib
web:
phpinfo()
; Configuration File (php.ini
) Path => /usr/local/php/etc
why is the path not the same?
php -i|grep php.ini
returns with the path used for CLI applications
phpinfo()
shows the php.ini path used for WEB applications (configured in the web server's php module configuration)