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
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
mod_rewrite is not part of php its part of apache. So yes you can use mod_rewrite and suphp together.
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:
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.Code:# /usr/local/apache/bin/httpd -l | grep rewrite
cPResources: Submit a Support Request - Submit a Bug Report - Review existing Tickets-- Donald cPanelDon Holl - Analyst, cPanel Quality Assurance
i rununder ssh,# /usr/local/apache/bin/httpd -l | grep rewrite
but no message show..
i getroot@tunn [~]# # /usr/local/apache/bin/httpd -l | grep rewrite
root@tunn [~]#
thx
can i install t via EasyApache (Apache Update) ?
thx
i run /usr/local/apache/bin/httpd -l mod_ and get
it include mod_rewrite.c,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
does it mean my server include mod_rewrite?
thx
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.