今天,当前的PHP版本是Php7.0.8,我想用aptitude安装和安装Php7.0.5。例如,dotdeb存储库可以实现吗?
如何在Debian 8 Jessie上获得具有aptitude的特定php版本?
答案 0 :(得分:1)
你可以用:
安装php7.0.5首先,获取安装存档:
wget http://www.php.net/distributions/php-7.0.5.tar.xz
接下来,解压缩文件:
tar xvfJ php-7.0.5.tar.xz
进入目录提取:
cd php-7.0.5
配置您的安装(You can help with the online php documentation installation configuration option)
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--datadir=/usr/share/php \
--mandir=/usr/share/man \
--enable-fpm \
--with-fpm-user=www-data \
--with-fpm-group=www-data \
--with-config-file-path=/etc \
--enable-fastcgi \
--enable-ftp
安装:
make
make test
make install
安装php.ini:
install -v -m644 php.ini-production /etc/php.ini && mv -v /etc/php-fpm.conf{.default,}
你应该获得这样的输出:
php -v
:PHP 7.0.5-1~docdeb + 8.1(cli)(NTS) 版权所有(c)1997-2016 PHP小组 Zend Engine v3.0.0,版权所有(c)1998-2016 Zend Technologies Zend Technologies的Zend OPcache v7.0.6-dev,Copyright(c)1999-2016,
php-fpm -v
:PHP 7.0.5-1~docdeb + 8.1(fpm-fcgi) 版权所有(c)1997-2016 PHP小组 Zend Engine v3.0.0,版权所有(c)1998-2016 Zend Technologies Zend Technologies的Zend OPcache v7.0.6-dev,Copyright(c)1999-2016,