Enable mod_rewrite on cPanel?

arindamb

Well-known member
Joined
Jul 11, 2013
Messages
128
Points
18
I have just finished final steps to install WHM/cPanel on my VPS server. I need to enable mod_rewrite on cPanel which I have already known on my local PC but not sure it will use same way with WHM/cpanel on a live server. I need to a guide to enable mod_rewrite on cPanel to use for websites?
 

EthernetServers

Member
Registered
Joined
Nov 24, 2017
Messages
21
Points
3
mod_rewrite is included as standard on cPanel servers:

# httpd -M | grep rewrite
rewrite_module (shared)
 

arindamb

Well-known member
Joined
Jul 11, 2013
Messages
128
Points
18
arindamb
You are exact, I got same result when running this command

Code:
[root@server ~]# httpd -M | grep rewrite
rewrite_module (shared)
Just curious, why it appears on SSH with "rewrite" word in red color and (shared). What does (shared) mean?
 

EthernetServers

Member
Registered
Joined
Nov 24, 2017
Messages
21
Points
3
EthernetServers
The red in "rewrite" is occurring because the grep command will highlight to indicate the match more clearly. For example if you ran "httpd -M | grep mod", you would see that everything with "mod" in is highlighted red.

(shared) means that the module has been compiled as a dynamic library, and is not part of the Apache binary.
 

Harry P

Well-known member
Registered
Joined
Feb 3, 2015
Messages
447
Points
28
Harry P
Interesting answer! I thought shared means to be used for all camel accounts or something else. I also am having cpanel accounts too, I can disable/ enable mod security via ssh? If it's disabled it can affect my server works?
 
Older Threads
Replies
4
Views
1,867
Replies
2
Views
1,832
Replies
2
Views
2,759
Replies
14
Views
7,606
Newer Threads
Replies
1
Views
2,154
Replies
31
Views
11,012
Replies
0
Views
1,288
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top