Skip to content

Instantly share code, notes, and snippets.

@pherrymason
Created August 19, 2014 09:11
Show Gist options
  • Save pherrymason/89dfb1887a0784761e3d to your computer and use it in GitHub Desktop.
Save pherrymason/89dfb1887a0784761e3d to your computer and use it in GitHub Desktop.
installation dev on osx
npm install -g jshint
npm install -g webpack
npm install -g less
npm install -g clean-css
npm install -g grunt-cli
npm install uglify-js -g
# Allow php CLI connect to mysql
# after installing mamp do this
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
# Then edit php.ini with this:
# pdo_mysql.default_socket= /tmp/mysql.sock
# mysql.default_socket = /tmp/mysql.sock
# mysqli.default_socket = /tmp/mysql.sock
# then this is also needed
cd /var
sudo mkdir mysql
sudo chmod 755 mysql
cd mysql
ln -s /tmp/mysql.sock mysql.sock
# -----------
# If you have /var/mysql/mysql.sock but no /tmp/mysql.sock then
# -----------
cd /tmp
ln -s /var/mysql/mysql.sock mysql.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment