Ajitabh Pandey's Soul & Syntax

Exploring systems, souls, and stories – one post at a time

Enable Apache mod_rewrite module on OpenSuSE

OpenSuSE has mod_rewrite installed, but it is not loaded by default. Check if mod_rewrite is actually loaded by default or not:

# grep "^APACHE_MODULES" /etc/sysconfig/apache2
APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl userdir php5"


As you can see that “rewrite” is not present in the loaded modules. Add “rewrite” as below:


# vi /etc/sysconfig/apache2
APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl userdir php5 rewrite"
# /sbin/service apache2 restart
Syntax OK
Shutting down httpd2 (waiting for all children to terminate) done
Starting httpd2 (prefork) done

Comments

3 responses to “Enable Apache mod_rewrite module on OpenSuSE”

  1. fdinh Avatar

    Still valid with OpenSUSE Leap 42.3!

  2. Asep Saepuloh Avatar

    Thank’s, nice article

  3. Alfroy Avatar
    Alfroy

    Thanks!

    It’s works.

Leave a Reply to AlfroyCancel reply