Apache 1.3.20 on RedHat 7.1: shmctl() failure pissing me off

Apache 1.3.20 on RedHat 7.1: shmctl() failure pissing me off

Post by Michael Eaga » Fri, 21 Sep 2001 09:03:02



I've installed 1.3.20 from source on an i686 RedHat 7.1 box. When I do the
most basic install I get a shared memory failure (I think) when I start
httpd. Httpd starts, the pid is written to /var/run/httpd.pid, then it
crashes. I've seen many, many other posts related to this, but no
resolution. Has anyone experienced this and gotten past it? I could go with
the 1.3.19 RPM but that would be admitting defeat. Since 7.1 and 1.3.20 have
been out for months I can't be the only idiot trying to do this.

I modified the config.layout file with updated paths from RedHat 5.2 to
RedHat 7.1 just for consistency, ie:
old: datadir: /home/httpd
new: datadir: /var/www

I've installed like this:

./configure --with-layout=RedHat
make
make install
/usr/sbin/apachectl start

There do not appear to be any compile/install errors.
I get this on start, no other logs anywhere:

[Wed Sep 19 16:38:12 2001] [error] (22)Invalid argument: shmctl() could not
set segment #15194112

Thanks in advance for any help.
Mike

 
 
 

Apache 1.3.20 on RedHat 7.1: shmctl() failure pissing me off

Post by Justin Erenkran » Fri, 21 Sep 2001 17:00:37



> I've installed 1.3.20 from source on an i686 RedHat 7.1 box. When I do the
> most basic install I get a shared memory failure (I think) when I start
> httpd. Httpd starts, the pid is written to /var/run/httpd.pid, then it
> crashes. I've seen many, many other posts related to this, but no
> resolution. Has anyone experienced this and gotten past it? I could go with
> the 1.3.19 RPM but that would be admitting defeat. Since 7.1 and 1.3.20 have
> been out for months I can't be the only idiot trying to do this.

Easy way is to force 1.3.20 to use mmap for the scoreboard.  Linux 2.4
has MAP_ANON and MAP_SHARED support that works, so you can edit
ap_config.h and change lines 468 and 469:

(old)

#define HAVE_SHMGET 1
#define USE_SHMGET_SCOREBOARD

to just be:

#define USE_MMAP_SCOREBOARD

I think that Linux 2.4 requires the shm memory to be mounted explicitly.
But, you don't even need to do this on new kernels anymore because
mmap is just easier.

Justin Erenkrantz

 
 
 

1. Apache 1.3.20 under Linux (SuSE 7.1) - Error

Browser gives message "Document contains no Data"

when I compile Apache as module and mod_perl, both with apxs

********************************************
Error.log:

[Tue Sep 11 15:38:01 2001] [notice] Apache/1.3.20 (Unix) AxKit/1.4
mod_perl/1.26 PHP/4.0.6 configured -- resuming normal operations
[Tue Sep 11 15:38:01 2001] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Tue Sep 11 15:40:13 2001] [notice] child pid 31979 exit signal
Segmentation fault (11)
[Tue Sep 11 15:48:39 2001] [notice] child pid 32122 exit signal
Segmentation fault (11)
[Tue Sep 11 15:48:57 2001] [notice] child pid 32189 exit signal
Segmentation fault (11)
[Tue Sep 11 15:49:03 2001] [notice] child pid 32191 exit signal
Segmentation fault (11)

************************************************
rcapache.log:

Syntax OK

************************************************
httpd.pid:

31978

************************************************
Apache configuration:

#!/usr/bin/sh
#config.status
#
./configure \
"--with-layout=SuSE" \
"--enable-module=most" \
"--disable-module=example" \
"--enable-shared=max" \
"--with-perl='which perl'" \
"--disable-rule=WANTHSREGEX" \
"--server-uid=wwwrun" \
"--server-gid=nogroup" \
"--enable-suexec" \
"--suexec-caller=wwwrun" \
"--suexec-userdir=public_html" \
"--suexec-uidmin=96" \
"--suexec-gidmin=96" \

********************************************
mod_php4 configuration:

#!/bin/sh

./configure \
"--with-pgsql=/usr/lib/pgsql" \
"--with-mysql=/usr" \
"--with-zlib=yes" \
"--with-zlib-dir=/usr" \
"--with-adabas=/usr/lib/adabas" \
"--with-config-file-path=/etc/httpd" \
"--with-apxs=/usr/sbin/apxs" \
"--with-exec-dir=/usr/lib/apache/bin" \
"--with-pdflib=no" \
"--enable-versioning" \
"--enable-track-vars" \

*************************************************

Did I make a mistake or is it a bug?

tia,

Oliver

2. st_atimespec.tv_nsec freezes after mmap()

3. Apache 1.3.20 on Redhat Linux 7?

4. USB FAILURE

5. redhat 6.2 Apache 1.3.20 configure fails

6. developer.kde.og disappeared

7. Problems with Solaris 8 (SPARC), apache 1.3.20, auth_ldap when starting apache

8. DHCP setup

9. starting problems with Upgraded Kernel for SUSE 7.0 and apache 1.3.20

10. Apache 1.3.20 released

11. Apache 1.3.20/mod_proxy not passing host headers

12. Error-Code in Apache 1.3.20

13. Apache 1.3.20 make error on SCO 5.0.6 Openserver box