Apache+litespeed at the same time

Discussion in 'Install/Configuration' started by sysadm, Nov 19, 2009.

  1. sysadm

    sysadm New Member

    I must have both Apache and Litespeed running at the sam time.

    Some of .htaccess php_value's direcives are not recognized by my Apache(php-fcgi).

    Is this possible to do something like that in .htaccess?
    Code:
    <ifModule litespeed_loaded.c>
    php_value something On
    #^this is not recognized by Apache
    </ifModule>

    Regards,
    sysadm
  2. mistwang

    mistwang LiteSpeed Staff

    fastcgi PHP does not support php_value at all, no matter where you put it.
    Only Apache mod_php and LiteSpeed PHP support it.
  3. sysadm

    sysadm New Member


    Exactly. But I need to add php_value in .htaccess and hide this for Apache(php-fcgi). Litespeed should see this directive. Apache shouldn't. How to do it?

    Apache(php-fcgi) won't start with something like php_value in .htaccess. I want to make this directive visible only for Litespeed
  4. mistwang

    mistwang LiteSpeed Staff

    wrap the directive with <IfModule ...> so Apache will skip it when mod_php is not compiled in.

Share This Page