2015年3月27日 星期五

stay up-to-date with PHP

You could use a PPA to stay up-to-date with PHP. I use:
It's now on 5.5 and also includes Apache 2.4 update. For Apache 2.2+ PHP 5.4 repository, see the bottom of the answer.
If you want use this PHP, do this:
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5
If you don't have add-apt-repository binary do the following:
sudo apt-get install python-software-properties
Precautions:

For Ubuntu 12.10

Ubuntu 12.10's official repository is updated to PHP 5.4. You should use the main repository package if you can. To do this, just install PHP5Install php5 without enabling any PPA.

PHP 5.4

Prepackaged latest PHP 5.4 now resides in separate PPA: ppa:ondrej/php5-oldstable Launchpad logo

沒有留言:

張貼留言