You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installing/index.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,15 +199,18 @@ On Debian or Ubuntu, just download and open one of the .deb packages: <https://g
199
199
200
200
In some cases, like for MAMP installs, you might not want to use the default PHP binary.
201
201
202
-
To change it, you need to set the WP_CLI_PHP environment variable in your `.bash_profile`:
202
+
To use the latest PHP version provided by MAMP, you'll need to modify your `PATH` environment variable with the following added to your `~/.bash_profile` or `~/.zsh_profile`:
Once you have added that and saved the file, reload the file with:
207
208
208
209
source ~/.bash_profile
209
210
210
-
After you've done that, run `wp --info` to make sure it took.
211
+
After you've done that, run `wp --info` to make sure the change has been applied correctly.
212
+
213
+
For Git and Composer-based WP-CLI installation, you can alternatively set the `WP_CLI_PHP` environment variable, if you don't want to modify `PATH` for some reason.
0 commit comments