Search code examples
phpterminalmamp

MAMP and PHP on Terminal


So I have installed MAMP and I am using PHP, however I also used Terminal with PHP as well. Now for some reason Terminal is not working with PHP anymore, for example:

Terminal / PHP command not found

Terminal / PHP command not found

So basically I can not work with anything at the moment. I have also simplified .bashrc and .bash_profile.

Terminal and PHP not found

Terminal and PHP not found

Thanks. mac-machine


Solution

  • The problem is working with PHP command line is not found with ZSH, it gets a message: zsh: command not found: php.

    So working with older BASH instead of ZSH it works fine.