- install php5.5 with liip. All modifications on php.ini must be made in
/usr/local/php5/php.d/99-liip-developer.ini
- In ~/.bash_profile define wich php the system will use :
PATH=/usr/local/php5/bin:$PATH
Create vhosts
In /etc/apache2/extra/httpd-vhosts.conf
use this structure:
<VirtualHost *:80>
DocumentRoot "/Users/USERNAME/Sites"
ServerName localhost
<Directory "/Users/USERNAME/Sites">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Add the new virtual host in /etc/hosts
:
127.0.0.1 localhost
Enable the vhosts in /etc/apache2/httpd.conf
:
-
User USERNAME
-
Group staff
-
Uncomment
Include /etc/apache2/extra/httpd-vhosts.conf
-
Restart apache
sudo apachectl restart
-
Uncomment these following lines:
LoadModule authz_core_module libexec/apache2/mod_authz_core.so
LoadModule authz_host_module libexec/apache2/mod_authz_host.so
LoadModule userdir_module libexec/apache2/mod_userdir.so
Include /private/etc/apache2/extra/httpd-userdir.conf
Create user configuration
- Create a file in
/etc/apache2/users/USERNAME.conf
- Uncomment:
Include /private/etc/apache2/users/*.conf
- Enter this structure:
<Directory "/Users/USERNAME/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Require all granted
</Directory>
- Restart apache
sudo apachectl restart
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
And install mysql via brew : (pay attention to which version of MySQL you're downloading)
brew install mysql
cp /usr/local/Cellar/mysql/5.6.24/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
mysqladmin -u root password 'root'
mysql.server start
brew install git
https://getcomposer.org/doc/00-intro.md#globally
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.2/install.sh | bash
nvm use 0.10.36
global (recommended):
brew install redis
brew install rabbitmq
http://naleid.com/blog/2011/03/05/running-redis-as-a-user-daemon-on-osx-with-launchd
npm install -g less
If you want to open a file with Sublime from Terminal
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl