The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need to install mod_rewrite

Discussion in 'EasyApache' started by shufil, Jul 8, 2014.

  1. shufil

    shufil Well-Known Member

    Joined:
    Mar 19, 2014
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    I need to install LoadModule rewrite_module libexec/mod_rewrite.so and AddModule mod_rewrite.c in my server ,

    so please advice how can i do this , please see below details

    root@home]#/usr/local/apache/bin/httpd -D DUMP_MODULES | grep rewrite
    Syntax OK
    rewrite_module (static)
    [root@home]# httpd -l|grep rewrite
    mod_rewrite.c
    ____________________________________
    /usr/local/apache/bin/httpd -l
    Compiled in modules:
    core.c
    mod_authn_file.c
    mod_authn_dbm.c
    mod_authn_dbd.c
    mod_authn_default.c
    mod_authn_alias.c
    mod_authz_host.c
    mod_authz_groupfile.c
    mod_authz_user.c
    mod_authz_dbm.c
    mod_authz_default.c
    mod_auth_basic.c
    mod_auth_digest.c
    mod_file_cache.c
    mod_cache.c
    mod_disk_cache.c
    mod_include.c
    mod_filter.c
    mod_log_config.c
    mod_log_forensic.c
    mod_logio.c
    mod_env.c
    mod_mime_magic.c
    mod_expires.c
    mod_headers.c
    mod_unique_id.c
    mod_setenvif.c
    mod_version.c
    mod_proxy.c
    mod_proxy_connect.c
    mod_proxy_ftp.c
    mod_proxy_http.c
    mod_proxy_scgi.c
    mod_proxy_ajp.c
    mod_proxy_balancer.c
    mod_ssl.c
    event.c
    http_core.c
    mod_mime.c
    mod_dav.c
    mod_status.c
    mod_autoindex.c
    mod_asis.c
    mod_info.c
    mod_suexec.c
    mod_cgid.c
    mod_dav_fs.c
    mod_dav_lock.c
    mod_negotiation.c
    mod_dir.c
    mod_actions.c
    mod_speling.c
    mod_userdir.c
    mod_alias.c
    mod_rewrite.c
    mod_so.c

    But httpd.conf not seems mod_rewrite.so moduler . i hope get reply fastly .

    Regards,
    Shufil
     
  2. cPanelKurtN

    cPanelKurtN Well-Known Member
    Staff Member

    Joined:
    Jan 29, 2013
    Messages:
    95
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    The mod_rewrite module is installed by default when using EasyApache and is compiled directly into the 'httpd' binary. As evident by your output, it's available (mod_rewrite.c). You do not need a dynamic module to load mod_rewrite, since it's already loaded.

    To verify that you have mod_rewrite functionality, run the command and it will show that you have access to the httpd.conf directives it provides:

    /usr/local/apache/bin/httpd -G | grep mod_rewrite

    You should see output that is similar to this:

    RewriteEngine (mod_rewrite.c)
    RewriteOptions (mod_rewrite.c)
    RewriteBase (mod_rewrite.c)
    RewriteCond (mod_rewrite.c)
    RewriteRule (mod_rewrite.c)
    RewriteMap (mod_rewrite.c)
    RewriteLock (mod_rewrite.c)
    RewriteLog (mod_rewrite.c)
    RewriteLogLevel (mod_rewrite.c)​


    If you see output like that, then mod_rewrite is working, installed, and available for your use.
     
  3. shufil

    shufil Well-Known Member

    Joined:
    Mar 19, 2014
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello ,

    Thanks for reaply , its very help full ,

    i got same out put .
    /usr/local/apache/bin/httpd -G | grep mod_rewrite
    RewriteEngine (mod_rewrite.c)
    RewriteOptions (mod_rewrite.c)
    RewriteBase (mod_rewrite.c)
    RewriteCond (mod_rewrite.c)
    RewriteRule (mod_rewrite.c)
    RewriteMap (mod_rewrite.c)
    RewriteLock (mod_rewrite.c)
    RewriteLog (mod_rewrite.c)
    RewriteLogLevel (mod_rewrite.c)

    Thanks and regards,
    Shufil
     
Loading...

Share This Page