The current virtual machine is 12.04 of the system, and the default PHP only has 5.3.x. Because you want to use the Trait function, you just want to upgrade it. Result... Unable to survive or survive. So I found some information and found that there were only three sentences: sudo? Add-apt-repository? Ppa: ondrejphp5 ?? Sudo? Apt-get? Update ?? Sudo? Apt-get? Upgrade,
The current virtual machine is 12.04 of the system, and the default PHP only has 5.3.x. Because you want to use the Trait function, you just want to upgrade it. Result... Unable to survive or survive. So I found some information and found that there were only three sentences: sudo? Add-apt-repository? Ppa: ondrej/php5 ?? Sudo? Apt-get? Update ?? Sudo? Apt-get? Upgrade,
The current virtual machine is 12.04 of the system, and the default PHP only has 5.3.x. Because you want to use the Trait function, you just want to upgrade it. Result... Unable to survive or survive. So I found some information and found that there were only three sentences:
Sudo? Add-apt-repository? Ppa: ondrej/php5 ?? Sudo? Apt-get? Update ?? Sudo? Apt-get? Upgrade
The world will be much more quiet once the three statements are answered. Only some components installed in the past will be re-compiled: redis, mongo, gearman, and APC. Because extension_dir has changed its location. You cannot copy the so files directly. Even if it is abnormal, re-compilation will be fast ..
If you like to compile your own, you can also read this: https://gist.github.com/ziadoz/3130816
This article from: http://neatstudio.com/, original address: http://neatstudio.com/show-2414-1.shtml, thanks to the original author to share.
Original article address: Upgrade PHP to 5.4 (ubuntu 12.04). Thank you for sharing it with me.