Preparing Linux Development Server

Asked

Viewed 56 times

1

I am using the Debian 9 distro on my server, while searching through 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 end result will be exactly the same, IE, in both cases the final installed version will be 7.0. I am correct?

1 answer

3


In your case the two commands will install PHP 7.0

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

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

You can find this and other Debian 9 news here: What’s new in Debian 9

Browser other questions tagged

You are not signed in. Login or sign up in order to post.