Preparing Linux development server

1

I'm using the Debian 9 distro on my server, when I scanned the PHP packages I noticed that php-fpm seems to be an alias for php7.0-fpm.

If I am correct, I can install my packages like this:

apt-get install php-fpm php-mysql php-curl php-json php-mcrypt php-imagick php-mbstring php-xml -y

or so:

apt-get install php7.0-fpm php7.0-mysql php7.0-curl php7.0-json php7.0-mcrypt php7.0-imagick php7.0-mbstring php7.0-xml -y

And the final result will be exactly the same, ie in both cases the final version installed will be 7.0. Am I correct?

    
asked by anonymous 31.07.2017 / 19:32

1 answer

3

In your case both commands will install PHP 7.0

What defines what will be installed by default when running the command without specifying the version is the distribution repository.

Until Debian 8 (Jessie) the standard PHP was 5.6, but from Debian 9 (Stretch) the default version of PHP became 7.0.

You can read this and other Debian 9 news here: What's new in Debian 9

    
31.07.2017 / 19:47