Respectfully, I have already clarified that my instructions are meant for only a certain kind of systems, I really ignore how other systems work.
There is a thought-process behind the way I explained, mainly the way apache2 defines envvars:
Code:
# envvars - default environment variables for apache2ctl
# this won't be correct after changing uid
unset HOME
# for supporting multiple apache2 instances
if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
else
SUFFIX=
fi
# Since there is no sane way to get the parsed apache2 config in scripts, some
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
Please, let's not continue beating a dead horse.
This is a friendly remark, please don't take to offense.
CK
Bookmarks