phpcommand-linezend-server-ce

Use the php that comes with zend server from the command line on Mac


I have installed zend server on my mac and i think that there are two installations of php on my mac (i hate mac bythe way, i'd love to get back to windows 7), i think that a script i'm running from the command line (phpcs) is using the php command that is inside /usr/bin/ while i'd like to use the one that's inside /usr/local/zend/bin/ always. How should i do that?


Solution

  • Add /usr/local/zend/bin to your PATH, before /usr/bin.

    Or just uninstall the PHP in /usr/bin.