Fast install PHP 5.4 under Mac

Source: Internet
Author: User

The laptop has been upgraded to OS X 10.8, but occasionally you'll need to write a little php to adjust it. Take a look at your own PHP version?

PHP 5.3.13 with Suhosin-patch (CLI) (Built:jun 20 2012 17:05:20)

Copyright (c) 1997-2012 the PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

For the new race, you have to upgrade to PHP 5.4 to be happy. Quickly complete the upgrade with the help of homebrew:

installation process

Two lines.

Brew Tap josegonzalez/homebrew-php

Brew Install PHP54

This installs the PHP path in/usr/local/bin/php, version information:

/usr/local/bin/php-v

PHP 5.4.4 (CLI) (Built:jul 27 2012 08:42:32)

Copyright (c) 1997-2012 the PHP Group

Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies



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.