Homebrew

http://mxcl.github.io/homebrew/

Installer

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Mettre à jour rsync

http://www.chrissearle.org/blog/technical/mac_homebrew_and_homebrew_alt

https://github.com/Homebrew/homebrew-dupes/

brew install https://raw.github.com/Homebrew/homebrew-dupes/master/rsync.rb

nginx

brew install nginx

Toute la configuration est là : /usr/local/etc/nginx

Pour tester

sudo nginx -t

Pour relancer

sudo nginx -s reload

MySQL

brew install mysql
mysql.server start

Redis

brew install redis
redis-server /usr/local/etc/redis.conf

Sphinx

brew install sphinx --mysql

Lancer avec

searchd -c /usr/local/etc/sphinx.conf

Apache

brew tap homebrew/apache
brew install httpd22

PHP 5.5

brew tap homebrew/dupes
brew tap homebrew/php
brew install --without-apache --with-fpm --with-mysql php55

Lancer ou stopper
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php54.plist
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php54.plist
The php.ini file can be found in:
    /usr/local/etc/php/5.5/php.ini

✩✩✩✩ PEAR ✩✩✩✩

If PEAR complains about permissions, 'fix' the default PEAR permissions and config:
    chmod -R ug+w /usr/local/Cellar/php55/5.5.16/lib/php
    pear config-set php_ini /usr/local/etc/php/5.5/php.ini

✩✩✩✩ Extensions ✩✩✩✩

If you are having issues with custom extension compiling, ensure that
you are using the brew version, by placing /usr/local/bin before /usr/sbin in your PATH:

      PATH="/usr/local/bin:$PATH"

PHP55 Extensions will always be compiled against this PHP. Please install them
using --without-homebrew-php to enable compiling against system PHP.

✩✩✩✩ PHP CLI ✩✩✩✩

If you wish to swap the PHP you use on the command line, you should add the following to ~/.bashrc,
~/.zshrc, ~/.profile or your shell's equivalent configuration file:

      export PATH="$(brew --prefix homebrew/php/php55)/bin:$PATH"

✩✩✩✩ FPM ✩✩✩✩

To launch php-fpm on startup:
    * If this is your first install:
        mkdir -p ~/Library/LaunchAgents
        cp /usr/local/Cellar/php55/5.5.16/homebrew.mxcl.php55.plist ~/Library/LaunchAgents/
        launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php55.plist

    * If this is an upgrade and you already have the homebrew.mxcl.php55.plist loaded:
        launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php55.plist
        cp /usr/local/Cellar/php55/5.5.16/homebrew.mxcl.php55.plist ~/Library/LaunchAgents/
        launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php55.plist

The control script is located at /usr/local/Cellar/php55/5.5.16/sbin/php55-fpm

Mountain Lion comes with php-fpm pre-installed, to ensure you are using the brew version you need to make sure /usr/local/sbin is before /usr/sbin in your PATH:

  PATH="/usr/local/sbin:$PATH"

You may also need to edit the plist to use the correct "UserName".

Please note that the plist was called 'homebrew-php.josegonzalez.php55.plist' in old versions
of this formula.

To have launchd start php55 at login:
    ln -sfv /usr/local/opt/php55/*.plist ~/Library/LaunchAgents
Then to load php55 now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php55.plist