Hi everyone,
I'm running multiple sites on my server using AAPanel with Nginx and PHP-FPM. Currently, all the PHP processes run under the same user (e.g., "www" or "www-data"). I would like to assign a unique user for each site so that, for example, for my "Sito-WP" site, the PHP processes would run as "sitowp" for the web front-end and "pecucp" for the control panel, or similar.
I believe this setup could help me with managing permissions and security for each site individually.
Has anyone achieved this in AAPanel? If so, could you please share detailed steps on how to:
Create dedicated system users for each site.
Set up separate PHP-FPM pools (with dedicated sockets) that run under these users.
Configure Nginx to use the correct PHP-FPM pool/socket for each site.
Any additional insights or tips on managing process permissions per site in AAPanel would be greatly appreciated.
Thanks in advance for your help!