My server seems to run apache2 as root despite set to www-data in /etc/apache2/envvars.
How can this happen ?
/etc/apache2/envvars
export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data
Here is how I checked it
How do I figure out what user & group Apache is running as?
ps axo user,group,comm | grep apache
root root apache2
root root apache2
root root apache2
root root apache2
root root apache2
root root apache2
root root apache2