This is an old revision of the document!


LiteMage can normally be enabled by placing “LiteMage On” in .htaccess under the user's document root.

For a Magento shared hosting environment, System Administrators may want to control LiteMage on/off from a global level. This can be done by placing “LiteMage Off” in the server level of Apache Configuration. This will disable the end-user from enabling LiteMage via .htaccess. Now only System Administrators can enable it by placing “LiteMage On” through Apache virtual host configuration.

For example, if using a cPanel server:

One can place the following into “/etc/apache2/conf.d/includes/pre_main_global.conf” (EA4 Environment).

  <IfModule LiteSpeed>
  LiteMage Off
  </IfModule>

If the server-level cache root is already setup, all that needs to be done is to add “LiteMage Off” to the existing IfModule LiteSpeed block.

  <IfModule LiteSpeed>
  CacheRoot /home/lscache/
  LiteMage Off
  </IfModule>

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

To enable LiteMage for certain virtual hosts, System Administrators will need to enable it through virtual host include files, such as the following: “/etc/apache2/conf.d/userdata/std/2_4/$USER/yourdomain.com/litemage.conf”, and place the following:

  <IfModule LiteSpeed>
  LiteMage On
  </IfModule>
  • Admin
  • Last modified: 2017/04/19 13:13
  • by Michael Alegre