Download and install:
Create sublime shortcut
sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /bin/subl
Update porsts sudo port -v selfupdate
## Install Apache2
sudo port install apache2
sudo port load apache2
Edit: subl /opt/local/apache2/conf/httpd.conf
and change default dir /opt/local/apache2/htdocs
Restart apache: sudo port unload apache2 && sudo port load apache2
Setup some virtualhosts: subl /opt/local/apache2/conf/extra/httpd-vhosts.conf
sudo port install php +apache2 +pear
Install MySQL Sever
sudo port install mysql5-server
sudo port load mysql5-server
sudo port install php +apache2
sudo port install php5-mysql +mysqlnd
Copy php.ini file:
sudo cp /opt/local/etc/php5/php.ini-development /opt/local/etc/php5/php.ini
Setup default mysql socket:
pdo_mysql.default_socket=/opt/local/var/run/mysql55/mysqld.sock
Activate PHP5 apache module:
cd /opt/local/apache2/modules
sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
sudo port install git-core +bash_completion
sudo port install nodejs
### Install NPM:
sudo curl http://npmjs.org/install.sh | sh
### Install composer:
sudo curl -s http://getcomposer.org/installer | php && mv ./composer.phar /bin/composer
sudo composer self-update
## Git
git config --global user.name "Your Name"
git config --global user.email [email protected]
### VPN
Download https://code.google.com/p/tunnelblick/ and install
open ~/Library/Application\ Support/Tunnelblick/Configurations/
See my ```~/.bash_profile``
Resources: