Skip to content

Instantly share code, notes, and snippets.

Install PHP, MySQL, PostgreSQL, Apache and xDebug on a Mac

You should have some tools installed like Homebrew, a text editor such as Sublime Text and it's subl command line app inside a bin folder and some basic terminal knowledge.

This gist is a more detailed version of niepi's gist with things that worked for me. It may help someone :)

Install PHP

$ brew install php --with-apache --with-mysql --with-pgsql --with-intl

THE BASIC

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install avahi-daemon 

Apache Server

POST: /api/v1/user/create/
1) step1_1_sender_create: passed
GET: /api/v1/sender/8/user/
2) step1_2_sender_userprofile: passed
POST: /api/v1/user/login/
3) step2_1_login: passed
POST: /api/v1/user/login-by-code/
4) step2_2_login: passed
POST: /api/v1/user/9/update/
5) step3_update_user_profile: passed
POST: /api/v1/user/create/
1) step1_1_sender_create: passed
GET: /api/v1/sender/8/user/
2) step1_2_sender_userprofile: passed
POST: /api/v1/user/login/
3) step2_1_login: passed
POST: /api/v1/user/login-by-code/
4) step2_2_login: passed
POST: /api/v1/user/9/update/
5) step3_update_user_profile: passed