Skip to content

Instantly share code, notes, and snippets.

@starikovs
Last active August 29, 2015 13:56
Show Gist options
  • Save starikovs/9298108 to your computer and use it in GitHub Desktop.
Save starikovs/9298108 to your computer and use it in GitHub Desktop.
brew update; # update packages' info
brew upgrade; # upgrade outdated packages
brew install <some_package>; # install package which you want
brew install vim
brew install mysql
brew doctor
brew search vim
brew search php
brew info mysql
brew options mysql
--- php ---
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap josegonzalez/homebrew-php
brew info php56
brew options php56
httpd.conf:
#LoadModule php5_module libexec/apache2/libphp5.so
LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so
.bash_profile:
export PATH="$(brew --prefix josegonzalez/php/php56)/bin:$PATH"
php.ini:
/usr/local/etc/php/5.6/php.ini
sudo apachectl restart (stop, start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment