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 @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:
Each PHP application seems to be isolated. It seems as if each app has its own dedicated secure OPcache.
Are the PHP applications so isolated that you don't need additional open_basedir settings or should you set it anyway?
Custom ‘.user.ini’ files directly in the application doc_root are not yet supported?
Due to the nginx proxy the php applications have a SERVER_ADDR variable in the name of the unit listener (unix socket). Is there a way to customise this?
Many thanks for your support...
Beta Was this translation helpful? Give feedback.
All reactions