aqjedd

Member
Oct 6, 2009
23
0
51
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
 

bvierra

Well-Known Member
Jul 28, 2006
55
1
158
Southern California
mod_rewrite is not part of php its part of apache. So yes you can use mod_rewrite and suphp together.
 

aqjedd

Member
Oct 6, 2009
23
0
51
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
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
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.
 

aqjedd

Member
Oct 6, 2009
23
0
51
i run /usr/local/apache/bin/httpd -l mod_ and get

[email protected] [~]# /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
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
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! :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. ;)
 
Last edited: