Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixhaeberle/brew-php-update-macosx
Here are some brew commands to update your macosx php version to 7.1, including curl and mcrypt.
https://github.com/felixhaeberle/brew-php-update-macosx
brew macosx php71 shell-script
Last synced: 16 days ago
JSON representation
Here are some brew commands to update your macosx php version to 7.1, including curl and mcrypt.
- Host: GitHub
- URL: https://github.com/felixhaeberle/brew-php-update-macosx
- Owner: felixhaeberle
- License: other
- Created: 2018-01-05T01:30:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-15T23:05:50.000Z (almost 7 years ago)
- Last Synced: 2024-10-28T17:12:25.608Z (2 months ago)
- Topics: brew, macosx, php71, shell-script
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# brew-php-update-macosx
Here are some brew commands to **update your macosx php version to 7.1**, including curl and mcrypt.### First step
If you haven't `brew` installed on your local machine, feel free to do so with
`/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`
Copy and paste that snippet in your `Terminal` and the script will guide you through the installation process.
You can get more info for the installation process here: [brew.sh](https://brew.sh)
### Second step
If you have brew installed, follow the commands provided in the `brew_php71_macosx.sh` file to install php 7.1 on your machine.
Or type in the following:
```
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-phpbrew install --with-openssl curl
brew install --with-homebrew-curl --with-apache php71
brew install php71-mcrypt php71-imagickbrew info php71
sudo apachectl restart
source ~/.profile
```### Third step - **Good to know**
If you check your php version with `php -v` in your terminal and it still shows the old version, type in
`export PATH=/usr/local/php5/bin:$PATH`
The PATH settings should then update to the proper version.
### Links
- [Best php source of macosx (with upgrade instructions) (php-osx.liip.ch)](https://php-osx.liip.ch/)
- [Stackoverflow on HowTo Upgrade to PHP 7.1](https://stackoverflow.com/questions/2526085/how-do-i-upgrade-php-in-mac-os-x)
- [Nice blog post on howto upgrade](https://developerjack.com/blog/2016/installing-php71-with-homebrew/)