To have on php configuration who works well with 4go (ram) / 4vcores
Create new configuration file
nano /etc/php/7.4/fpm/pool/wordpress-74.conf
Add this into
[wordpress-php74]
listen = /var/run/php/wordpress-php74.sock
listen.owner = www-data
listen.group = www-data
user = www-data
group = www-data
pm = ondemand
pm.max_children = 10
pm.process_idle_timeout = 10s
pm.max_requests = 200