Tried to upgrade PHP version on the Mac, but now actually surprised that he(Mack) is still working..
Been installed php version "5.6.30"
But heck to install 7.1
After a short search found an article which had the following line:
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.1
But then Mack began to swear:
Detected macOS Sierra 10.12. All ok. Get packager.tgz Unpack packager.tgz Please type in your password, as we want to install this into /usr/local Password: tar: Error opening archive: Failed to open '/tmp/packager.tgz' Start packager (may take some time) using /usr/bin/python2.7 /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/usr/local/packager/packager.py': [Errno 2] No such file or directory Finished.
And in the same article it was said "if not working, try this"(well, I tried this in the terminal (now I realized that it had to be done in .bashsrc)):
export PATH=”$(brew — prefix homebrew/php/php71)/bin:$PATH”
Mac gave me (I think it's because of word processing and there was supposed to be 2 dash):
Error: Unknown command: —
In General, then stopped working completely all..
-bash: brew: command not found -bash: php: command not found -bash: curl: command not found
As I understand it there rubbed the path to it (the Executive files?)
Now I don't know how to fix it..
Help pliz, and I'm afraid now it even shut down..