PHP extension repair after Mac upgrade Yosemite

Source: Internet
Author: User

PHP is automatically upgraded after Mac upgrade, resulting in PHP environment corruption


So there are a few points to fix


1.

sudo ln-s/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/sdks/ MACOSX10.10.SDK/usr/include/usr/include


Note the red part, if you upgrade to mertricks then it should be 10.10.

If you're the newest Yosemite, then it's 10.0.

If you execute this command error, please delete/usr/include first

sudo rm/usr/include

2. Modify PHP.ini

You'll find a few more files on etc

1.php.ini.xxx.previos

2.php.ini.xxx.default.previos

These two are old files.



3.php.ini.default

Copy this file

sudo cp php.ini.default php.ini

sudo chmod 744 php.ini


3. After your extension is installed with Phpize



PHP extension repair after Mac upgrade Yosemite

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.