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
22
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
22
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
462
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
4,309
Replies
2
Views
3,268
Replies
2
Views
4,722
Replies
14
Views
13,696
Newer Threads
Replies
1
Views
4,156
Replies
31
Views
22,555
Replies
0
Views
2,301
Latest Threads
Replies
0
Views
582
Replies
2
Views
555
Replies
1
Views
494
Replies
2
Views
1,084
Replies
1
Views
704
Recommended Threads
Replies
6
Views
7,866
Replies
7
Views
10,696
Replies
1
Views
2,450
Replies
4
Views
6,068

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