First of all, thank you for replying.
I actually managed to download apache and configure suexec separately:
httpd -v (checked the apache version)
wget http://archive.apache.org/dist/httpd/httpd-2.4.23.tar.gz (downloaded a corresponding version)
tar -xzf ./httpd-2.4.23.tar.gz (unwrap)
./configure --enable-suexec --with-suexec-bin=/usr/sbin/suexec --with-suexec-caller=daemon --with-suexec-userdir=/opt/bitnami/apps --with-suexec-docroot=/opt/bitnami/apache2 --with-suexec-uidmin=500 --with-suexec-gidmin=500 --with-suexec-logfile=/opt/bitnami/apache2/logs/suexec.log
(note, the caller is daemon)
cp ./support/suexec /usr/sbin/suexec
chown root:root /usr/sbin/suexec
chmod 4755 /usr/sbin/suexec
I copied mod_suexec.so into /opt/bitnami/apache2/modules and loaded it it httpd.conf
after that I set up permissions in httpd-vhosts.conf (SuexecUserGroup wpUser1 wpUser1)
and rebooted apache
"/opt/bitnami/ctlscript.sh apache reboot"
I face the following error:
SuexecUserGroup configured, but suEXEC is disabled: Missing suexec binary /bitnami/lampstack-linux-x64/output/apache2/bin/suexec
Basically I have a few vhosts and every website has its own developer. Every time a developer uploads a file, it gets daemon permissions instead of permissions I created for a developer and assigned to a dedicated folder. So I want permissions to remain.