I recently upgraded php to 5.5.6, but can't get "php-fpm" to refer to the proper binary.
$ php-fpm -v
$ /usr/local/sbin/php -v
$ echo $PATH
$ ls /usr/local/mysql/bin/php-f*
ls: /usr/local/mysql/bin/php-f*: No such file or directory
$ ls /usr/local/bin/php-f*
ls: /usr/local/bin/php-f*: No such file or directory
As far as I understand these things, the only way "php-fpm" could match anything other than the link in /usr/local/sbin would be if there was another "php-fpm" in either /usr/local/mysql/bin or in /usr/local/bin, based on the contents of the $PATH variable. "which" seems to agree with me
$ which php-fpm
But since "which" and I obviously are mistaken, I really have no clue as to how all this works.
I realize that I may specify a full path in the web server conf, but I really would like to understand how the "magic file target selection process" works.
I also realize that I could remove the old php version - but I honestly wouldn't even know where to begin, since I have no idea where to find all the php stuff shipped with the system by default would be stored. Besides, it seems unnecessary if the rest is done properly.