Skip to content

Instantly share code, notes, and snippets.

@slavcodev
Forked from mystix/setup-php-dev.sh
Created October 20, 2013 19:00
Show Gist options
  • Save slavcodev/7073765 to your computer and use it in GitHub Desktop.
Save slavcodev/7073765 to your computer and use it in GitHub Desktop.

Revisions

  1. @mystix mystix revised this gist May 6, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -31,7 +31,7 @@ zend_extension = \"`brew --prefix php54-xdebug`/xdebug.so\"
    xdebug.remote_enable = 1
    ; use port 9009 because php-fpm uses 9000 by default
    xdebug.remote_port = 9009
    " >> /usr/local/etc/php/5.3/php.ini
    " >> /usr/local/etc/php/5.4/php.ini


    # set up mysql to run as user account
  2. @mystix mystix revised this gist May 6, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ brew tap homebrew/dupes

    # install nginx + mysql + php 5.4 + php-fpm + apc + xdebug
    brew install nginx mysql
    brew install --with-suhosin --with-fpm --with-mysql php54
    brew install --with-fpm --with-mysql php54
    brew install php54-apc php54-mcrypt php54-xdebug


  3. @mystix mystix revised this gist May 6, 2013. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -3,20 +3,20 @@
    # install homebrew's official php tap
    brew tap josegonzalez/homebrew-php

    # install homebrew-dupes (required to install zlib, php53's dependency)
    # install homebrew-dupes (required to install zlib, php54's dependency)
    brew tap homebrew/dupes

    # install nginx + mysql + php 5.3 + php-fpm + apc + xdebug
    # install nginx + mysql + php 5.4 + php-fpm + apc + xdebug
    brew install nginx mysql
    brew install --with-suhosin --with-fpm --with-mysql php53
    brew install php53-apc php53-xdebug
    brew install --with-suhosin --with-fpm --with-mysql php54
    brew install php54-apc php54-mcrypt php54-xdebug


    # add apc + xdebug configs to php.ini:
    echo "
    [apc]
    extension = \"`brew --prefix php53-apc`/apc.so\"
    extension = \"`brew --prefix php54-apc`/apc.so\"
    apc.enabled = 1
    apc.shm_segments = 1
    apc.shm_size = 64M
    @@ -27,7 +27,7 @@ apc.mmap_file_mask = /tmp/apc.XXXXXX
    apc.enable_cli = 1
    [xdebug]
    zend_extension = \"`brew --prefix php53-xdebug`/xdebug.so\"
    zend_extension = \"`brew --prefix php54-xdebug`/xdebug.so\"
    xdebug.remote_enable = 1
    ; use port 9009 because php-fpm uses 9000 by default
    xdebug.remote_port = 9009
    @@ -45,8 +45,8 @@ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist


    # launch php-fpm on startup
    cp `brew --prefix php53`/homebrew-php.josegonzalez.php53.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist
    cp `brew --prefix php54`/homebrew-php.josegonzalez.php54.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php54.plist


    # launch nginx at startup as root (in order to listen on privileged port 80):
  4. @mystix mystix revised this gist Nov 14, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ brew tap homebrew/dupes

    # install nginx + mysql + php 5.3 + php-fpm + apc + xdebug
    brew install nginx mysql
    brew install --without-apache --with-suhosin --with-fpm --with-mysql php53
    brew install --with-suhosin --with-fpm --with-mysql php53
    brew install php53-apc php53-xdebug


  5. @mystix mystix revised this gist Nov 9, 2012. No changes.
  6. @mystix mystix revised this gist Aug 6, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,8 @@
    # install homebrew's official php tap
    brew tap josegonzalez/homebrew-php

    # install homebrew-dupes (required to install zlib, php53's dependency)
    brew tap homebrew/dupes

    # install nginx + mysql + php 5.3 + php-fpm + apc + xdebug
    brew install nginx mysql
  7. @mystix mystix revised this gist Jul 20, 2012. No changes.
  8. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,7 @@ launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist

    # launch nginx at startup as root (in order to listen on privileged port 80):
    sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    sed -i -e 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
    sudo sed -i -e 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
    sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist


  9. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -53,5 +53,8 @@ sed -i -e 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
    sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist


    # POST-INSTALL PROCEDURE
    # 1) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
    echo "
    POST-INSTALL PROCEDURE:
    =======================
    1) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
    "
  10. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -32,7 +32,7 @@ xdebug.remote_port = 9009
    " >> /usr/local/etc/php/5.3/php.ini


    # set up mysql db to run as user account
    # set up mysql to run as user account
    unset TMPDIR
    mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

  11. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -10,9 +10,20 @@ brew install --without-apache --with-suhosin --with-fpm --with-mysql php53
    brew install php53-apc php53-xdebug


    # add xdebug config to php.ini:
    # add apc + xdebug configs to php.ini:
    echo "
    [apc]
    extension = \"`brew --prefix php53-apc`/apc.so\"
    apc.enabled = 1
    apc.shm_segments = 1
    apc.shm_size = 64M
    apc.ttl = 7200
    apc.user_ttl = 7200
    apc.num_files_hint = 1024
    apc.mmap_file_mask = /tmp/apc.XXXXXX
    apc.enable_cli = 1
    [xdebug]
    zend_extension = \"`brew --prefix php53-xdebug`/xdebug.so\"
    xdebug.remote_enable = 1
  12. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 20 additions and 17 deletions.
    37 changes: 20 additions & 17 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -1,43 +1,46 @@
    #!/bin/bash

    # install mysql & nginx
    brew install mysql nginx


    # install homebrew's official php tap
    brew tap josegonzalez/homebrew-php


    # install nginx + mysql + php 5.3 + php-fpm + apc + xdebug
    brew install nginx mysql
    brew install --without-apache --with-suhosin --with-fpm --with-mysql php53
    brew install php53-apc php53-xdebug


    # Set up mysql db to run as user account
    # add xdebug config to php.ini:
    echo "
    [xdebug]
    zend_extension = \"`brew --prefix php53-xdebug`/xdebug.so\"
    xdebug.remote_enable = 1
    ; use port 9009 because php-fpm uses 9000 by default
    xdebug.remote_port = 9009
    " >> /usr/local/etc/php/5.3/php.ini


    # set up mysql db to run as user account
    unset TMPDIR
    mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp


    # Launch mysql on startup
    # launch mysql on startup
    cp `brew --prefix mysql`/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist


    # Add xdebug config to php.ini:
    [xdebug]
    zend_extension = "<xdebug install directory -- check using `brew --prefix php53-xdebug`>/xdebug.so"
    xdebug.remote_enable = 1
    ; use port 9009 because php-fpm uses 9000 by default
    xdebug.remote_port = 9009


    # Launch php-fpm on startup
    # launch php-fpm on startup
    cp `brew --prefix php53`/homebrew-php.josegonzalez.php53.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist


    # Launch nginx at startup as root (in order to listen on privileged port 80):
    # launch nginx at startup as root (in order to listen on privileged port 80):
    sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    sed -i -e 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
    sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist


    # POST-INSTALL PROCEDURE
    # 1) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
    # 1) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
  13. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 13 additions and 13 deletions.
    26 changes: 13 additions & 13 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -15,29 +15,29 @@ unset TMPDIR
    mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp


    # launch mysql on startup
    # Launch mysql on startup
    cp `brew --prefix mysql`/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist


    # launch php-fpm on startup
    # Add xdebug config to php.ini:
    [xdebug]
    zend_extension = "<xdebug install directory -- check using `brew --prefix php53-xdebug`>/xdebug.so"
    xdebug.remote_enable = 1
    ; use port 9009 because php-fpm uses 9000 by default
    xdebug.remote_port = 9009


    # Launch php-fpm on startup
    cp `brew --prefix php53`/homebrew-php.josegonzalez.php53.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist


    # Automatically run nginx as root (in order to listen on privileged port 80) at startup:
    # Launch nginx at startup as root (in order to listen on privileged port 80):
    sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    sed -i -e 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
    sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist


    # POST-INSTALL PROCEDURE -- launch nginx on startup
    # 1) Add xdebug config to php.ini:
    #
    # [xdebug]
    # zend_extension = "<xdebug install directory -- check using `brew --prefix php53-xdebug`>/xdebug.so"
    # xdebug.remote_enable = 1
    # ; use port 9009 because php-fpm uses 9000 by default
    # xdebug.remote_port = 9009
    #
    # 2) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
    # POST-INSTALL PROCEDURE
    # 1) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
  14. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,12 @@ cp `brew --prefix php53`/homebrew-php.josegonzalez.php53.plist ~/Library/LaunchA
    launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist


    # Automatically run nginx as root (in order to listen on privileged port 80) at startup:
    sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    sed -i -e 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
    sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist


    # POST-INSTALL PROCEDURE -- launch nginx on startup
    # 1) Add xdebug config to php.ini:
    #
    @@ -34,10 +40,4 @@ launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist
    # ; use port 9009 because php-fpm uses 9000 by default
    # xdebug.remote_port = 9009
    #
    # 2) Automatically run nginx as root (in order to listen on privileged port 80) at startup:
    #
    # sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    # sed -i -e 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
    # sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    #
    # 3) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
    # 2) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
  15. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -37,7 +37,7 @@ launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist
    # 2) Automatically run nginx as root (in order to listen on privileged port 80) at startup:
    #
    # sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    # sed -i 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
    # sed -i -e 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
    # sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    #
    # 3) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
  16. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist
    # ; use port 9009 because php-fpm uses 9000 by default
    # xdebug.remote_port = 9009
    #
    # 2) Set nginx to run automatically at startup as root (so port 80 can be used):
    # 2) Automatically run nginx as root (in order to listen on privileged port 80) at startup:
    #
    # sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    # sed -i 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
  17. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,10 @@ launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist
    # ; use port 9009 because php-fpm uses 9000 by default
    # xdebug.remote_port = 9009
    #
    # 2) sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    # 3) change "userName" key in /Library/LaunchDaemons/homebrew.mxcl.nginx.plist to "root"
    # 4) sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    # 5) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
    # 2) Set nginx to run automatically at startup as root (so port 80 can be used):
    #
    # sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    # sed -i 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist
    # sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    #
    # 3) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
  18. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -6,8 +6,8 @@ brew install mysql nginx

    # install homebrew's official php tap
    brew tap josegonzalez/homebrew-php
    brew install --with-fpm --with-mysql --without-apache php53
    brew install php53-xdebug
    brew install --without-apache --with-suhosin --with-fpm --with-mysql php53
    brew install php53-apc php53-xdebug


    # Set up mysql db to run as user account
  19. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ brew install mysql nginx


    # install homebrew's official php tap
    brew tap josegonzalez/php
    brew tap josegonzalez/homebrew-php
    brew install --with-fpm --with-mysql --without-apache php53
    brew install php53-xdebug

  20. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -29,12 +29,12 @@ launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist
    # 1) Add xdebug config to php.ini:
    #
    # [xdebug]
    # zend_extension = "/usr/local/Cellar/php53-xdebug/2.2.0/xdebug.so"
    # zend_extension = "<xdebug install directory -- check using `brew --prefix php53-xdebug`>/xdebug.so"
    # xdebug.remote_enable = 1
    # ; use port 9009 because php-fpm uses 9000 by default
    # xdebug.remote_port = 9009
    #
    # 2) sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    # 3) remove "userName" key and value from /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    # 3) change "userName" key in /Library/LaunchDaemons/homebrew.mxcl.nginx.plist to "root"
    # 4) sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    # 5) configure netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
    # 5) configure intellij / netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
  21. @mystix mystix revised this gist Jul 20, 2012. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -16,12 +16,12 @@ mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --


    # launch mysql on startup
    cp /usr/local/Cellar/mysql/5.5.25/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
    cp `brew --prefix mysql`/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist


    # launch php-fpm on startup
    cp /usr/local/Cellar/php53/5.3.13/homebrew-php.josegonzalez.php53.plist ~/Library/LaunchAgents/
    cp `brew --prefix php53`/homebrew-php.josegonzalez.php53.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist


    @@ -34,7 +34,7 @@ launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist
    # ; use port 9009 because php-fpm uses 9000 by default
    # xdebug.remote_port = 9009
    #
    # 2) sudo cp /usr/local/Cellar/nginx/1.2.2/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    # 2) sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    # 3) remove "userName" key and value from /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    # 4) sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    # 5) configure netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009
  22. @mystix mystix revised this gist Jul 3, 2012. No changes.
  23. @mystix mystix revised this gist Jul 3, 2012. No changes.
  24. @mystix mystix created this gist Jul 3, 2012.
    40 changes: 40 additions & 0 deletions setup-php-dev.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    #!/bin/bash

    # install mysql & nginx
    brew install mysql nginx


    # install homebrew's official php tap
    brew tap josegonzalez/php
    brew install --with-fpm --with-mysql --without-apache php53
    brew install php53-xdebug


    # Set up mysql db to run as user account
    unset TMPDIR
    mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp


    # launch mysql on startup
    cp /usr/local/Cellar/mysql/5.5.25/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist


    # launch php-fpm on startup
    cp /usr/local/Cellar/php53/5.3.13/homebrew-php.josegonzalez.php53.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php53.plist


    # POST-INSTALL PROCEDURE -- launch nginx on startup
    # 1) Add xdebug config to php.ini:
    #
    # [xdebug]
    # zend_extension = "/usr/local/Cellar/php53-xdebug/2.2.0/xdebug.so"
    # xdebug.remote_enable = 1
    # ; use port 9009 because php-fpm uses 9000 by default
    # xdebug.remote_port = 9009
    #
    # 2) sudo cp /usr/local/Cellar/nginx/1.2.2/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
    # 3) remove "userName" key and value from /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    # 4) sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    # 5) configure netbeans / phpstorm / eclipse pdt to connect to xdebug on port 9009