Operating System - HP-UX
1754407 Members
3034 Online
108813 Solutions
New Discussion юеВ

httpd: bad group name www

 
SOLVED
Go to solution
Joel Pavon
Advisor

httpd: bad group name www

Hello!

I was install the APACHE Web Server release 1.3.20, when I try to run the webserver receive the next message:

httpd: bad group name www

I'm ussing the command:
/opt/apache/bin/httpd -f /opt/apache/etc/httpd.conf

what can I do to solve this problen?


tnks!
*Joel
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: httpd: bad group name www

Hi:

1) Make sure that you have a user 'www'
The passwd entry can be: (example - '*' in the passwd field prevents logins)
www:*:30:1::/home/www:/sbin/sh
2) Make sure that you have a group 'www' (e.g)
The group entry can be:
www::108

3) Edit /opt/apache/etc/httpd.conf

Add/Change these lines:

User www
Group www

Save the file.

Now start httpd as root and it will change group and change user to 'www'.
If it ain't broke, I can fix that.
Michael Tully
Honored Contributor

Re: httpd: bad group name www

Hi,

Other than having user and group of www being
present as suggested by Clay, you shold also
set up the apache auto start from boot. So
in /sbin/init.d/apache place this. Then you
need to link to /sbin/rc3.d as below.

lrwxr-xr-x 1 root sys 19 Oct 15 14:23 S888apache -> /sbin/init.d/apache

#
# This simple script is so the Apache Web Server
# can be started at system startup in run level 3.
#
APACHE_BIN=/usr/local/apache/bin

# Start the Apache server

$APACHE_BIN/apachectl start
#

-Michael
Anyone for a Mutiny ?
Rob Galloway_1
Frequent Advisor

Re: httpd: bad group name www

I just checked my install of 1.3.22 and it did not create a group 'www'.
The group suggested in the httpd.conf is 'nogroup'.
If you wish to use www as a group you will have to create it.
Experience is a hard teacher. It tests first and teaches afterward.