add php setup for Ubuntu and OS X