Funny you should ask.  I just found out how to do this last night.

You can run Apache from the command line with a switch (I think it might be -V ), and 
it will tell you it's .configure options.  If the -V doesn't work on your distro, use 
-h to see a list of the options - apparently Apache changes the command line switches 
on a regular basis.

So, on my Gentoo system, running the command "apache2 -V" returns this (I've modified 
the Magic Number just in case it's used for security somewhere):

Server version: Apache/2.0.49
Server built:   Apr  3 2004 01:32:37
Server's Module Magic Number: 11111111:1
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_SYSVSEM_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"
 -D SUEXEC_BIN="/usr/sbin/suexec2"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/conf/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/conf/apache2.conf"


Keep in mind that the executable might be different on your distro (i.e. apache or 
httpd maybe)

Hope that helps

Shawn

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Jacob C
Sent: Thursday, April 29, 2004 1:50 PM
To: CLUG General
Subject: [clug-talk] OT: Finding Apache Configure Options


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

I have a box with Apache installed and need to recompile Apache w/ PHP5. I was 
wondering if anyone can tell me how to find out what the configure
options for Apache (not PHP) were when it was first compiled.

Thanks,
Jacob
- --
"No, mon, let's go home to Jamaica. I and I been in Babylon too long." -- Homer Simpson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAkVyALeoSBberRbgRAvCAAKDOwTdVpyMh3bObIJJzsxWPG+YylQCghRVa
F+ieNA2VBfT6FWpqV2j3QBo=
=xUEk
-----END PGP SIGNATURE-----


_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to