Installation of PHP query

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
baz123
Posts: 65
Joined: Thu Jan 12, 2017 8:23 pm

Installation of PHP query

Post by baz123 » Wed Feb 14, 2018 9:21 am

I am wondering why, having installed the LLAP package (82) on Dietpi, if I simulate an install for PHP7.0 apt tells me it will install it.

Code: Select all

root@DietPi-EmonV6:~# php -v
PHP 7.0.27-0+deb9u1 (cli) (built: Jan  5 2018 13:51:52) ( NTS )
Copyright (c) 1997-2017 The PHP Group 
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.27-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies

root@DietPi-EmonV6:~# apt-get -s install php7.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  php7.0
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst php7.0 (7.0.27-0+deb9u1 Debian-Security:9/stable [all])
Conf php7.0 (7.0.27-0+deb9u1 Debian-Security:9/stable [all])
If I check the packages installed (php-pear was manually installed by me) PHP7.0 is not listed.

Code: Select all

root@DietPi-EmonV6:~# sudo dpkg -l | grep php
ii  dh-php                           0.26                           all          debhelper add-on to handle PHP PECL extensions
ii  php-apcu                         5.1.8+4.0.11-1                 amd64        APC User Cache for PHP
ii  php-apcu-bc                      1.0.3-2                        amd64        APCu Backwards Compatibility Module
ii  php-cgi                          1:7.0+49                       all          server-side, HTML-embedded scripting language (CGI binary) (default)
ii  php-common                       1:49                           all          Common files for PHP packages
ii  php-curl                         1:7.0+49                       all          CURL module for PHP [default]
ii  php-fpm                          1:7.0+49                       all          server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
ii  php-gd                           1:7.0+49                       all          GD module for PHP [default]
ii  php-igbinary                     2.0.1-1                        amd64        igbinary PHP serializer
ii  php-mbstring                     1:7.0+49                       all          MBSTRING module for PHP [default]
ii  php-mcrypt                       1:7.0+49                       all          libmcrypt module for PHP [default]
ii  php-mysql                        1:7.0+49                       all          MySQL module for PHP [default]
ii  php-pear                         1:1.10.1+submodules+notgz-9    all          PEAR Base System
ii  php-redis                        3.1.1-1                        amd64        PHP extension for interfacing with Redis
ii  php-xml                          1:7.0+49                       all          DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii  php-zip                          1:7.0+49                       all          Zip module for PHP [default]
ii  php7.0-cgi                       7.0.27-0+deb9u1                amd64        server-side, HTML-embedded scripting language (CGI binary)
ii  php7.0-cli                       7.0.27-0+deb9u1                amd64        command-line interpreter for the PHP scripting language
ii  php7.0-common                    7.0.27-0+deb9u1                amd64        documentation, examples and common module for PHP
ii  php7.0-curl                      7.0.27-0+deb9u1                amd64        CURL module for PHP
ii  php7.0-dev                       7.0.27-0+deb9u1                amd64        Files for PHP7.0 module development
ii  php7.0-fpm                       7.0.27-0+deb9u1                amd64        server-side, HTML-embedded scripting language (FPM-CGI binary)
ii  php7.0-gd                        7.0.27-0+deb9u1                amd64        GD module for PHP
ii  php7.0-json                      7.0.27-0+deb9u1                amd64        JSON module for PHP
ii  php7.0-mbstring                  7.0.27-0+deb9u1                amd64        MBSTRING module for PHP
ii  php7.0-mcrypt                    7.0.27-0+deb9u1                amd64        libmcrypt module for PHP
ii  php7.0-mysql                     7.0.27-0+deb9u1                amd64        MySQL module for PHP
ii  php7.0-opcache                   7.0.27-0+deb9u1                amd64        Zend OpCache module for PHP
ii  php7.0-readline                  7.0.27-0+deb9u1                amd64        readline module for PHP
ii  php7.0-xml                       7.0.27-0+deb9u1                amd64        DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii  php7.0-zip                       7.0.27-0+deb9u1                amd64        Zip module for PHP
ii  pkg-php-tools                    1.35                           all          various packaging tools and scripts for PHP packages
if I do a

Code: Select all

sudo apt-get install php7.0
I now have

Code: Select all

ii  php7.0                           7.0.27-0+deb9u1                all          server-side, HTML-embedded scripting language (metapackage)
In the package list.

Am I missing something in how the packages are packaged, or is this a bug in 6.1?

User avatar
MichaIng
Legend
Posts: 243
Joined: Sat Nov 18, 2017 5:21 pm

Re: Installation of PHP query

Post by MichaIng » Thu Feb 15, 2018 1:48 am

php7.0 is just a dummy package that has php-common one PHP connector as dependency: https://packages.debian.org/stretch/php7.0
As for LLAP stack we know that we need php-fpm, thus choose it directly.

baz123
Posts: 65
Joined: Thu Jan 12, 2017 8:23 pm

Re: Installation of PHP query

Post by baz123 » Thu Feb 15, 2018 6:44 pm

Ok Great. :D

Post Reply