1823085 Members
3450 Online
109646 Solutions
New Discussion юеВ

Re: Apache2.0 problem

 
kirill_3
New Member

Apache2.0 problem

I compiled Apache 2.o for HP-UX10.20. I can not run it. It shows message in error_log:

[Sun Mar 09 16:19:51 2003] [emerg] (22)Invalid argument: Couldn't set permissions on cross-process lock
[Sun Mar 09 16:20:51 2003] [warn] pid file /opt/apache2/adm/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

I am not expirienced in configuration of servers. Please, could anybody help me? Thank you in advance.
4 REPLIES 4
U.SivaKumar_2
Honored Contributor

Re: Apache2.0 problem

Hi ,

The previous shutdown of httpd have not removed /opt/apache2/adm/httpd.pid. So before starting httpd again.

#rm /opt/apache2/adm/httpd.pid

And regarding Couldn't set permissions on cross-process lock error .

You have enabed the MPM module ( Multiprocessing modules in apache ) . Confirm whether that module is necessary for your setup.

If yes , then check the ownership of the httpd executable. Should be root owned.

regards,

U.SivaKumar






Innovations are made when conventions are broken
Tom Jackson
Valued Contributor

Re: Apache2.0 problem

Hi:

If you just did an initial compile and install and it doesn't work, I suggest that you download an already build binary for HPUX 10.20. Here's the URL -> http://hpux.cs.utah.edu/hppd/hpux/Networking/WWW/apache2-2.0.35/

The URL above also has links to the readme file and man page. I suggest you read them before installing.

Tom
Jason Neiss
New Member

Re: Apache2.0 problem

You need to finish the configuration; specifically, in /opt/apache2/etc/httpd.conf, the 'User' and 'Group' tags need to be set correctly. In the default configuration file, they are intentionally set to a non-working value.

Create a user called "www" on the machine; you may also wish the create a group called "www" as well. Set the User and Group tags in httpd.conf to the user and group you've created:

/*--example from httpd.conf --*/


#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
# . On HPUX you may not be able to use shared memory as nobody, and the
# suggested workaround is to create a user www and use that user.
# NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
# when the value of (unsigned)Group is above 60000;
# don't use Group #-1 on these systems!
#
User www
Group www



/*--end example--*/

It should start fine now.

Jason

Re: Apache2.0 problem

Hmm... I'm actually running into the same problem, but I did have User set to www. I didn't have the Group directive set to www, but I created a group with that name and tried that as well, with no luck. Is there any file that needs to be changed so that it is writable by that User/Group? I've never had to do anything like that on other systems, but HP-UX is the first system where I've had to change the User from nobody in the first place.

TIA,

Sweth.