How to I test if mod_rewrite is enabled?

Posted by user124130 on Server Fault See other posts from Server Fault or by user124130
Published on 2012-06-09T12:15:10Z Indexed on 2012/12/11 17:08 UTC
Read the original article Hit count: 169

Filed under:
|

I'm setting up an environment for wordpress on apache2, on a fresh install of ubuntu 12.04.

In order to get friendly URLS working, I'm trying to set up mod_rewrite. I followed some instructions I found on the net, and used a2enmod.

Now. after restarting apache, I'd like to check if the module is actually loaded.

The command that I've found for getting a list of loaded modules is this:

apache2 -t -D DUMP_MODULES

However, this returns an error:

apache2: bad user name ${APACHE_RUN_USER}

So, how do I actually list all loaded modules, or otherwise check to see if mod_rewrite has been enabled?

© Server Fault or respective owner

Related posts about apache2

Related posts about mod-rewrite