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.

Enable engine_rewrite mod

Discussion in 'General Discussion' started by ASTRAPI, May 23, 2009.

  1. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Hello

    Is there a option in easy apache to add the engine_rewrite mod?

    I didn't find it.

    Thanks
     
  2. chinmay

    chinmay Well-Known Member

    Joined:
    Jul 22, 2008
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    localhost
    Hi there,

    Not heard of engine_rewrite mod.. Do you mean mod_rewrite apache module ? Also, let me know the apache version on your server...
     
  3. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Yes mod_rewrite :)

    Apache/2.2.3
     
  4. chinmay

    chinmay Well-Known Member

    Joined:
    Jul 22, 2008
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    localhost
    You can check if the mod_rewrite is compiled on the server with the command as below
    If it is compiled on the server you will get the output as below
    If you get the above output mod_rewrite is a built in module. You do not need to enable OR compile it on the server.
     
  5. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Ok thanks :)
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    mod_rewrite capabilities are enabled by default. This cannot be disabled in EasyApache.
     
  7. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    Thanks for this detailed instructions. It's really helpful!
     
  8. faison

    faison Active Member

    Joined:
    Apr 17, 2005
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    I got this



    root@hs [/]# httpd -l | grep mod_rewrite
    bash: httpd: command not found
     
  9. mickbeng

    mickbeng Well-Known Member

    Joined:
    Oct 3, 2006
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Penang, Malaysia
    How about this?

    # /usr/local/apache/bin/apachectl -M | grep rewrite
     
  10. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    httpd binary path and httpd symbolic link to apachectl

    What mickbeng posted is correct and should work OK.

    Please note the full path to the installed "httpd" binary is as seen below:
    Code:
    # /usr/local/apache/bin/httpd -l | grep rewrite
    Separate and different from the "httpd" binary, there is a symbolic link for the command "httpd" -- if the "httpd" symlink to "apachectl" is missing, as seen via stat then the symlink may need to be recreated; here is an example of stat output when the symlink is setup and is not missing:
    Code:
    # stat /usr/sbin/httpd | head -n2
      File: `/usr/sbin/httpd' -> `/usr/local/apache/bin/apachectl'
      Size: 31        	Blocks: 0          IO Block: 4096   symbolic link
    If it is missing and you see the following error of "cannot stat" then the symlink should be recreated:
    Code:
    # stat /usr/sbin/httpd | head -n2
    stat: cannot stat `/usr/sbin/httpd': No such file or directory
    To recreate the "httpd" symlink to "apachectl" the following example command may be used via root SSH access:
    Code:
    # ln -fnsv /usr/local/apache/bin/apachectl /usr/sbin/httpd
     
Loading...

Share This Page