T
T
Twelfth Doctor2016-12-05 16:26:07
PHP
Twelfth Doctor, 2016-12-05 16:26:07

Will the Apache2 + PHP5(mod_php) + PHP7-FPM scheme work?

Hello! Tell me, will the Apache2 + PHP5(mod_php) + PHP7-FPM web server scheme work if I have a large number of users and sites? Those. As far as I know, PHP-FPM runs as a specific user (www-data by default), and if all sites belong to different users, then what should I do in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene Volf, 2016-12-05
@Wolfnsex

and if all sites belong to different users, then what to do in this case?

Set file permissions (in particular php files) so that FPM-PHP can at least read them.
In general, in the FPM mode, as many pools are usually created as there are users, and each of them works as its own user, and the problem is acc. disappears by itself.

L
lxfr, 2016-12-05
@lxfr

Use docker.
There are 5 containers:
nginx-proxy working with upstream for 2 different sites
nginx container and php 5 for the first site
nginx container and php 7 for the second site
All this should be registered as docker services and run with 1 command.
And don't sweat it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question