Saturday, February 11, 2012

How to Enable mod_rewrite Module in cPanel / WHM

I just tried to open WHM using web based interface and could not find the raw configuration of Apache. WHM interface only show some basic configuration.

If you install cPanel in default configuration, mod_rewrite is active by default. Apache configuration in cPanel/WHM located at /usr/local/apache/conf/httpd.conf, and only edit httpd.conf directly if you an expert. If mod_rewrite not installed, just edit the httpd.conf and put or uncomment this line:

LoadModule rewrite_module libexec/
AddModule mod_rewrite.c

Restart the Apache service and check the result. Good luck!


Post a Comment