Apache Not Starting

alpha

Verified User
Joined
Dec 21, 2003
Messages
30
Okay, I've been trying to troubleshoot this issue for about 2 hours and I'm stumped.

Everything is running as it should be except Apache. I click the restart link, Apache seem to start up but it's not up.

I've checked /var/log/httpd/error_log and it doesn't show any recent errors.

I've done /usr/local/etc/rc.d/httpd start
and it shows Starting httpd: [Ok] except when you check again, apache isn't running at all.

Any ideas? :confused:
 
snip of /var/log/messages:
Dec 22 23:06:02 summer kernel: pid 48622 (httpd), uid 0: exited on signal 11 (core dumped)
Dec 22 23:06:06 summer kernel: pid 48835 (httpd), uid 0: exited on signal 11 (core dumped)
Dec 22 23:07:02 summer kernel: pid 53684 (httpd), uid 0: exited on signal 11 (core dumped)
Dec 22 23:07:06 summer kernel: pid 54944 (httpd), uid 0: exited on signal 11 (core dumped)
Dec 22 23:08:05 summer kernel: pid 62580 (httpd), uid 0: exited on signal 11 (core dumped)
Dec 22 23:08:27 summer kernel: pid 62669 (httpd), uid 0: exited on signal 11 (core dumped)

and sure enough:

-bash-2.05b# ls -l /| grep core
-rw------- 1 root wheel 2719744 Dec 22 23:11 httpd.core
 
Hello,

I'm pretty sure Frontpage is to blame for this one. Try removing the patch commands and then re-extracting / recompiling apache.

Code:
cd /usr/local/directadmin/customapache
vi build
# find and remove from "doApache()
        patch -p0 < ../fp-patch-apache_1.3.22
        patch -p0 < ../fp-patch-suexec
# save
./build clean
./build apache_mod_ssl

This will probably throw a wrench in Frontpage.. Hopefully we can figure out why it's doing that.

John
 
--add-module=mod_frontpage.c \

I also took off that line in configure.apache_ssl because it would't compile since we don't want frontpage in this case.

but unfortunately, Apache is still failing to load and is still core'ing
 
I sent you guys the access information again (because of password change) through the safesubmit form if you guys want to take a gander at this issue.
 
John,

You should take a break for Christmas sometime soon and worry about 5.1 afterwards ;)

Merry Christmas to the DA staff :D
 
I've actually had this happen.. But not on a DA server.. It was a version of phpIonEncoder.. But is prolly differnt.. You might run gdb on the core dump...
 
here's a snippet of gdb's reports:
Loaded symbols for /usr/lib/libz.so.2
Reading symbols from /etc/httpd/modules/libssl.so...done.
Loaded symbols for /etc/httpd/modules/libssl.so
Reading symbols from /usr/local/Zend/lib/ZendExtensionManager.so...done.
Loaded symbols for /usr/local/Zend/lib/ZendExtensionManager.so
Reading symbols from /usr/local/Zend/lib/Optimizer-2.1.0/php-4.3.x/ZendOptimizer.so...done.
Loaded symbols for /usr/local/Zend/lib/Optimizer-2.1.0/php-4.3.x/ZendOptimizer.so
Reading symbols from /usr/libexec/ld-elf.so.1...done.
Loaded symbols for /usr/libexec/ld-elf.so.1
#0 0x0804fdd2 in ap_clear_pool ()
 
Okay - I've basically tried many different debugging methods to try to get httpd to stay up but without much success.

I am completely lost in this Apache problem.

Hopefully, you guys will be able to find out what the problem is...
 
I think I am having the same problem in 5.1. Apache would not start after a fresh install. I get core dumps also.

I was reading and it seems that possibly some versions of OpenSSL and Frontpage are not getting along with 5.x?
 
Hello,

I know on the build system here, frontpage refused to work, but Im not sure about the OpenSSL issue.. where did you read it? I've got apache working on alpha's system using the ports collection of apache13-modssl, without frontpage..just modified the makefile. I'll just have to figure out what they do differently. I'll attach the Makefile I used:


