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
2,204
Replies
2
Views
2,148
Replies
2
Views
3,301
Replies
14
Views
9,142
Newer Threads
Replies
1
Views
2,618
Replies
31
Views
13,352
Replies
0
Views
1,553
Latest Threads
Replies
1
Views
19
Replies
0
Views
171
Replies
1
Views
37
Replies
2
Views
80

Latest postsNew 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