logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: problem loading mod_rewrite, using httpd -M
Author
mnewnham



Joined: 29 Nov 2012
Posts: 4
Location: USA, Denver

PostPosted: Fri 30 Nov '12 2:23    Post subject: problem loading mod_rewrite, using httpd -M Reply with quote

Apache 2.4.3 / Windows 7 / php 5.3

I'm trying to load mod_rewrite to a functioning installation of the above configuration.
I modified the httpd.conf to load modules/mod_rewrite, and restarted the server.
The server starts with no error, but when I try a simple script to test if mod_rewrite is installed, it says no.
To compound the issue, when I run httpd -M, it indicates that no modules at all are loaded. I know this is not true, as I have the php5_apache2_4 module correctly loaded and running. httpd -l runs as expected.

Thoughts, Ideas?

TIA

Mark
Back to top
rhossis



Joined: 30 Mar 2011
Posts: 9

PostPosted: Fri 30 Nov '12 16:19    Post subject: Reply with quote

Hey,

Please try this out

Code:
httpd -t -D DUMP_MODULES


What does it give you?
Back to top
mnewnham



Joined: 29 Nov 2012
Posts: 4
Location: USA, Denver

PostPosted: Fri 30 Nov '12 16:47    Post subject: Reply with quote

Should have said in original post, get the same response
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 30 Nov '12 18:36    Post subject: Reply with quote

The function to show which modules are loaded is currently broken on windows within the 2.4.x series. I think it will be fixed with the next release.

However did you turn it on via RewriteEngine On ?
Back to top
mnewnham



Joined: 29 Nov 2012
Posts: 4
Location: USA, Denver

PostPosted: Sat 01 Dec '12 4:32    Post subject: Reply with quote

No, heres my htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^link([^/]*).html$ rewrite.php?link=$1 [L]

Heres my logfile
[Fri Nov 30 19:25:41.636400 2012] [core:alert] [pid 5720:tid 884] [client 127.0.0.1:55264] C:/adg/web/webservice/apache/htdocs/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Back to top
mnewnham



Joined: 29 Nov 2012
Posts: 4
Location: USA, Denver

PostPosted: Sat 01 Dec '12 20:04    Post subject: Reply with quote

I've downgraded to apache2.2, and it works fine, so I'm going to call it a bug in apache2.4. Theres no reason that I need to use 2.4 right now, so I'll go with that
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Sat 01 Dec '12 20:20    Post subject: Reply with quote

mnewnham wrote:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration


Be sure you uncommented in httpd.conf:

LoadModule rewrite_module modules/mod_rewrite.so
Back to top


Reply to topic   Topic: problem loading mod_rewrite, using httpd -M View previous topic :: View next topic
Post new topic   Forum Index -> Apache