Skip to content

Instantly share code, notes, and snippets.

@aonurdemir
Created August 10, 2018 11:40
Show Gist options
  • Save aonurdemir/7197472130e76eff754c1659fefddce4 to your computer and use it in GitHub Desktop.
Save aonurdemir/7197472130e76eff754c1659fefddce4 to your computer and use it in GitHub Desktop.
mysql5.7 php apache stack installation in macosx high sierra

Steps

X-code

xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update && brew upgrade
brew doctor (see everything is ok)

Git

Mysql

brew install mysql
brew search mysql (find mysql 5.7 package)
brew install [email protected]
brew unlink mysql

Run ONLY first or second command Since [email protected] is keg-only, first step could be by-passed by adding a path to [email protected] in PATH variable like second command

  1. brew link [email protected] --force
  2. echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile

Check mysql_secure_installation link is correct: ls -l /usr/local/bin/mysql_secure_installation

Check mysql path is correct ls -l /usr/local/bin/mysql

mysql_secure_installation

Check mysql version mysql --version

Project

Git clone <project_url> into your favorite folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment