A few days ago, I compiled PHP 5.5 from sources and installed it on my Debian 8.5 server but I got some issues. I decided to remove it and re-install PHP through package. But I still got issues because the path of my php.ini did not change.
What I actually have is :
kevin@debian:~$ php --ini
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: /usr/local/lib/php.ini
Scan for additional .ini files in: (none)
I would like to retrieve a default configuration like this :
kevin@debian:~$ php --ini
Configuration File (php.ini) Path: /etc/php/5.6/cli
Loaded Configuration File: /etc/php/5.6/cli/php.ini
Scan for additional .ini files in: /etc/php/5.6/cli/conf.d
I tried to re-install php5, php5-fpm... through apt-get but my path never changed.
Is there any command on Debian to change the default path of my php.ini conf ?
Thx.
Edit :
which php :
kevin@debian:~$ which php
/usr/local/bin/php
php -v :
kevin@debian:~$ php -v
PHP 5.5.15 (cli)