Home > Back-end >  One PHP meta-package for all common PHP packages?
One PHP meta-package for all common PHP packages?

Time:06-30

Each time I create a new Ubuntu server environment I also execute:

apt-get upgrade php-mbstring php-mcrypt php-curl php-cli php-gd

Instead all these php-something, is there one "formal" or "communally-supported" "meta-package" that includes all common php packages in one go?

I don't think I care installing all formal php packages as I don't think it should be a security problem if all were peer reviewed on the Ubuntu repositories and it might not necessarily take much SSD space.

I would prefer a version-agnostic way.

CodePudding user response:

know the trick, its not advisable.

sudo apt install php7.2 php-*

That is php(version you want) then php-(any meta package).

Before doing that lets check how many packages are their in php. Run

sudo apt policy php-*

If that machine had 1 gb ram. I am sure that you it won't start again or apache2 won't start. This the same reason why php is spited into these many extensions.So kindly consider to install only the extensions that are required.

Or you can choose which extensions to enable in php.ini

  •  Tags:  
  • php
  • Related