Private PHP-FPM on E-01: a pool, socket and startup
A dedicated runtime user, a Unix socket, one worker and memory limits. From the first FPM start to enabling startup as a separate step.
After installing the PHP core, I prepared a separate PHP-FPM runtime on the learning E-01. The package’s default service remained masked. The new pool has its own user, a separate Unix socket and a memory budget for the whole service. This is not yet Symfony delivery: first I need a controlled path from the web process to FPM.
The existing CLI performed the actual changes: it separately created the new layout, applied the configuration and activated the runtime. Below are the standard FPM configuration and read commands for reproducing the observations. These commands can be repeated without installing packages again or restarting the service; they are not a log of manually performing the earlier changes.
A new user and a separate namespace
The namespace /srv/e01-runtime and user s200-e01-front were created for the learning application. This account exists to run the application’s PHP, not to accept interactive SSH logins. It has a nologin shell and does not receive a normal home directory.
id s200-e01-front
getent passwd s200-e01-front
The numeric UID and GID are not settings to copy to another server. What matters is that the name matches the actual account and its file permissions. Application PHP runs in a worker under this user, not root or the shared web user www-data. The service’s master process remains root: I do not describe the entire service as an unprivileged process.
The directory split sets another boundary: the web process needs to read public and traverse the path to it, not read the application root generally. The working var, var/cache and var/log directories belong to the separate runtime user. A separate permission read confirmed that www-data can read public and traverse to it, but cannot write to the application root or traverse into var and write there. The runtime user can read public and traverse and write within var, but cannot write to the application root. I created no files on the server for this check.
One static worker and a private socket
The pool file /etc/deploy-cli/php85/pools/s200-e01-front.conf contains this standard fragment:
[s200-e01-front]
user = s200-e01-front
group = s200-e01-front
listen = /run/deploy-cli-php85/s200-e01-front.sock
listen.owner = root
listen.group = www-data
listen.mode = 0660
pm = static
pm.max_children = 1
clear_env = yes
ping.path = /__fpm_ping
ping.response = pong
pm = static with pm.max_children = 1 means one worker for this pool. This is a minimum verification setup, not the result of measuring future load. clear_env = yes clears the worker’s inherited environment; required application values will need to be set deliberately. These directives are explained in the PHP-FPM documentation.
The socket owner is root and its group is www-data. This does not contradict PHP running as s200-e01-front: socket ownership determines the client’s access to the connection point, while the pool’s user and group determine its worker’s permissions. Mode 0660 gives the web user group access without opening the socket to everyone.
384 MiB for the service and 64M for PHP
The minimal INI sets PHP memory_limit = 64M. The separate deploy-cli-php85.service has MemoryMax set to 384 MiB. These are different limits: memory_limit restricts memory accounted for by PHP during execution, whereas MemoryMax applies to the whole service’s cgroup, including the master and worker. It is wrong to treat 64M as the process’s full RSS or add both numbers as separate available RAM. These settings are not a measurement of peak consumption or a test under deliberate OOM stress.
systemctl show deploy-cli-php85.service \
--property=ActiveState,SubState,UnitFileState,MemoryMax,NoNewPrivileges \
--no-pager
After activation, I obtained these values; the field order is grouped here for readability:
ActiveState=active
SubState=running
UnitFileState=disabled
MemoryMax=402653184
NoNewPrivileges=yes
402653184 bytes is 384 × 1024 × 1024. MemoryMax sets a limit rather than reserving that capacity in advance; details are described in systemd resource control. NoNewPrivileges=yes additionally prevents processes from gaining new privileges through program execution; it does not replace a separate user or file permissions.
ActiveState=active and UnitFileState=disabled can both be true. I started the service in the current boot but did not enable automatic startup. I performed no new reboot for this step and make no claim of operation after a reboot. The difference between start and enable is explained in the systemctl manual.
What responded over FastCGI
stat -c '%U %G %a' /run/deploy-cli-php85/s200-e01-front.sock
The actual response showing owner, group and mode:
root www-data 660
The existing native FastCGI probe then connected to this socket as www-data. Below is a structured observation of the builtin ping, not a shell transcript or client code:
{"client_uid":33,"client_gid":33,"client_groups":[33],"status":200,"body":"pong","app_status":0,"protocol_status":0}
pong came from FPM’s builtin mechanism at ping.path. This request does not execute an application PHP file, check a Symfony controller or traverse an HTTP route through Nginx. It demonstrates a narrower fact: a client with the web user’s permissions could connect to the private socket and receive a valid FastCGI response.


A separate next step: automatic startup is now enabled
The earlier disabled output describes the state immediately after initial activation. As a separate next step, I enabled automatic startup for this service. A fresh read showed enabled while the service remained active/running.
Enable configures a service to start when the system boots. By itself, it does not start the service or restart a process that is already running. FPM continued with the same master PID during this step; there was no separate start or restart on E-01.
I did not reboot E-01 after this step. A separate native VM scenario checked automatic startup across a reboot; that is a different environment, not an observation of a new boot on the learning VPS.
The current state can be read with standard commands:
systemctl is-enabled deploy-cli-php85.service
systemctl show deploy-cli-php85.service \
--property=ActiveState,SubState,UnitFileState,MainPID \
--no-pager
The fresh read confirmed these values; the fields below are grouped for readability:
ActiveState=active
SubState=running
UnitFileState=enabled
What remains before connecting Nginx
The earlier manual layout remained unchanged. FPM listens on a private Unix socket, and its automatic startup is now enabled. Before running the application, I still need to configure its required PHP extensions and Composer. Symfony delivery and connecting Nginx to the new pool come next.