Macosx php version changed

Source: Internet
Author: User
Tags zend server
It turns out that zendstudio + zenddebugger has been used for code debugging during development on windows, but zenddebugger's php version only reaches 5.3 and will not be followed. I heard it was integrated into zendserver. It's too far away, not to mention that. Since php5.4 has no way to use zenddebugger, can I use php5which comes with osx.

It turns out that zendstudio + zenddebugger has been used for code debugging during development on windows, but zenddebugger's php version only reaches 5.3 and will not be followed. I heard it was integrated into the zend server. It's too far away, not to mention that. Since php5.4 has no way to use zenddebugger, can I use php5which comes with osx.

It turns out that zendstudio + zenddebugger has been used for code debugging during development on windows, but zenddebugger's php version only reaches 5.3 and will not be followed.

I heard it was integrated into the zend server. It's too far away, not to mention that. Since php5.4 cannot be used for zenddebugger, can I replace php5.4 of osx with php5.3?

Google Now, and I found it was actually quite simple. One line of code.

Curl-s http://php-osx.liip.ch/install.sh | bash-s 5.3

If php is directly executed in the form of a pencil, php 5.4 is still available. Next we can replace the default php with our 5.3 version

# Back up the default version. If you do not want to back up the version, simply delete it.
Mv/usr/bin/php/usr/bin/php-php-5.4.17

Ln-s/usr/local/php5-5.3.28-20140112-174528/bin/php/usr/bin/php
The terminal executes php-v to display php5.3.

This article from: http://www.lampblog.net, original address: http://www.lampblog.net/2014/11/mac-osx-%e6%9b%b4%e6%94%b9%e8%87%aa%e5%b8%a6php%e7%89%88%e6%9c%ac/, thanks to the original author to share.

Related Article

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.