一聚教程网:一个值得你收藏的教程网站

热门教程

ubuntu 12.04 安装最新版PHP?

时间:2022-06-30 19:32:05 编辑:袖梨 来源:一聚教程网

1. Install the signing key for the PPA (which also adds the sources to apt):

add-apt-repository ppa:ondrej/php5If the above command is not available, install it using:

 代码如下 复制代码

apt-get install python-software-properties


2. Now update the package database and then upgrade the system. As part of upgrading, PHP 5.4 will be installed automatically:

 代码如下 复制代码

apt-get update
apt-get upgrade
apt-get dist-upgrade

# php -v  // will show you the latest php version.

热门栏目