Author |
|
draggy82
Joined: 25 Feb 2009 Posts: 2
|
Posted: Thu 26 Feb '09 9:22 Post subject: Remove static module or converting it into share module? |
|
|
Hello Apache Professional or Expert users,
May I know is there any method to remove a static module or or converting it into share module, which it has already compiled together with the Apache Web Server?
I accidently compiled the Apache Web Server core together with most of the module:
Code: |
# ./httpd -l
Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_include.c
mod_filter.c
mod_log_config.c
mod_env.c
mod_mime_magic.c
mod_setenvif.c
mod_ssl.c
prefork.c
http_core.c
mod_mime.c
mod_dav.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_dav_fs.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_so.c
|
Code: |
# ./httpd -M
Loaded Modules:
core_module (static)
authn_file_module (static)
authn_default_module (static)
authz_host_module (static)
authz_groupfile_module (static)
authz_user_module (static)
authz_default_module (static)
auth_basic_module (static)
include_module (static)
filter_module (static)
log_config_module (static)
env_module (static)
mime_magic_module (static)
setenvif_module (static)
ssl_module (static)
mpm_prefork_module (static)
http_module (static)
mime_module (static)
dav_module (static)
status_module (static)
autoindex_module (static)
asis_module (static)
cgi_module (static)
dav_fs_module (static)
negotiation_module (static)
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
rewrite_module (static)
so_module (static)
jk_module (shared)
Syntax OK
|
therefore I am seeking help on how to remove the static module or converting it into share module.
Thank you |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Thu 26 Feb '09 10:41 Post subject: |
|
|
If you don't want that static modules you'll have to compile apache yourself. From your list of the static modules, I guess you running some linux? |
|
Back to top |
|
draggy82
Joined: 25 Feb 2009 Posts: 2
|
Posted: Thu 26 Feb '09 15:51 Post subject: |
|
|
James Blond wrote: | If you don't want that static modules you'll have to compile apache yourself. From your list of the static modules, I guess you running some linux? |
Is OpenSolaris |
|
Back to top |
|
glsmith Moderator

Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 26 Feb '09 22:41 Post subject: |
|
|
I'm curious as to this subject as well.
From what I understood reading the instructions for building on *nix, using
--with-modules=shared and --with-dso was supposed to leave me a directory ful of .so files but no!, they got compiled into httpd anyway.
I also find it a little stupid
--with-modules=all is an option
--with-modules=shared is supposedly an option.
so what about
--with-shared-modules=all <-- tried this too with no luck.
it would be nice if ./configure --help helped a little more than it does when it comes to these choices. |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Fri 27 Feb '09 10:59 Post subject: |
|
|
AFAIK you have to say every module that it should be shared as dso.
./configure --prefix=/path/to/install --enable-foo=shared
For full knowledge see http://httpd.apache.org/docs/2.2/dso.html#usage
---
edit:
Second thought: --disable=all and than build the modules with apxs |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 614 Location: Milford, MA, USA
|
Posted: Fri 27 Feb '09 14:04 Post subject: |
|
|
If you are using Apache 2.2, I think the configure switch you want is: Code: | --enable-mods-shared=all |
If you just want the most commonly used modules, try: Code: | --enable-mods-shared=most |
Either of these implies --enable-so, so you don't need to specify that separately.
The switches you are using look like they are from an older version of Apache.
-tom- |
|
Back to top |
|
glsmith Moderator

Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 27 Feb '09 21:41 Post subject: |
|
|
Hi Tom,
Welcome back to world, it's been so long I hope your holidays were great and the new year is treating you good as well.
I was going off the top of my head. Guess I'll fire up the fedora box and have a look. |
|
Back to top |
|
glsmith Moderator

Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 27 Feb '09 22:45 Post subject: |
|
|
I was pretty sure I used
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-so --with-included-apr --with-ssl=/usr/local --with-z=/root/zlib-1.2.3
However, this time I noticed makefiles being generated for the indiviual modules so I guess I didn't do that the first time. I built 3 times trying different options ... I know I used --enable-mods-shared=all on one of the go-arounds and --enable-so on all of them, oh well .. red face again! |
|
Back to top |
|