3

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?

Nicola Peluchetti
  • 76,206
  • 31
  • 145
  • 192

2 Answers2

8

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

Or just uninstall the PHP in /usr/bin.

Alex Howansky
  • 50,515
  • 8
  • 78
  • 98
5

On Mac or Linux you can add the following to your bash shell (via ~/.bash_profile or similar):

export PATH=/usr/local/zend/bin:$PATH
source /etc/zce.rc

Loading in /etc/zce.rc sets up the system library path correctly and removes warnings about the crypto lib.

Tim
  • 5,364
  • 2
  • 17
  • 12