How to find Apache 2.2. compile-time options?
I need to find out what how an instance of Apache was compiled - not just the loaded modules, but specifically what the default dbm database type was set to be (as per http://httpd.apache.org/docs/2.4/mod/mod_authn_dbm.html, this appears to be set at compile time). Anyone know how I can determine this, and if there's any way to change it short of re-compiling?
Thank you! |
# apache2ctl -V
Or # httpd -V Depends on the distro. |
Strange - on RHEL 6.2, that was giving me the modules, but no flags. Basically I want to see the entire compile command (or all info to be able to recreate it exactly).
|
I'm running Apache 2.2.17 and for me, this command:
Code:
httpd2 -V Code:
Server compiled with.... |
I do get that - is that every bit of info needed to reproduce a configure? The reason I thought it wasn't, is that I have two installs of Apache on the same server, and they're using different default DBM libraries (I can tell by the format of their DBM files). From everything I'm reading, that is set at Apache compile time. I wanted to confirm exactly which version they were both using, but while httpd -V gives me an output like you show above, it doesn't mention DBM for either of them. So I thought that perhaps there were additional flags that didn't show in this output. If not, then I'm incredibly confused...
|
Based on the title of the post, and the first clause of the first sentence, I thought you mainly had a problem getting compile options for server itself.
You might want to do something like this for each instance of apache: Code:
egrep -ri '(auth)|(dbm)' apachex_dir > auth_confx.txt You might wish to then run the diff comand on the 2 files: Code:
diff auth_conf1.txt auth_conf2.txt Code:
egrep -ri '(auth)|(dbm)' /etc/apache2 |
I thought I was trying to get the compile options of the Apache server (just the DBM library example being one particular one I was trying to find). My understanding was that it was a compile-time option only, not anything in a configuration file. I'll check the above, though, just in case. Thanks!
|
Looking at the output from above just shows me the modules (which are the same, but the modules alone don't determine the libraries). Here's the info I've been working from, from the Apache 2.2 docs:
"AuthDBMType Directive Sets the type of database file that is used to store the passwords. The default database type is determined at compile time. The availability of other types of database files also depends on compile-time settings. It is crucial that whatever program you use to create your password files is configured to use the same type of database." So this is one example of info I'm trying to find that doesn't seem to be shown in -V, but is still something set at compile time only. If this one exists, then I'm also concerned there might be others. I hope this helps clarify a bit. :-) Thanks! |
привет всем, такая же проблема
---------- Post added 09-07-12 at 05:10 AM ---------- настройка веб-сервера apache |
Quote:
You posted the link to a portion of the apache configuration info. originally. I'm aware of it. What I'm not aware of are the exact details of your two apache installations, what interpretation you might be placing on the world "default" from the documentation, and exactly how you are going about building apache. We can think in terms of the "default" type of authentication used by apache, the "default" sort of authentication provided by a directive that has a "default" specific to the directive, etc. I've gotten the impression that you might be placing some interpretation on the use of word "default" in the apache documentation, other then the one that would normally apply to the situation. Notice from the documentation that "default" is an argument to the directive: so rather than specifying a specific type of database: Code:
AuthDBMType GDBM Code:
AuthDBMType default If you won't provide the requested output of the diff, perhaps you could go to the directory where you placed the apache source code, and look at the output of a command sequence such as this: Code:
./configure --help | less |
All times are GMT -5. The time now is 09:49 PM. |