[解决了]
我有安装php 5.4.18的Debian Wheezy.我想将它升级到5.5.x,但标准程序无法正常工作.
这是我的/etc/apt/sources.list文件:
# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 NETINST Binary-1 20130504-14:43]/ wheezy main
deb http://ftp.pl.debian.org/debian/ wheezy main
deb-src http://ftp.pl.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
deb http://ftp.pl.debian.org/debian/ wheezy-updates main
deb-src http://ftp.pl.debian.org/debian/ wheezy-updates main
#php 5.5
deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all
Run Code Online (Sandbox Code Playgroud)
我更新了源代码
apt-get update
Run Code Online (Sandbox Code Playgroud)
并安装了php5
apt-get install php5
Run Code Online (Sandbox Code Playgroud)
但在httpd重启后我还有旧的php版本.
php -v
Run Code Online (Sandbox Code Playgroud)
收益:
root@xxx:/# php -v
PHP 5.4.18 (cli) (built: Aug 19 2013 …Run Code Online (Sandbox Code Playgroud)