Homebrew installing php5 and composer for Mac tutorials

Source: Internet
Author: User
Tags fpm install brew install homebrew

Install Brew to view tutorials: Mac OS X 10.9.1 install homebrew package management tools and brew installation maven3.1.1

First update the next Brew Software Library

Brew updatebrew Tap Josegonzalez/homebrew-php

Brew Installation php5.5

sudo Install  --with---with---with---with-homebrew---with-imap--with-- -with---without---without---without---without-pear

More installation options can be viewed through the brew options Php55″.
Tip: –with-cgi cannot be installed with –WITH-FPM and conflict with each other
After the instructions are executed, PHP and PHP-FPM are installed.

Because it is a reload of PHP, before the system pre-installed PHP has not been uninstalled, so when the terminal calls PHP, or in the previous version of the PHP system to parse, so here need to modify path, specify the parsing path of PHP. At ~/.BASHRC (not created), add a line last:

Export path="$ (Brew--prefix php55)/bin: $PATH"

Add and then execute the source to make it effective

source. BASHRC

View PHP Version

havenshendemacbook-air:~ haven$ php-5.5.  -  -  the £   º 1997-The PHP groupzend Engine v2. 5.0 1998- Zend Technologies

Complete

Brew Installation composer

Install Josegonzalez/php/composer

Input in Shell

Composer

This meeting appears composer installation complete

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.