OSX Dev Tools is a script to set up your Max OS X laptop as a web development machine.
- OSX Mountain Lion (This is what I'm using so it's the only version I'm targeting, sorry)
- XCode 4.4
- X11
- MySQL
Run the script:
git clone https://github.com/newism/osx-dev-tools.git
./osx-dev-tools/mac
- SSH public key (for authenticating with services like Github and Heroku)
- Homebrew (for managing operating system libraries)
- Git
- Git Flow
- PhantomJS (For headless JavaScript testing)
- Ack (for finding things in files)
- ImageMagick (for cropping and resizing images)
- RVM (for managing versions of the Ruby programming language)
- Ruby language (for writing general-purpose code)
- Bunch of commonly used gems (Sass, Compass, Stitch etc...)
- Node (The awesome Javascript runtime)
- NPM (Node package manager)
- Coffeescript
- Bunch of commonly-used node packages
- PHP 5.3 & PHP 5.4 w/ intl, apc, xdebug, twig and composer (https://github.com/josegonzalez/homebrew-php)
It should take about 30 minutes for everything to install, depending on your machine.
- MySQL
- Apache
- Enabling PHP in Apache
- Setting up VirtualHosts
- Apps
The installer doesn't do these things because it's a) Already installed in MacOSX by default or b) It needs admin rights.
Find this line in /etc/apache2/httpd.conf
starting with:
LoadModule php5_module /some/path
And replace the path with:
# PHP 5.3
LoadModule php5_module /usr/local/opt/php53/libexec/apache2/libphp5.so
or
# PHP 5.4
LoadModule php5_module /usr/local/opt/php53/libexec/apache2/libphp5.so
Add this line to the bottom of the file:
Include /private/etc/apache2/extra/httpd-vhosts.conf
The php.ini file is located in /usr/local/etc/php/5.3/conf.d/ext-xdebug.ini
. You'll need to add these settings to the bottom
of the file and restart Apache.
[xdebug]
zend_extension="/usr/local/Cellar/php53-xdebug/2.2.1/xdebug.so"
xdebug.file_link_format="txmt://open?url=file://%%f&line=%%l"
xdebug.default_enable=1
xdebug.scream=1
xdebug.cli_color=1
xdebug.max_nesting_level = 200
xdebug.overload_var_dump=1
xdebug.var_display_max_depth=6
xdebug.var_display_max_data=2048
var_display_max_children=256
xdebug.profiler_enable_trigger = 1
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_host=127.0.0.1
xdebug.remote_autostart=1
xdebug.idekey=PHPSTORM
xdebug.extended_info=1
I use VirtualHostX for all of my VirtualHost needs.
First, install the package manager:
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
Here are some recommended packages.