I have configured php twice with and without --prefix

So there are two packages one on /usr/local and another on /usr/local/php7 of same php version 7.1.10

Now my terminal points to /usr/local/ and web points to /usr/local/php7/

So two different php.ini files for terminal /usr/local/lib/php.ini and for web /usr/local/php7/lib/php.ini

How can I Fix this I need to point my terminal to /usr/local/php7/

I am using centos

  • it points to PHP7 when I do /usr/local/php7/bin/php -m how do I avoid this long step, Whats the real fix. – fernandus Nov 16 '17 at 10:47

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.