Question

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?

Was it helpful?

Solution

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

Or just uninstall the PHP in /usr/bin.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top