This is an old revision of the document!


LiteMage can be enabled for a user by placing “LiteMage On” in the .htaccess file under the user's document root. In shared hosting environments, this ability can be disabled globally to control which users are given access to LiteMage.

This is done by placing “LiteMage Off” in the server level Apache Configuration. System administrators can now enable LiteMage selectively by adding “LiteMage On” through Apache's virtual host configuration.

For example, if using a cPanel server (EA4 Environment):

Add “LiteMage Off” to the existing <IfModule LiteSpeed> block in /etc/apache2/conf.d/includes/pre_main_global.conf. (Create this block if it does not yet exist)

  <IfModule LiteSpeed>
  LiteMage Off
  </IfModule>

The above configuration will disable all end-users from being able to enable LiteMage via .htaccess.

LiteMage can then be enabled selectively through virtual host include files, such as /etc/apache2/conf.d/userdata/std/2_4/$USER/yourdomain.com/litemage.conf and /etc/apache2/conf.d/userdata/ssl/2_4/$USER/yourdomain.com/litemage.conf, by adding the following block:

  <IfModule LiteSpeed>
  LiteMage On
  </IfModule>
  • Admin
  • Last modified: 2017/05/08 19:32
  • by Jackson Zhang