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.

can suphp support mod_rewrite ?

Discussion in 'General Discussion' started by aqjedd, Oct 13, 2009.

  1. aqjedd

    aqjedd Member

    Joined:
    Oct 6, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    my server is centos5.3 with cpanel,

    i install php to suphp,

    i want to ask under suphp,can my server support mod_rewrite?

    can i use phpinfo to check if my server support mod_rewrite?


    thx
     
  2. bvierra

    bvierra Well-Known Member

    Joined:
    Jul 28, 2006
    Messages:
    55
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Southern California
    mod_rewrite is not part of php its part of apache. So yes you can use mod_rewrite and suphp together.
     
  3. aqjedd

    aqjedd Member

    Joined:
    Oct 6, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    in my memory,suphp does not allow .htaccess,and use php.ini,

    and mod_rewrite rules are wrote in .htaccess,

    will it ok?

    and how can i make sure if my server support mod_rewrite?



    thx
     
  4. 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:
    It is possible to verify if mod_rewrite is compiled-into Apache using the following command via root SSH access:
    Code:
    # /usr/local/apache/bin/httpd -l | grep rewrite
    Please note the above command shows only compiled-in modules; there may still be a few more Apache DSO modules in the Apache installation, but mod_rewrite, specifically, will be shown using the above command if it is installed, which it is by default.
     
  5. aqjedd

    aqjedd Member

    Joined:
    Oct 6, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    i run
    under ssh,

    but no message show..

    i get

    thx
     
  6. aqjedd

    aqjedd Member

    Joined:
    Oct 6, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    can i install t via EasyApache (Apache Update) ?


    thx
     
  7. aqjedd

    aqjedd Member

    Joined:
    Oct 6, 2009
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    i run /usr/local/apache/bin/httpd -l mod_ and get

    it include mod_rewrite.c,

    does it mean my server include mod_rewrite?


    thx
     
  8. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    bvierra, I have seen a few of your posts and starting to like you! :D

    (Mainly because I can step back and keep from slapping users upside the head! LOL)

    Anyway, as bvierra pointed out already, mod_rewrite has ABSOLUTELY NOTHING to do with PHP and subsequently SuPHP!

    Those are two totally separate and distinctly different things!

    Yes, you can have SuPHP for you PHP and use Mod_ReWrite directives assuming you have both SuPHP and Mod_ReWrite installed on your server!

    Yes, you can use phpinfo() in SuPHP as long as you don't put it in "disable_functions" list in your PHP.INI. ;)
     
    #8 Spiral, Oct 13, 2009
    Last edited: Oct 13, 2009
  9. 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
    The way we implement mod_rewrite, you wont see a mod_rewrite module, but the functionality is there by default (if you are using EasyApache).
     
Loading...

Share This Page