Code:
# New ports collection makefile for:    Apache + mod_ssl
# Date created:         Sat Aug 22 12:00:00 CDT 1998
# Whom:                 [email][email protected][/email]
#
# $FreeBSD: ports/www/apache13-modssl/Makefile,v 1.121 2003/04/16 14:17:06 dinoex Exp $
#

PORTNAME=       apache+mod_ssl
PORTVERSION=    ${VERSION_APACHE}+${VERSION_MODSSL}
CATEGORIES=     www security
MASTER_SITES=   ${MASTER_SITE_APACHE_HTTPD} \
                ${MASTER_SITES_MODSSL:S/$/:modssl/}
DISTNAME=       apache_${VERSION_APACHE}
DISTFILES=      ${DISTNAME}${EXTRACT_SUFX} \
                mod_ssl-${VERSION_MODSSL}-${VERSION_APACHE}${EXTRACT_SUFX}:modssl

MAINTAINER=     [email][email protected][/email]
COMMENT=        The Apache 1.3 webserver with SSL/TLS functionality

LIB_DEPENDS=    mm.12:${PORTSDIR}/devel/mm

MASTER_SITES_MODSSL=    [url]http://www.modssl.org/source/[/url] \
                [url]ftp://ftp.modssl.org/source/[/url] \
                [url]ftp://ftp.pca.dfn.de/pub/tools/net/mod_ssl/[/url] \
                [url]ftp://ftp.ecrc.net/pub/security/mod_ssl/[/url] \
                [url]ftp://ftp.nvg.ntnu.no/pub/unix/mod_ssl/[/url] \
                [url]ftp://ftp.ulpgc.es/pub/mod_ssl/[/url] \
                [url]ftp://glock.missouri.edu/pub/mod_ssl/[/url] \
                [url]ftp://ftp.infoscience.co.jp/pub/Crypto/SSL/mod_ssl/[/url] \
                [url]ftp://ftp.uni-trier.de/pub/unix/security/mod_ssl/[/url] \
                [url]ftp://ftp.blatzheim.com/pub/mod_ssl/[/url] \
                [url]ftp://ftp.fu-berlin.de/unix/security/mod_ssl/[/url] \
                [url]ftp://ftp.ntrl.net/pub/mirror/ralfsw/mod_ssl/[/url] \
                ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/mod_ssl/source,}
USE_OPENSSL=    YES

.include <bsd.port.pre.mk>

VERSION_APACHE= 1.3.29

VERSION_MODSSL= 2.8.16

DATADIR=        /var/www
DOCUMENT_ROOT=  ${DATADIR}/html
DEFAULT_PATH=/bin:/usr/bin:${PREFIX}/bin

.if defined(WITH_APACHE_SUEXEC) && ${WITH_APACHE_SUEXEC} == yes

APACHE_SUEXEC_DOCROOT?=/
APACHE_SUEXEC_USERDIR?=public_html

SUEXEC_CONF=\
                --enable-suexec \
                --suexec-docroot=${APACHE_SUEXEC_DOCROOT} \
                --suexec-caller=apache \
                --suexec-uidmin=1000 \
                --suexec-gidmin=1000 \
                --suexec-logfile=/var/log/httpd/suexec_log \
                --suexec-userdir=${APACHE_SUEXEC_USERDIR}

.if defined(APACHE_SUEXEC_UMASK)
SUEXEC_CONF+=\
                --suexec-umask=${APACHE_SUEXEC_UMASK}
.endif

PLIST_SUB+=     SUB_SUEXEC=""
SUEXEC_MAN=     suexec.8

.else   # !SUEXEC

SUEXEC_CONF=
PLIST_SUB+=     SUB_SUEXEC="@comment "
SUEXEC_MAN=

.endif  # !SUEXEC

