[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: what's the group and username of apache2 web server?



Hi.

> How to get the group and username of apache?

Ususally apache/apache2 user and group : www-data.
You can find that information in many ways:

look at this file:
/etc/apache2/apache2.conf

(mine :
...
# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
...
)

and then at this file:

/etc/apache2/envvars

(mine:
...
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
...
)

or simply check the current apache2 process user:
# ps -aux | grep apache2
...
www-data  4276  0.0  0.1  33396  3668 ?        S    09:40   0:00
/usr/sbin/apache2 -k start
www-data  4277  0.0  0.1  33396  3668 ?        S    09:40   0:00
/usr/sbin/apache2 -k start
www-data  4278  0.0  0.1  33396  3668 ?        S    09:40   0:00
/usr/sbin/apache2 -k start
www-data  4279  0.0  0.1  33396  3668 ?        S    09:40   0:00
/usr/sbin/apache2 -k start
www-data  4280  0.0  0.1  33396  3668 ?        S    09:40   0:00
/usr/sbin/apache2 -k start
...

Hope this helps you!
Regards
M


Reply to: