Question:
After reconfiguring PHP on Mac to enable the SOAP module, the user must manually specify the MAMP directory path in command-line commands. How can the system be modified to enable use of just the "php" command instead of the entire MAMP path?
Answer:
To override the PHP path and prioritize MAMP, follow these steps:
Add environment variables: In the ".bash_profile" file, create two environment variables:
Verification: To confirm that the MAMP version is being used, run the following commands:
The above is the detailed content of How to Prioritize MAMP PHP in the Terminal on Mac?. For more information, please follow other related articles on the PHP Chinese website!