Operating System - HP-UX
1833875 Members
1547 Online
110063 Solutions
New Discussion

Re: Regarding Apache on HP-UX 11.00.

 
Mike Stratton
New Member

Regarding Apache on HP-UX 11.00.

uname -a returns: HP-UX inventi B.11.00 A 9000/785 2014254496 two-user license

Greetings. I have installed Apache from the Software Depot distribution available on HP's website. After configuring httpd.conf as I have done many times before on other servers (though admittedly FreeBSD servers), I started apache for the first time through:

/opt/apache/bin/apachectl start

I am returned with:

/opt/apache/bin/apachectl start: httpd started

But I see no httpd processes in ps -ef

In addition, checking the logfile available at /opt/apache/logs/error_log:
------
[Mon Feb 3 01:05:56 2003] [alert] (22)Invalid argument: initgroups: unable to set groups for User www and Group 99 setgroups: Invalid argument
[Mon Feb 3 01:05:56 2003] [alert] (22)Invalid argument: initgroups: unable to set groups for User www and Group 99 setgroups: Invalid argument
[Mon Feb 3 01:05:56 2003] [alert] (22)Invalid argument: initgroups: unable to set groups for User www and Group 99 setgroups: Invalid argument
[Mon Feb 3 01:05:56 2003] [alert] (22)Invalid argument: initgroups: unable to set groups for User www and Group 99
[Mon Feb 3 01:05:56 2003] [notice] HP Apache-based Web Server/1.3.27 (Unix) configured -- resuming normal operations
[Mon Feb 3 01:05:56 2003] [notice] Accept mutex: fcntl (Default: fcntl)
[Mon Feb 3 01:05:56 2003] [alert] Child 1702 returned a Fatal error...
Apache is exiting!
-------

I've checked /etc/group, and see the following:

www::99:www

User and Group in httpd.conf are both set to 'www'.

apachectl start was executed by root.

I've searched google high and low and can't find the answer to this; assistance is much appreciated with this problem! Please let me know if there is more information required.
8 REPLIES 8
RAC_1
Honored Contributor

Re: Regarding Apache on HP-UX 11.00.

what does pwck and grpck says.

post the results.

su - www and excecute id. what it gives?
There is no substitute to HARDWORK
Mike Stratton
New Member

Re: Regarding Apache on HP-UX 11.00.

pwck returns open prompt.
grpck returns open prompt.

Interestingly enough, 'su - www' returns this:

# su - www
setgroups: Invalid argument
setgroups: Invalid argument
su: Unable to initialize group access list

I've never run into this before. :) My primary experience is with FreeBSD, Solaris and Linux, not HP-UX.
Stefan Farrelly
Honored Contributor

Re: Regarding Apache on HP-UX 11.00.

Looks like a syntax error in your /etc/group file - not necessarily caused by your www entry but could be caused by any entry. Check the whole group file very carefully.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Bill McNAMARA_1
Honored Contributor

Re: Regarding Apache on HP-UX 11.00.

Off topic, you can get a multi-user licence for free:
B6837AA


It works for me (tm)
Stefan Farrelly
Honored Contributor

Re: Regarding Apache on HP-UX 11.00.

maybe you have a setprivgrp groupfile setup also - check that; /etc/privgroup
maybe it has errors in also. Try temporarily renaming it, su - www and see if you stil have errors.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Steve Steel
Honored Contributor

Re: Regarding Apache on HP-UX 11.00.

Hi

Any solution will most likely involve reducing the number of groups your users are members of, see the NGROUPS_MAX value

Are you trying to put www in more than 20 groups.

Only 8 if /etc/logingroup is linked to it



steve Steel

If you want truly to understand something, try to change it. (Kurt Lewin)
Mike Stratton
New Member

Re: Regarding Apache on HP-UX 11.00.

# cat /etc/group
root::0:root
other::1:root,hpdb
bin::2:root,bin
sys::3:root,uucp
adm::4:root,adm
daemon::5:root,daemon
mail::6:root
lp::7:root,lp
tty::10:
nuucp::11:nuucp
users::20:root
nogroup:*:-2:www
www::99:www


I see no file /etc/privgroup.
Mike Stratton
New Member

Re: Regarding Apache on HP-UX 11.00.

Ah, excuse my stupidity. I forgot to remove 'www' from 'nogroup' during earlier testing.

Removing this has worked. Thank you for all your assistance!