Created
June 13, 2013 01:02
-
-
Save steinmb/5770448 to your computer and use it in GitHub Desktop.
Homebrew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##XCode | |
Install howebrew | |
Install X11 (http://xquartz.macosforge.org) | |
##PHP (Same goes for 5.3.x) | |
#Install homebrew-php | |
brew tap homebrew/dupes | |
brew tap josegonzalez/homebrew-php | |
# Check your build options | |
brew options php54 | |
brew install php54-intl --with-pgsql --with-mariadb | |
brew install php54-apc openssl php54-uploadprogress php54-xdebug php54-intl --with-pgsql --with-mariadb | |
brew install php53 --with-pgsql --with-mariadb --with-intl --with-suhosin | |
brew install --with-homebrew-php php54-uploadprogress | |
#brew install php54 --with-pgsql --with-mariadb --with-intl | |
# Install debugging tools | |
brew install php54-xhprof | |
brew install php54-xdebug | |
# Config php.ini | |
/usr/local/etc/php/5.4/php.ini | |
date.timezone = Europe/Oslo | |
export PATH="$(brew --prefix josegonzalez/php/php54)/bin:$PATH" | |
export PATH="$(brew --prefix josegonzalez/php/php53)/bin:$PATH" | |
##Apache | |
/private/etc/apache2/httpd.conf | |
LoadModule php5_module /usr/local/Cellar/php54/5.4.10/libexec/apache2/libphp5.so | |
## PostgreSQL | |
'brew install postgres' | |
Init db: 'initdb /usr/local/var/postgres' | |
Start postgres: 'postgres -D /usr/local/var/postgres'` | |
or by using: pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start | |
Need more info, then run 'brew info postgresql' | |
/usr/local/Cellar/postgresql/9.1.4/bin/createdb and createuser | |
## MariaDB | |
brew install mariadb | |
#Init db: | |
unset TMPDIR | |
mysql_install_db | |
#Start db server: | |
cd /usr/local/Cellar/mariadb/5.3.7 | |
/usr/local/Cellar/mariadb/5.3.7/bin/mysqld_safe --datadir=/usr/local/var/mysql | |
or | |
mysql.server start | |
/usr/local/Cellar/mariadb/5.3.7/bin/mysqladmin -u root password 'new-password' | |
/usr/local/Cellar/mariadb/5.3.7/bin/mysqladmin -u root -h Flisa.local password 'new-password' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment