Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why httpd* in .libs? - setting PIDLOG

Status
Not open for further replies.

boblucen

Technical User
Joined
Sep 27, 2004
Messages
2
Location
IT
Hi everybody,
I have some problems compiling apache2:

1) why after compiling I always find the main executable httpd in HTTPD_ROOT/.libs/httpd !??!
I'd like it were in HTTPD_ROOT/bin

2) I'd like put httpd.pid in "myapachedir/var/run" but how can I set the httpd.pid directory?
I've created my personal config.layout file, but it seems I cannot set httpd.pid in this file;
I assign my env-variable DEFAULT_HTTPDPID="HTTPD_ROOT/var/run" during configuring but it always put the pid file in "HTTPD_ROOT/myapachelogs"

I run the apache configuration by running this script (it contains my configurig options):


"
#### define the main variables

NAME="httpd"
VER="2.0.50"
HTTP_DIR="/usr/NX"
HTTP_SRC="$HTTP_DIR/src"
HTTP_LOG="$HTTP_DIR/var/log/httpd/logs"
HTTP_DOCS="$HTTP_DIR/var/www"
HTTP_CONF="$HTTP_DIR/etc/httpd/conf"
HTTP_PID="$HTTP_DIR/var/run"
HTTP_CUST="$HTTP_SRC/NXcustom"
export CFLAGS="-I/usr/kerberos/include/ -L/usr/kerberos/lib" #include for kerberos

cd $HTTP_DIR

### if not present, create the installation subdirectories

#if ! mkdir -p $HTTP_PID $HTTP_DOCS $HTTP_LOG/error $HTTP_LOG/logs $HTTP_CONF lib bin sbin share/include
if ! mkdir -p $HTTP_PID
then
echo
echo "WARNING! cannot create httpd directory tree"
echo

exit
fi

### run the apache customized configuration

$HTTP_SRC/$NAME-$VER/configure -C \
--enable-layout=NXApache \
--enable-MODULE=static \
--enable-ssl \
--disable-so \
--disable-imap \
--disable-actions \
--disable-asis \
--disable-auth \
--disable-autoindex \
--disable-access \
--disable-dir \
--disable-env \
--disable-include \
--disable-setenvif \
--disable-status \
--disable-userdir \
--disable-negotiation \
DEFAULT_PIDLOG="$HTTP_PID/httpd.pid" \
HTTPD_ROOT="$HTTP_DIR" \
DEFAULT_SCOREBOARD="$HTTP_LOG/apache_runtime_status" \
DEFAULT_LOCKFILE="$HTTP_LOG/accept.lock" \
DEFAULT_ERRORLOG="$HTTP_LOG/error_log" \
AP_TYPES_CONFIG_FILE="$HTTP_CONF/mime.types" \
SERVER_CONFIG_FILE="$HTTP_CONF/httpd.conf"
#--prefix=$HTTP_DIR \
#--libexecdir=$HTTP_DIR/lib \
#--includedir=$HTTP_DIR/share/include \
#--exec-prefix=$HTTP_DIR \
#--bindir=$HTTP_DIR/bin \
#--sbindir=$HTTP_DIR/sbin"







this is my config.layout

"
# NXApache path layout.
<Layout NXApache>
prefix: /usr/NX/
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/bin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/modules
mandir: ${prefix}/man
sysconfdir: ${prefix}/etc/httpd/conf
datadir: ${prefix}
installbuilddir: ${datadir}/build
errordir: ${datadir}/var/ iconsdir: ${datadir}/icons
htdocsdir: ${datadir}/var/ manualdir: ${datadir}/manual
cgidir: ${datadir}/var/ includedir: ${prefix}/include
localstatedir: ${prefix}
runtimedir: ${localstatedir}/var/log/httpd/logs
logfiledir: ${localstatedir}/var/log/httpd/logs
proxycachedir: ${localstatedir}/proxy
</Layout>
"






and this is the output of "httpd -V command"

"
Server version: Apache/2.0.50
Server built: Sep 24 2004 18:08:04
Server's Module Magic Number: 20020903:8
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_PROC_PTHREAD_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/usr/NX"
-D SUEXEC_BIN="/usr/NX/bin/suexec"
-D DEFAULT_PIDLOG="var/log/httpd/logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="var/log/httpd/logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="etc/httpd/conf/mime.types"
-D SERVER_CONFIG_FILE="etc/httpd/conf/httpd.conf"
"





can you help me?
thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top