V
V
vetsinen2018-03-27 10:42:52
linux
vetsinen, 2018-03-27 10:42:52

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

4 answer(s)
A
Alexander Aksentiev, 2018-03-27
@Sanasol

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)

R
Roman Mirilaczvili, 2018-03-27
@2ord

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

V
Victor Taran, 2018-03-27
@shambler81

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

A
Alexander Kuznetsov, 2018-03-27
@DarkRaven

And what prevents you from spending time once, and then just doing it periodically?

sudo apt-get update
sudo apt-get dist-upgrade

I set up myself a clean virtual machine with Ubuntu periodically updated. When there is a need, I clone it and on the cloned one I already work on a specific version, if necessary, of course. Thus, much less time is spent.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question