I’m having a problem running a command in php using APC in my mac. In the MAMP Pro i have it on but looks like my mac is not using MAMP’s php but using osx’.
Any idea about how to tell my mac to use MAMP Pro instead of OSX’ php.ini?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
MAMP ProPHPexecutable should be located in/Applications/MAMP/bin/php/php5.x.x/bin/.The
OSXPHPis located in/usr/bin/phpand/usr/binis inPATHvariable by default.One way to make
OSXuseMAMPPHPis to add/Applications/MAMP/bin/php/php5.x.x/bin/to yourPATHvariable (before/usr/bin):Simply edit
~/.profile(ie. openTerminal.app, typevim ~/.profile) and add the following line to end of the file:Note that you should replace
xs inphp5.x.xwith theMAMP ProPHPversion.