Skip to main content

You may try to use the following command-line method to find out your Apache group names:

WWW_GROUP=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\  -f 2`2| uniq`
echo Apache group is: $WWW_GROUP

To get the user, check: How to determine Apache user from the command-line?

You may try to use the following command-line method to find out your Apache group names:

WWW_GROUP=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\  -f 2`
echo Apache group is: $WWW_GROUP

To get the user, check: How to determine Apache user from the command-line?

You may try to use the following command-line method to find out your Apache group names:

WWW_GROUP=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | cut -d\  -f 2| uniq`
echo Apache group is: $WWW_GROUP

To get the user, check: How to determine Apache user from the command-line?

replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

You may try to use the following command-line method to find out your Apache group names:

WWW_GROUP=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\  -f 2`
echo Apache group is: $WWW_GROUP

To get the user, check: How to determine Apache user from the command-line?How to determine Apache user from the command-line?

You may try to use the following command-line method to find out your Apache group names:

WWW_GROUP=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\  -f 2`
echo Apache group is: $WWW_GROUP

To get the user, check: How to determine Apache user from the command-line?

You may try to use the following command-line method to find out your Apache group names:

WWW_GROUP=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\  -f 2`
echo Apache group is: $WWW_GROUP

To get the user, check: How to determine Apache user from the command-line?

deleted 19 characters in body
Source Link
kenorb
  • 22.1k
  • 18
  • 149
  • 172

You may try to use the following command-line method to find out your Apache user/groupgroup names:

WWW_USER=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\  -f 1`
WWW_GROUP=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\  -f 2`
echo Apache user is: $WWW_USER
echo Apache group is: $WWW_GROUP

To get the user, check: How to determine Apache user from the command-line?

You may try to use the following command-line method to find out your Apache user/group names:

WWW_USER=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\  -f 1`
WWW_GROUP=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\  -f 2`
echo Apache user is: $WWW_USER
echo Apache group is: $WWW_GROUP

You may try to use the following command-line method to find out your Apache group names:

WWW_GROUP=`ps axo user,group,comm | egrep '(apache|httpd)' | grep -v ^root | uniq | cut -d\  -f 2`
echo Apache group is: $WWW_GROUP

To get the user, check: How to determine Apache user from the command-line?

Source Link
kenorb
  • 22.1k
  • 18
  • 149
  • 172
Loading