ruid2 is based on mod_ruid and mod_suid2, but it has better performance than mod_suid2 because it doesn't need to kill httpd children after one request.
To install it:
apt install libapache2-mod-ruid2
Enable module in Apache 2:
a2enmod ruid2
In the virtualhost add:
RUidGid {{ username }} {{ groupname }}
And restart Apache, for that virtualhost it will run with specified user and group