Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 913  / 1 Year ago, tue, march 14, 2023, 12:48:06

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.


More From » apt

 Answers
1

I 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-*


Sorry I can't post you the response here because its report of approx 1.7M line.



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.


[#6798] Thursday, March 16, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
housecoarmer

Total Points: 434
Total Questions: 116
Total Answers: 120

Location: Albania
Member since Sun, Nov 22, 2020
4 Years ago
;