Use your own installed PHP under Mac OS System

Source: Internet
Author: User

Today in the installation of the Unit test Framework PHPUnit, the minimum version required for PHP is 5.6, because the PHP version that my MacBook comes with is 5.5.36 and cannot meet the installation conditions.

Looked at this URL: https://php-osx.liip.ch/#install, but can not download, the inside of a sentence caught my attention:

You can also adjust your PATH does include that directory, eg. Write into your ~/.profile file the following

Export Path=/usr/local/php5/bin: $PATH

So I created the. profile file in the ~/directory and added the PHP path to the mamp I installed,

Export Path=/applications/mamp/bin/php/php5.6.10/bin: $PATH

Then command source. profile, using php-v to display the PHP version of the current environment, and find that it has changed

Use your own installed PHP under Mac OS System

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.