Enable mod_rewrite on cPanel?

arindamb

Well-known member
Joined
Jul 11, 2013
Messages
128
Best answers
0
Ratings
9
Points
18
#1
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?
 
Joined
Nov 24, 2017
Messages
16
Best answers
0
Ratings
6 2
Points
3
#2
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
Best answers
0
Ratings
9
Points
18
#3
arindamb
You are exact, I got same result when running this command

Code:
[[email protected] ~]# 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?
 
Joined
Nov 24, 2017
Messages
16
Best answers
0
Ratings
6 2
Points
3
#4
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
Joined
Feb 3, 2015
Messages
329
Best answers
0
Ratings
28
Points
28
#5
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
2
Views
264
Replies
2
Views
229
Replies
14
Views
760

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

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