Download and install:
Create sublime shortcut:
sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /bin/subl
Show hidden files in Finder:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
Update macports sudo port -v selfupdate
## Install Apache2
sudo port install apache2
sudo port load apache2
Edit: subl /opt/local/apache2/conf/httpd.conf
set:
- default htdocs dir
/opt/local/apache2/htdocs
to something - add
ServerName localhost:80
- add
LoadModule php5_module modules/mod_php54.so
- change
DirectoryIndex index.html
toDirectoryIndex index.html index.php
- add
AddType application/x-httpd-php .php
andAddType application/x-httpd-php-source .phps
- uncomment
Include conf/extra/httpd-vhosts.conf
and addNameVirtualHost *:80
Restart apache: sudo port unload apache2 && sudo port load apache2
or apache-restart
if you use my .bash_profile
Setup some virtual hosts: subl /opt/local/apache2/conf/extra/httpd-vhosts.conf
sudo port install php54 php54-apache2handler
sudo port select php php54
php -v
sudo port install php54-APC
sudo port install php54-memcached
sudo port install php54-curl
sudo port install php54-gd
sudo port install php54-soap
sudo port install php54-sockets
sudo port install php54-http
sudo port install php54-iconv
sudo port install php54-imagick
sudo port install php54-imap
sudo port install php54-mbstring
sudo port install php54-mcrypt
sudo port install php54-mysql
sudo port install php54-openssl
sudo port install php54-tidy
sudo port install php54-gettext
sudo port install php54-zip
sudo port install php54-mongo
sudo port install php54-xdebug
For more run sudo port search php54-
sudo cp /opt/local/etc/php54/php.ini-development /opt/local/etc/php54/php.ini
edit subl /opt/local/etc/php54/php.ini
and set:
pdo_mysql.default_socket=/opt/local/var/run/mysql55/mysqld.sock
sudo port install mysql5-server
sudo port load mysql5-server
sudo port install mongodb
sudo port install git-core +bash_completion
and
git config --global user.name "Your Name"
git config --global user.email [email protected]
sudo port install nodejs
curl http://npmjs.org/install.sh | sh
sudo chmod -R g+w /opt/local/
Or curl -k https://npmjs.org/install.sh | sudo sh
if you have trable with error newline
npm install -g bower
npm install -g grunt-cli
### Install composer:
sudo curl -s http://getcomposer.org/installer | php && mv ./composer.phar /bin/composer
sudo composer self-update
## Install VPN
Download https://code.google.com/p/tunnelblick/ and install
open ~/Library/Application\ Support/Tunnelblick/Configurations/
Resources:
- Install MAMP with mac ports
- See my ```~/.bash_profile``