Operating System - HP-UX
1834391 Members
2285 Online
110066 Solutions
New Discussion

Re: Problem on apache running

 
SOLVED
Go to solution
Cai Nan
Advisor

Problem on apache running

I have succesfully installed Apache.depot on /opt/apache.After change to /opt/apache/etc/httpd.conf:User:nobody,Group:nogroup,other keep default.Then /opt/apache/bin/httpd,and ps -el |grep httpd, no daemon was capture, in /opt/apache/adm/error_log:
[Tue Jan 22 16:05:38 2002] [error] (22)Invalid argument: shmctl() could not set segment #8452
[Tue Jan 22 16:05:38 2002] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967294
[Tue Jan 22 16:05:38 2002] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967294
[Tue Jan 22 16:05:38 2002] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967294
[Tue Jan 22 16:05:38 2002] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967294
[Tue Jan 22 16:05:38 2002] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967294
[Tue Jan 22 16:05:38 2002] [notice] Apache/1.3.22 (Unix) configured -- resuming normal operations
[Tue Jan 22 16:05:38 2002] [notice] Accept mutex: fcntl (Default: fcntl)
[Tue Jan 22 16:05:38 2002] [alert] Child 3631 returned a Fatal error...
Apache is exiting!

When I reboot,and ps,it capture something:
1 S 91 1834 1194 0 154 20 2012a00 137 2010928 ? 0:00 httpd
1 S 91 1836 1194 0 168 20 2038600 137 113e14c ? 0:00 httpd
1 S 0 1194 1 0 154 20 201e280 137 408468 ? 0:00 httpd...
I could http://ip address,and get the apache working page.
But in error_log
[Tue Jan 22 16:29:39 2002] [crit] (226)Address already in use: make_sock: could not bind to port 80

I wonder:apache have fault(access_log was empty,and the number in httpd.pid was not the number that ps capture).
Why I could get daemon that apache running,and could get the apache working page.

Thank
--Frank
DAEMON
6 REPLIES 6
Cai Nan
Advisor

Re: Problem on apache running

One thing supply:
Finally I find that strange-apache was running in /usr/local/apache,but I remember clearly, before I install 1.3.22, I use swremove to remove 1.3.6,and success. And now I want to ask,how to remove software to the core that was not registered in HP-SD .just delete that folder/usr/local/apache?

It seems following error related to group setup:
[Tue Jan 22 16:05:38 2002] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967294
I have create a new group and user:www,I wonder it could help?

By the way,error:
(226)Address already in use: make_sock: could not bind to port 80
What's that mean,and how to solve it?

Thank you very much!
--Frank


DAEMON
Michael Tully
Honored Contributor

Re: Problem on apache running

Hi,

If the software was installed at the command
line and not through 'swinstall' you can
just remove the directories/files once the
processes have been terminated (killed)

Make sure that you have the following in the
/usr/local/appache/conf/httpd.conf file or
where you directory tree is.

User www
Group www (or what you want)
Port 80

The port being in use suggests that something
is already using the port. Use 'netstat -a'
to find out.
Suggest you get an already compile version
from the porting centre, as this will solve
some of your problems. You would install
this via swinstall.

HTH
-Michael
Anyone for a Mutiny ?
Sanjay_6
Honored Contributor

Re: Problem on apache running

Hi,

Can you post your http.conf file from the httpd directory.

Regds
Steven Sim Kok Leong
Honored Contributor

Re: Problem on apache running

Hi,

Just a hunch. Can you show us the output for the following:

# grep 4294967294 /etc/group

If your group ID is not defined in /etc/group, then executables might not be able to setgid to this group.

Hope this helps. Regards.

Steven Sim Kok Leong
James A. Donovan
Honored Contributor
Solution

Re: Problem on apache running

In HP-UX the user/group nobody/nogroup have id's of -2 by default. The error you are seeing is due to the way -2 is represented to a CPU as a 32-bit number (the MSB is set to 1).

The specific reason the setgid calls are failing is because it is trying to set gid to a value beyond the maximum system limit for a group id number (UID_MAX which is most likely = to INT_MAX = 2147483647)

Your best option is to setup apache to run using the www account as someone has stated previously
Remember, wherever you go, there you are...
Cai Nan
Advisor

Re: Problem on apache running

Thank you all,especially Jim.
I set www group,and it's user www,it worked all right now.
DAEMON