Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Oct 2009
    Posts
    23

    Default can suphp support mod_rewrite ?

    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. #2
    Member bvierra's Avatar
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    55

    Default

    mod_rewrite is not part of php its part of apache. So yes you can use mod_rewrite and suphp together.

  3. #3
    Member
    Join Date
    Oct 2009
    Posts
    23

    Default

    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. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by aqjedd View Post
    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
    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. #5
    Member
    Join Date
    Oct 2009
    Posts
    23

    Default

    i run
    # /usr/local/apache/bin/httpd -l | grep rewrite
    under ssh,

    but no message show..

    i get
    root@tunn [~]# # /usr/local/apache/bin/httpd -l | grep rewrite
    root@tunn [~]#

    thx

  6. #6
    Member
    Join Date
    Oct 2009
    Posts
    23

    Default

    can i install t via EasyApache (Apache Update) ?


    thx

  7. #7
    Member
    Join Date
    Oct 2009
    Posts
    23

    Default

    i run /usr/local/apache/bin/httpd -l mod_ and get

    root@tunn [~]# /usr/local/apache/bin/httpd -l mod_
    Compiled in modules:
    core.c
    mod_authn_file.c
    mod_authn_default.c
    mod_authz_host.c
    mod_authz_groupfile.c
    mod_authz_user.c
    mod_authz_default.c
    mod_auth_basic.c
    mod_include.c
    mod_filter.c
    mod_log_config.c
    mod_logio.c
    mod_env.c
    mod_expires.c
    mod_headers.c
    mod_unique_id.c
    mod_setenvif.c
    mod_proxy.c
    mod_proxy_connect.c
    mod_proxy_ftp.c
    mod_proxy_http.c
    mod_proxy_ajp.c
    mod_proxy_balancer.c
    mod_ssl.c
    prefork.c
    http_core.c
    mod_mime.c
    mod_status.c
    mod_autoindex.c
    mod_asis.c
    mod_info.c
    mod_suexec.c
    mod_cgi.c
    mod_negotiation.c
    mod_dir.c
    mod_actions.c
    mod_userdir.c
    mod_alias.c
    mod_rewrite.c
    mod_so.c
    it include mod_rewrite.c,

    does it mean my server include mod_rewrite?


    thx

  8. #8
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by bvierra View Post
    mod_rewrite is not part of php its part of apache. So yes you can use mod_rewrite and suphp together.
    bvierra, I have seen a few of your posts and starting to like you!

    (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.
    Last edited by Spiral; 10-13-2009 at 10:48 PM.

  9. #9
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by aqjedd View Post
    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
    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).

Similar Threads & Tags
Similar threads

  1. help with mod_rewrite.
    By alexv55 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-06-2011, 12:59 AM
  2. help: mod_rewrite
    By marquis_ce in forum New User Questions
    Replies: 1
    Last Post: 06-18-2008, 03:00 PM
  3. mod_rewrite
    By its_joe in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-15-2007, 08:14 AM
  4. mod_rewrite
    By Cityhost in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-02-2005, 03:26 AM
  5. mod_rewrite
    By elleryjh in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-23-2005, 09:06 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube