I'm pretty new to linux and even more so to Gentoo. I'm running an apache server on a box and have been doing a number of configuration changes recently. I am getting an errow now, however, and i'm not sure exactly what the problem is. Can somone please point me in the right direction? Thank you.
ERROR:
Also, here's line 23's function/etc/init.d/apache2: line 23: 5477 Segmentation fault $APACHE2 ${APACHE2_OPTS} -t >/dev/null 2>&1
* Apache2 has detected a syntax error in your configuration files:
/etc/init.d/apache2: line 23: 5479 Segmentation fault ${APACHE2} ${APACHE2_OPTS} -t
checkconfig() {
SERVERROOT="${SERVERROOT:-/usr/lib/apache2}"
if [ ! -d ${SERVERROOT} ]; then
eerror "SERVERROOT does not exist: ${SERVERROOT}"
return 1
fi
CONFIGFILE="${CONFIGFILE:-/etc/apache2/httpd.conf}"
[ ${CONFIGFILE:0:1} != "/" ] && CONFIGFILE="${SERVERROOT}/${CONFIGFILE}"
if [ ! -r "${CONFIGFILE}" ]; then
eerror "Unable to read configuration file: ${CONFIGFILE}"
return 1
fi
# check to see if the old config files exist and aren't used
if [[ "${CONFIGFILE}" != "/etc/apache2/conf/apache2.conf" &&
-e "/etc/apache2/conf/apache2.conf" ]]; then
eerror "Found old apache2.conf in /etc/apache2/conf. Configuration locations \n have moved, please check ${CONFIGFILE} to make sure it is correct, \n and remove /etc/apache2/conf/apache2.conf.\n\n Please see http://www.gentoo.org/doc/en/apache-upgrading.xml\n for more information."
return 1
fi
[ -n "${SERVERROOT}" ] && APACHE2_OPTS="${APACHE2_OPTS} -d ${SERVERROOT}"
[ -n "${CONFIGFILE}" ] && APACHE2_OPTS="${APACHE2_OPTS} -f ${CONFIGFILE}"
[ -n "${STARTUPERRORLOG}" ] && APACHE2_OPTS="${APACHE2_OPTS} -E ${STARTUPERRORLOG}"
# set a sane default for KEEPENV and OLDENV
KEEPENV=${KEEPENV:-PATH}
OLDENV=
for env_var in ${KEEPENV}; do
OLDENV="${OLDENV} ${env_var}=`printenv ${env_var}`"
done
APACHE2="env -i ${OLDENV} /usr/sbin/apache2"
$APACHE2 ${APACHE2_OPTS} -t 1>/dev/null 2>&1
ret=$?
if [ $ret -ne 0 ]; then
eerror "Apache2 has detected a syntax error in your configuration files:"
${APACHE2} ${APACHE2_OPTS} -t
fi
return $ret
}



