Answer the question
In order to leave comments, you need to log in
Is it possible to install php 7.x on a linux system (ubuntu) immediately with all available extensions?
From time to time, it becomes necessary to deploy a php development environment on a laptop from scratch and usually you need to install a set of modules with a composer. at the same time, different modules require expansion and a lot of time is spent to understand what specific module they need and dance to install it. Is it possible to install php so that all possible extensions are installed as automatically as possible at once so that you do not have to dance with a tambourine over each sweat? even if most of them are superfluous, then this is not critical on a developer laptop
Answer the question
In order to leave comments, you need to log in
apt-get install php7.2-*
What are the constantly different packages needed there? Pieces 5 are probably used from those that do not come out of the box.
Put php7. * -common and all sorts of sql / mbstring / xml / intl
And this is enough for 99% of cases.
Have you tried reading the error? Composer writes right here in letters that you need the extension ext-bcmach or ext-mbstring, etc. ( It's like asking for ext-mbstring like this, no incomprehensibility)
You can set up a virtual environment once in Vargant (OS virtualization) or Docker/rkt (container virtualization). The trick is that it (almost) does not matter which Linux distribution (most importantly, modern) and which version.
Virtual environment settings are stored in files:
Vargant: Vagrantfile
Docker: Dockerfile
yes, there are a lot of control panels in which module auto-installers are already sewn.
You don’t need to set everything because they load the web server, the more modules are loaded, the slower it works, this of course does not greatly affect performance, but it is considered good practice to run at a minimum and then add what you need. As a rule, the main 3-5 modules are also delivered; the rest is usually not required. In some web panels, they can be enabled and disabled through the admin panel
And what prevents you from spending time once, and then just doing it periodically?
sudo apt-get update
sudo apt-get dist-upgrade
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question