-
Hi @ALL, Currently we use a normal nginx + php-fpm stack for our wordpress websites. We have been testing nginx + unit for almost 2 weeks now. We use nginx as a proxy to deliver static files and firewall rules. We forward all php requests to unit. This works quite well so far. Performance improvements are definitely noticeable. However, there are still a few open questions:
Many thanks for your support... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Glad you are liking Unit so far!
Each application runs in their own set of processes, the default being a single process but can be increased via the processes setting. If you look at the output of I'm not overly familiar with the OPcache, but I might have suspected that it would be per process/interpreter.
By default each php application will have general access to the filesystem as governed by the user it is running as. Unit does have various isolation capabilities (on Linux) via namespaces(7). There is a rootfs option which lets you effectively set set the fileystem root for the application. If restricting filesystem access is important to you then you should use something like open_basedir or rootfs.
Not that specifically, no. But you can specify per app PHP settings and also php.ini files to use. See here.
Not currently. |
Beta Was this translation helpful? Give feedback.
Hi,
Glad you are liking Unit so far!
Each application runs in their own set of processes, the default being a single process but can be increased via the processes setting.
If you look at the output of
ps -ef | grep unit
for example, you'll see for each application there is one prototype process and then 1 or more application processes which actually handle requests.I'm not overly familiar with the OPcache, but I might have suspected that it would be per process/interpreter.