LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-10-2006, 07:10 PM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
How to check what are the modules compiled into the binaries in a package?


Eg. I have apache2 installed. How do I check if mod_proxy module has been compiled into the web server or if the module is available to be dynamically loaded?

In general, how do we go about checking if a particular module has been compiled into the binaries in the packages available in the repositaries?

Thanks !
 
Old 03-10-2006, 07:34 PM   #2
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Modules installed are in /etc/apache2/mods-available
Modules loaded are in /etc/apache2/mods-enabled, they are just symlinks to the mods-available.
The module in question is libapache2-mod-proxy-html
 
Old 03-10-2006, 10:09 PM   #3
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 31
Judging by dracae's reply, the full listing I see in /etc/apache2/mods-available, and the output from 'ldd /usr/sbin/apache2', it would seem to me that for the stock Debian apache2, *all* modules are dynamically loaded and none are statically linked into the binary.
 
Old 03-10-2006, 10:37 PM   #4
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
apache2 -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_log_config.c
mod_logio.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_negotiation.c
mod_dir.c
mod_alias.c
mod_so.c

apache2 -V
Server version: Apache/2.0.55
Server built: Jan 16 2006 10:13:41
Server's Module Magic Number: 20020903:11
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=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec2"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
 
Old 03-10-2006, 11:51 PM   #5
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 31
Doh! That's what I get for not looking at the man page before posting. Thanks dracae.
 
Old 03-11-2006, 03:37 AM   #6
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Original Poster
Rep: Reputation: 30
Thanks Dracae

What about other software? In general, is there a standard command / parameter that can be used to know which are the modules complied into the binary?

Thanks !
 
Old 03-12-2006, 04:28 PM   #7
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 31
Apache just happens to be very modular, and so offers those special command line options.

Some software might offer similar options, but I don't think there's a general standard.

You can use the ldd command to see what shared libs a given binary will link to at runtime (though I know that's not what you're asking).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiled Kernel -- Modules can't be Found... joeyjwc Linux - Newbie 2 08-07-2005 05:27 AM
kernel compiled. starts up. no modules, and etc. RHLinuxGUY Slackware 5 04-14-2005 07:04 PM
update apt with source compiled binaries wgandhi Debian 1 12-20-2004 03:13 AM
Self compiled modules have wrong version id ewschone Linux - General 1 06-20-2004 01:13 PM
modules vs compiled in harmster Linux - General 2 02-19-2004 06:31 AM


All times are GMT -5. The time now is 01:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration