Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite is not installed! Apache 2.x

Module mod_rewrite is not installed although it's in the configuraton line

         

ticoroman

7:27 pm on Nov 21, 2006 (gmt 0)

10+ Year Member



Hello!

I have:
CentOS 4.4 x64 (64-bit system!)
httpd-2.2.3 unix source

Trying to do:
Compile Apache, with mod_rewrite (absolutely needed).

Configuration line:
# ./configure --prefix=/usr/local/apache --enable-so --enable-cgi --enable-info --enable-rewrite --enable-speling --enable-usertrack --enable-deflate --enable-ssl --enable-mime-magic --enable-modules=mod_rewrite

Problem:
mod_rewrite is not installed!

# /usr/local/apache/bin/apachectl -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_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c

I am not seeing any error messages, but mod_rewrite is not installed, and can't (of course) be used. I have tried with 2.0.59 as well. Even when I try with --enable-modules=all mod_rewrite is not installed. Does anyone know anything about this problem and how it can be fixed?

I would surely appreciate any help! Thank you.

equalm

10:47 pm on Nov 21, 2006 (gmt 0)

10+ Year Member




Wow, that's a tricky one.

Have you read through some of the generated configuration files that come from "configure"

config.log
config.status

and grep around for "rewrite"

Might help debug your problem.

ticoroman

3:17 am on Nov 22, 2006 (gmt 0)

10+ Year Member



config.log

configure:19617: checking whether to enable mod_rewrite
configure:19655: result: yes (default)

## ----------------- ##
## Output variables. ##
## ----------------- ##

.....

BUILTIN_LIBS=' modules/aaa/libmod_authn_file.la modules/aaa/libmod_authn_default.la modules/aaa/libmod_authz_host.la modules/aaa/libmod_authz_groupfile.la modules/aaa/libmod_authz_user.la modules/aaa/libmod_authz_default.la modules/aaa/libmod_auth_basic.la modules/filters/libmod_include.la modules/filters/libmod_filter.la modules/filters/libmod_deflate.la modules/loggers/libmod_log_config.la modules/metadata/libmod_env.la modules/metadata/libmod_mime_magic.la modules/metadata/libmod_usertrack.la modules/metadata/libmod_setenvif.la modules/ssl/libmod_ssl.la modules/http/libmod_http.la modules/http/libmod_mime.la modules/generators/libmod_status.la modules/generators/libmod_autoindex.la modules/generators/libmod_asis.la modules/generators/libmod_info.la modules/generators/libmod_cgi.la modules/mappers/libmod_negotiation.la modules/mappers/libmod_dir.la modules/mappers/libmod_actions.la modules/mappers/libmod_speling.la modules/mappers/libmod_userdir.la modules/mappers/libmod_alias.la modules/mappers/libmod_rewrite.lamodules/mappers/libmod_so.la'

Similar lines also in config.status. Interesting. I'm a newbie in this, but the piece of s... (which I need so bad) should be installed!

I guess I should give up, and install one of the precompiled RPMs or something(even though I then get a little garbage I do not need....).

mod_rewrite should be in the precompiled versions by default?

equalm

6:16 am on Nov 22, 2006 (gmt 0)

10+ Year Member




I probably should look this up, but try not including the "--enable-modules=(all¦most¦etc)" directive in your configure command.

that might be overriding what you're already providing. I should RTFM, but oh well.

this advice is worth the price you're paying. =)

ticoroman

5:44 pm on Nov 22, 2006 (gmt 0)

10+ Year Member



I probably should look this up, but try not including the "--enable-modules=(all¦most¦etc)" directive in your configure command.

that might be overriding what you're already providing. I should RTFM, but oh well.

this advice is worth the price you're paying. =)
It didn't help, but thanks anyway. Keep on guessing. Soon we will hunt it down... :)

There is no mod_rewrite anywhere. I installed the RPM (following) with CentOS but that piece of sh.. obly have the absolutely necessary installed, and of course not mod_rewrite!

So what I got here is a non-funcional server I need to migrate one website to. I'm paying double bills (old server) until I got this to work, and besides that the old one is hardly managing the load...

Is there anywhere some other RPMs (that might be suitable for CentOS) that have mod_rewrite enabled (for x64!)? I'm giving up the fight compiling it myself....