USE_PERL5=      yes
HAS_CONFIGURE=  yes
CONFIGURE_ARGS+=--prefix=/etc/httpd \
                --exec-prefix=/etc/httpd \
                --server-uid=apache \
                --server-gid=apache \
                --with-perl=/usr/bin/perl \
                --enable-module=all \
                --disable-module=auth_db --disable-module=auth_dbm \
                --enable-shared=max \
                --enable-module=ssl \
                --sysconfdir=/etc/httpd/conf \
                --sbindir=/usr/sbin \
                --bindir=/usr/bin \
                ${SUEXEC_CONF}

OPTIM=          -DHARD_SERVER_LIMIT=512 \
                -DDOCUMENT_LOCATION=\\"${PREFIX}/www/data/\\" \
                -DDEFAULT_PATH=\\"${PREFIX}/bin:/bin:/usr/bin\\" \
                -DACCEPT_FILTER_NAME=\\"httpready\\"

.if defined(WITH_APACHE_PERF_TUNING) && ${WITH_APACHE_PERF_TUNING} == YES
OPTIM+=         -DBUFFERED_LOGS -DFD_SETSIZE=1024
CFLAGS+=        -O6 -funroll-loops -fstrength-reduce -fomit-frame-pointer \
                -fexpensive-optimizations -ffast-math
.endif

.include "${PORTSDIR}/security/openssl/bsd.openssl.mk"

CONFIGURE_ENV=  CFLAGS='${CFLAGS}' \
                OPTIM='${OPTIM}' \
                SSL_BASE='${OPENSSLBASE}' \
                EAPI_MM='SYSTEM' \
                PATH="${PREFIX}/bin:${PATH}"

INSTALL_TARGET= install-quiet

MAN1=   dbmmanage.1 htdigest.1 htpasswd.1
MAN8=   ab.8 apachectl.8 apxs.8 httpd.8 logresolve.8 rotatelogs.8 \
        ${SUEXEC_MAN}

TYPE=   test
CRT=
KEY=

post-extract:
        @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/apache.sh \
                > ${WRKSRC}/apache.sh

pre-patch:
        @cd ${WRKDIR}/mod_ssl-${VERSION_MODSSL}-${VERSION_APACHE} \
        && ${ECHO_MSG} "===>  Applying mod_ssl-${VERSION_MODSSL} extension" \
        && ./configure --with-apache=../${DISTNAME} --expert

post-patch:
        @${PERL} -pi -e 's|-print|-print0|;s|xargs|xargs -0|' \
                ${WRKSRC}/Makefile.tmpl
        @${PERL} -pi -e "s|SSL_LDFLAGS=''|SSL_LDFLAGS='${OPENSSL_LDFLAGS}'|" \
                ${WRKSRC}/src/modules/ssl/libssl.module
        @cd ${WRKSRC} \
        && ${FIND} . -type f -name "*.orig" -print | ${XARGS} ${RM} -f

post-build:
        @cd ${WRKSRC} \
        && ${ECHO_MSG} "===>  Creating Dummy Certificate for Server (SnakeOil)" \
        && ${ECHO_MSG} "      [use 'make certificate' to create a real one]" \
        && ${MAKE} certificate TYPE=dummy >/dev/null 2>&1

certificate:
        @cd ${WRKSRC} \
        && ${ECHO_MSG} "===>  Creating Test Certificate for Server" \
        && ${MAKE} certificate TYPE=${TYPE} CRT=${CRT} KEY=${KEY}

pre-install:
        @${PKGINSTALL} ${PKGNAME} PRE-INSTALL

post-install:
        ${INSTALL_DATA} ${WRKSRC}/apache.sh ${PREFIX}/etc/rc.d/apache.sh-dist
        @if [ ! -f ${PREFIX}/etc/rc.d/apache.sh ]; then \
                ${ECHO} "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."; \
                ${INSTALL_SCRIPT} ${WRKSRC}/apache.sh ${PREFIX}/etc/rc.d/apache.sh; \
        fi

.include <bsd.port.post.mk>
Just throw that into /usr/ports/www/apache13-modssl/Makefile and run "make install"

John
 
Back
Top