sphp
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| sphp [2021/02/25 21:21] – создано chifek | sphp [2023/09/14 06:06] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| brew install php@7.4 | brew install php@7.4 | ||
| </ | </ | ||
| + | |||
| + | |||
| + | Now you have to install sphp, you can do this with this script: | ||
| + | |||
| + | |||
| + | '' | ||
| + | |||
| + | Once it is downloaded in your computer just make it executable: | ||
| + | |||
| + | '' | ||
| + | |||
| + | Cool, now restart your terminal and try to switch between versions with | ||
| + | |||
| + | '' | ||
| + | |||
| + | < | ||
| + | Switching to php@7.4 | ||
| + | Switching your shell | ||
| + | Unlinking / | ||
| + | Unlinking / | ||
| + | Unlinking / | ||
| + | Unlinking / | ||
| + | Unlinking / | ||
| + | Unlinking / | ||
| + | Linking / | ||
| + | You will need sudo power from now on | ||
| + | </ | ||
| + | |||
| + | Test your php version: | ||
| + | |||
| + | < | ||
| + | php --version | ||
| + | |||
| + | PHP 7.4.6 (cli) (built: May 14 2020 10:40:11) ( NTS ) | ||
| + | Copyright (c) The PHP Group | ||
| + | Zend Engine v3.4.0, Copyright (c) Zend Technologies | ||
| + | with Zend OPcache v7.4.6, Copyright (c), by Zend Technologies</ | ||
| + | |||
| + | I will be updating this article if I found some issues and some other troubleshooting tips. | ||
| + | |||
| + | ===== Troubleshooting ===== | ||
| + | |||
| + | |||
| + | If the php version has not changed check first where does your php executable came from with, to work it should show something like this: | ||
| + | |||
| + | < | ||
| + | which php | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | Check your ~/ | ||
sphp.1614288074.txt.gz · Last modified: 2023/09/14 06:06 (external edit)